VehicleClient

isVehicleStuckOnRoof

IS_VEHICLE_STUCK_ON_ROOF0xB497F06B288DCFDF

The GTA V native IS_VEHICLE_STUCK_ON_ROOF of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleStuckOnRoof, in JavaScript and in Lua.

SignatureJavaScript
isVehicleStuckOnRoof(vehicle: Vehicle): boolean
SignatureLua
isVehicleStuckOnRoof(vehicle: Vehicle): boolean

Usage

JavaScript
const result = isVehicleStuckOnRoof(vehicle);
Lua
local result = isVehicleStuckOnRoof(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_STUCK_ON_ROOF(Vehicle vehicle)
Hash
0xB497F06B288DCFDF

Open in the interactive natives reference