M MY Multiplayer: Wiki
Side
Kind

getVehicleWetnessLevel

Shared

Tells how wet a vehicle was fixed to look.

float|false getVehicleWetnessLevel(vehicle vehicle)

Parameters

NameTypeDescription
vehiclevehicleThe vehicle.

Returns

From 0 (dry) to 1 (soaked), or false if the vehicle follows the weather or it is not a vehicle.

Example

local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle and not getVehicleWetnessLevel(vehicle) then
    outputDebugString("wetness follows the weather")
end

See also