This callback is called every time a client/player updates the server with their status. It is often used to create custom callbacks for client updates that aren't actively tracked by the server, such as health or armor updates or players switching weapons.
|playerid||ID of the player sending an update packet.|
0 - Update from this player will not be replicated to other clients.
1 - Indicates that this update can be processed normally and sent to other players.
It is always called first in filterscripts.
This callback can also be called by NPC.
This callback is called, on average, 30 times per second, per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for). The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling.