Difference between revisions of "SET VEHICLE DIRT LEVEL"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=2 |p1t=Handle |p1d=Vehicle handle |p2t=Float |p2d=Dirt level (0.0 is the minimum) }} This function change the dirt level of the specified vehicle. To clean a car visibly call...)
 
 
Line 1: Line 1:
 
{{Native
 
{{Native
 
|np=2
 
|np=2
|p1t=Handle
+
|p1t=pointer
 
|p1d=Vehicle handle
 
|p1d=Vehicle handle
|p2t=Float
+
|p2t=float
|p2d=Dirt level (0.0 is the minimum)
+
|p2d=Dirt level (0.0 is the minimum, 15.9 is the maximum)
 
}}
 
}}
  
This function change the dirt level of the specified vehicle. To clean a car visibly call [[WASH_VEHICLE_TEXTURES]] with 255 in 2nd parameter.
+
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.

Latest revision as of 05:10, 3 September 2009

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.