From SA-MP Wiki

Jump to: navigation, search


Set the rotation of an object on the three axes (X, Y and Z).

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

Return Values:

This function always returns 1, even if the object doesn't exist.

Example Usage:

SetObjectRot(objectid, 45, 90, 180);

Related Functions

The following functions may be helpful as they relate to this function in one way or another.

In other languages