SetVehicleDirtLevel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{server client function}} This function sets the dirt level on a vehicle. ==Syntax== <syntaxhighlight lang="lua"> bool setVehicleDirtLevel ( vehicle theVehicle, int dirtLevel ) </syntaxhighlight> ===Re...)
 
mNo edit summary
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{server client function}}
{{Server client function}}
{{Disabled|This function doesn't work actually. See the bugtracker for updates and more information.}}
This function sets the dirt level on a vehicle.
This function sets the dirt level on a vehicle.


Line 10: Line 11:
===Required Arguments===  
===Required Arguments===  
*'''theVehicle:''' The vehicle that you want to set the dirt level from
*'''theVehicle:''' The vehicle that you want to set the dirt level from
*'''dirtLevel:''' The dirt level
*'''dirtLevel:''' (0.0 = fully clean, 15.0 = maximum dirt visible.)


===Returns===
===Returns===

Latest revision as of 21:36, 2 November 2023

Dialog-warning.png Function has been disabled.

Reason/Note: This function doesn't work actually. See the bugtracker for updates and more information.

This function sets the dirt level on a vehicle.

Syntax

bool setVehicleDirtLevel ( vehicle theVehicle, int dirtLevel )

Required Arguments

  • theVehicle: The vehicle that you want to set the dirt level from
  • dirtLevel: (0.0 = fully clean, 15.0 = maximum dirt visible.)

Returns

Returns true if the dirt level was set on the vehicle, false if the dirt level was not set or if invalid arguments are specified.

Example

--TODO

See Also