isElementFrozen
Shared
Tells whether an element is frozen.
bool isElementFrozen(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element. |
Returns
true if the element is frozen, false if not.
Example
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle and isElementFrozen(vehicle) then
outputDebugString("the vehicle is frozen")
end