rot
Used to set
or get
vehicle rotation.
Returns a { x: number, y: number, z: number }
.
Declaration
vehicle.rot: { x: number, y: number, z: number };
Usage
const rot = vehicle.rot;
// OR
vehicle.rot = { x: 0, y: 0, z: 0 };
Real World Example
const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
vehicle.rot = { x: 0, y: 0, z: 0 };
These examples assume you have vehicle created or available on server-side