SET VEHICLE DIRT LEVEL

From GTAMods Wiki
Revision as of 05:10, 3 September 2009 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SET_VEHICLE_DIRT_LEVEL
Number of parameters: 2
Parameter #TypeDescription
1.pointerVehicle handle
2.floatDirt level (0.0 is the minimum, 15.9 is the maximum)
Return value:
TypeDescription
None

This function changes the dirt level of the specified vehicle. You can exceed the maximum and briefly see the change but the game will prevent the car from being dirtier than the maximum. To clean the vehicle, set the level to 0.0 or call WASH_VEHICLE_TEXTURES with 255 in 2nd parameter.