StatsUpdate - katursis/Pawn.RakNet GitHub Wiki
StatsUpdate (packetid: 205)
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;
}