GET_VEHICLE_DIRT_LEVEL
Signature
float GET_VEHICLE_DIRT_LEVEL(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
Returns float
Usage
local retval = GetVehicleDirtLevel(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xfd15c065, vehicle, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVehicleDirtLevel(vehicle);
// by hash
const retval = Citizen.invokeNative('0xfd15c065', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xfd15c065, vehicle);See also
SET_VEHICLE_DIRT_LEVELSets the dirt level of the passed vehicle.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.