getVehicleDoorLockMode
Client-side
Reads the vehicle's raw native door-lock mode, including a locally persisted streamed-out value.
Syntax
int|false getVehicleDoorLockMode(vehicle theVehicle)GTA task mapping
NATIVE GTA BEHAVIOR
No CTask is created This is a state query, not a GTA task. It reads the live native vehicle when available and otherwise returns Neon's persisted local policy.
Arguments
theVehiclevehicleVehicle to inspect.
Returns
The native mode from 1 through 7, or false for an invalid vehicle.
Ownership and lifecycle
Door-lock, tyre-burst, physical-proof, and load-collision policies live on the MTA vehicle, apply immediately when its GTA instance is streamed, and are reapplied after local native recreation. They are client-local, last-writer-wins policies rather than resource-owned leases.
Where this comes from
SOURCECLuaVehicleDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp INTRODUCED / EXTENDEDd2ca1c38eRead 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 story vehicle state works →