Vehicle::rotation: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
This property using for getting or setting vehicle rotation.
This property using for getting or setting vehicle rotation.
{{note|At this time, the function does not always work correctly.}}


==Getter==
==Getter==

Revision as of 14:48, 2 February 2019

This property using for getting or setting vehicle rotation.

Getter

  • Vector3

Setter

  • Vector3

Example

Server-Side
let rotation = vehicle.rotation;
vehicle.rotation = new mp.Vector3(0, 0, 90);
console.log(vehicle.rotation.x, vehicle.rotation.y, vehicle.rotation.z);

See Also