petrolTankHealth

Used to set or get current petrol / gas tank health.

Returns a number.

Declaration

vehicle.petrolTankHealth: number;

Usage

const tankHealth = vehicle.petrolTankHealth;

// OR

vehicle.petrolTankHealth = 100;

Real World Example

const vehicle = new alt.Vehicle('zentorno', 0, 0, 0, 0, 0, 0);
vehicle.petrolTankHealth = 100;

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

results matching ""

    No results matching ""