Skip to content

StateBag strict mode compatibility with pma-voice #577

Description

@jxeqoz

Hello,

I noticed a conflict between the recommendations from ox_lib and pma-voice regarding StateBag strict mode.

According to the ox_lib documentation/changelog, enabling:

setr sv_stateBagStrictMode true

is recommended for improved security and preventing clients from modifying state bags.

However, when using pma-voice with StateBag strict mode enabled, I receive warnings such as:

[natives] StateBags can't be modified from the client, because the StateBag strict mode is enabled.

As a result, some users suggest disabling strict mode:

setr sv_stateBagStrictMode false

Could you clarify the current recommendation for pma-voice?

  • Is pma-voice fully compatible with sv_stateBagStrictMode true?
  • Are these warnings expected and harmless?
  • Is there a planned fix if pma-voice still performs client-side StateBag modifications?
  • Should server owners prioritize ox_lib's recommendation and keep strict mode enabled?

Reference:
overextended/ox_lib@v3.37.0...main#diff-8dc1734e5f18700a7b95f67e02093f689b10b9433357b580f680ed5f9cab2a58

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions