Vehicle::rotation

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This property is being used to get or set 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