[Bug] Setting non-replicated client statebags errors when sv_stateBagStrictMode is enabled #337
MauroNr1
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 3 comments 1 reply
|
Same here on b106 using the Lua runtime. |
0 replies
|
Thanks, we are looking into this. |
1 reply
|
A fix for this bug has been implemented and is available in the August 4 patch. Please try again and let us know if the issue persists. Thanks for your help! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
When setting a statebag value that is not replicated (client-only / local), the client-side
SetStateBagValuenative throws an error and stops the script even though the value is not being sent to the server:Issue type
Client
Repro rate
Always
Server build version
b105
Steps to Reproduce
setr sv_stateBagStrictMode trueSetStateBagValueon a statebag that is not replicated (LocalPlayer.state:set('testKey', 'testValue', false))Expected Behavior
Strict mode is meant to prevent clients from modifying replicated statebags that the server owns/authorizes. Since non-replicated statebags never leave the client, they shouldn't be subject to this restriction
SetStateBagValueshould work without error.Actual Behavior
The check appears to apply regardless of whether the statebag is replicated, blocking legitimate client-only state changes and forcing users to disable
sv_stateBagStrictModeentirely (defeating its purpose) just to use local statebags.Evidence
Additional Context
No response
All reactions