Hi guys, I’m trying to make anticheat for StateBagChange on client side, detect if specific data has been changed. Any advice / idea ?
If you’re worried about clients tampering with state bags, then perhaps you need to be storing your data exclusively on the server, if possible.
Can you provide more context to what you’re doing and what your goal is?
Every player data being stored / changed on server side. I’m just a bit worrited if some cheater can tamper a specific data, which would eventually change on server side as well.
In mtasa you can check on elementDataChange serverside wheter the source is from the client side. Basically I just want something if example player.adminLevel has being changed on client side, revert it.