maxGear
Used to set
or get
the current vehicle maxGear.
Returns a number
.
Declaration
vehicle.maxGear: number
Usage
const currentMaxGear = vehicle.maxGear;
// OR
vehicle.maxGear = 2;
Real World Example
// Check if the local player is in a vehicle.
if (alt.Player.local.vehicle) {
console.log(`Max Gear is: ${alt.Player.local.vehicle.maxGear}`);
}
These examples assume you have a vehicle available on client-side
.