-
Notifications
You must be signed in to change notification settings - Fork 30
StatsUpdate
Nexius edited this page Aug 14, 2021
·
4 revisions
Destination:
Incoming/Outgoing
Description:
Called regularly, about once per second.
Parameters (for incoming packet):
Value type | Parameter | Short description |
---|---|---|
PR_UINT8 |
packetId | The ID of the packet |
PR_INT32 |
money | The amount of money of a player |
PR_INT32 |
drunkLevel | The player's drunk level |
Related SA-MP callbacks:
- None (but the data can be received indefinitely using GetPlayerMoney and GetPlayerDrunkLevel)
Example (as incoming packet):
const STATS_UPDATE_SYNC = 205;
IPacket:STATS_UPDATE_SYNC(playerid, BitStream:bs)
{
new statsUpdate[PR_StatsUpdate];
BS_IgnoreBits(bs, 8);
BS_ReadStatsUpdate(bs, statsUpdate);
//Anything you want to see here
return 1;
}
- Refer to BrunoBM16's RPC and Packet lists