Skip to content
Nexius edited this page Mar 15, 2020 · 23 revisions

OnFootSync (packetid: 207)

Destination:
Incoming/Outcoming

Description:
Called every time a player updates his state on foot.

Related SA-MP callbacks:

  • OnPlayerUpdate (when player state is PLAYER_STATE_ONFOOT)

Example (as incoming packet):

const PLAYER_SYNC = 207;

IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
    new onFootData[PR_OnFootSync];

    BS_IgnoreBits(bs, 8);
    BS_ReadOnFootSync(bs, onFootData);

    //Anything you want to see here

    return 1;
}