Server callbacks/Player/OnPlayerObjectMoved

From RW-MP Wiki
Jump to: navigation, search

OnPlayerObjectMoved

Description:
This callback is called when a player object is moved after MovePlayerObject (when it stops moving).


Parameters:
(playerid, objectid)

playerid The playerid the object is assigned to
objectid The ID of the player object that was moved


Return Values:
This callback does not handle returns.
  • It is always called first in filterscripts.


Example Usage:
public OnPlayerObjectMoved(playerid,objectid)
{
    printf("Player object moved: objectid: %d playerid: %d", objectid, playerid);
    return true;
}