SetVehicleDirtLevel

From GT-MP
Jump to: navigation, search
SetVehicleDirtLevel
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

See also: GetVehicleDirtLevel

Sets the dirt level of the vehicle.


Possible values from 0 to 15.


Syntax

In C#
Server-Side Function

void API.setVehicleDirtLevel(NetHandle vehicle, float dirtLevel);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.
  • dirtLevel: parameter input should be in float type.

In Javascript
Client-Side Function

void API.setVehicleDirtLevel(LocalHandle vehicle, float dirtLevel);

Required Arguments

  • vehicle: parameter input should be in LocalHandle type.
  • dirtLevel: parameter input should be in float type.

Usage example(s)

API.setVehicleDirtLevel(LocalHandle vehicle, float dirtLevel);


References