Add an argument to the set method, enabling the retrieval of these values exclusively through the player on the server side (thereby avoiding the use of the statebag).
we need to specify networked to false
local player = ESX.GetPlayerFromId(1)
player.set("test", 500) -- this will be networked
player.set("test1", 487, false) -- this won't be networked
set
method, enabling the retrieval of these values exclusively through the player on the server side (thereby avoiding the use of the statebag).we need to specify networked to false