RedM Natives

GET_VEHICLE_DIRT_LEVEL

Hash0xFD15C065
Runtime nameGetVehicleDirtLevel
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

float GET_VEHICLE_DIRT_LEVEL(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns float

Usage

Lua
local retval = GetVehicleDirtLevel(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0xfd15c065, vehicle, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetVehicleDirtLevel(vehicle);

// by hash
const retval = Citizen.invokeNative('0xfd15c065', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xfd15c065, vehicle);

See also

Sources

Cfx.re native reference

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