From SA-MP Wiki

Jump to: navigation, search


Set the rotation of an object on the X, Y and Z axis.

(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ)
playeridThe ID of the player whose player-object to rotate.
objectidThe ID of the player-object to rotate.
Float:RotXThe X rotation to set.
Float:RotYThe Y rotation to set.
Float:RotZThe Z rotation to set.

Return Values:

  • 1: The function executed successfully.
  • 0: The function failed to execute.



To smoothly rotate an object, see MovePlayerObject.

SetPlayerObjectRot(playerid, objectid, RotX, RotY, RotZ);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages