IsPlayerObjectMoving

warning

This function was added in SA-MP 0.3d and will not work in earlier versions!

Description

Checks if the given player objectid is moving.

NameDescription
playeridThe ID of the player whose player-object is checked.
objectidThe player objectid you want to check if is moving.

Returns

1 if the player object is moving, 0 if not.

Examples

if (IsPlayerObjectMoving(playerid, objectid))
{
StopPlayerObject(playerid, objectid);
}

Related Functions