Issue with setting PlayerState on Client Side

Since last FiveM Update, updating PlayerState on client side is not working for some players.
My Inventory resource use PlayerState to update player weight by using LocalPlayer.state:set(‘weight’, XX.X, true) (I set Player(playerId).state.weight = 0.0 on player loaded server side)

Is the onesync bug ?

There is a way to fix it ?

1 Like

This one should be fixed on Beta and Latest v6021 and higher (client). Can you confirm you are using one of these versions?

If it’s still not working then please supply us with minimal reproduction steps so we can have a look.

I think this issue is gone, thank you.