Vehicle::rotation: Difference between revisions

From RAGE Multiplayer Wiki
m (Replaced HTML with template)
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 08:42, 2 February 2019

This property using for getting or setting vehicle rotation.

At this time, the function does not always work correctly.

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