SetVehicleDirtLevel

From Multi Theft Auto: Wiki
Revision as of 20:18, 14 December 2024 by FileEX (talk | contribs) (Fixed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Accessories-text-editor.png Script Example Missing Function SetVehicleDirtLevel needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also