SET_VEHICLE_DIRT_LEVEL
Sets the dirt level of the passed vehicle. **This is the server-side RPC native equivalent of the client native [SET_VEHICLE_DIRT_LEVEL](?\_0x79D3B596FE44EE8B).**
CFX
Signature
lua
SetVehicleDirtLevel(GetVehiclePedIsIn(PlayerPedId(), false), 0.0)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Vehicle | The vehicle to set. | |
| float | A number between 0.0 and 15.0 representing the vehicles dirt level. |
Usage
lua
SetVehicleDirtLevel(GetVehiclePedIsIn(PlayerPedId(), false), 0.0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
