pos

Used to set or get a vehicle position.

Returns a { x: number, y: number, z: number }.

Declaration

vehicle.pos: { x: number, y: number, z: number };

Usage

const pos = vehicle.pos;

// OR

vehicle.pos = { x: 0, y: 0, z: 0 };

Real World Example

const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
vehicle.pos = { x: 0, y: 0, z: 0 };

These examples assume you have vehicle created or available on server-side

results matching ""

    No results matching ""