isVehicleOnAllWheels
Client-side
Reproduces GTA opcode 09D0's exact all-four-contact vehicle gate.
Syntax
bool isVehicleOnAllWheels(vehicle theVehicle)Arguments
theVehiclevehicleStreamed vehicle with a native GTA instance.
Returns
true only for an automobile or bike whose native contact counter equals four; false for other classes, missing native state, or fewer contacts.
Ownership and lifecycle
These calls act immediately on streamed native state and do not create a persistent lease. The resource remains responsible for scene timing and authoritative mission progression.
Important behavior
- This is intentionally stricter than MTA's broader isVehicleOnGround check.
OOP aliases
vehicle:isOnAllWheels()
Where this comes from
SOURCECLuaVehicleDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp INTRODUCED / EXTENDED7895f0e1eRead the commit and why the change was made TEST RESOURCE tagging-up-turf test-resources/tagging-up-turf
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native scene primitives works →