RedM Natives

SET_VEHICLE_NEXT_GEAR

Hash0x3A4566F4
Runtime nameSetVehicleNextGear
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_VEHICLE_NEXT_GEAR(Vehicle vehicle, int nextGear);

Parameters

NameTypeDescription
vehicleVehicle

The vehicle handle.

nextGearint

The vehicles next gear.

Returns void

Usage

Lua
SetVehicleNextGear(vehicle, nextGear)

-- always works, by hash
Citizen.InvokeNative(0x3a4566f4, vehicle, nextGear)
JavaScript and C#
JavaScript
SetVehicleNextGear(vehicle, nextGear);

// by hash
Citizen.invokeNative('0x3a4566f4', vehicle, nextGear);
C#
Function.Call((Hash)0x3a4566f4, vehicle, nextGear);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.