setVehicleDoorLockMode
Sets and persists GTA's raw native door-lock mode without reducing it to a boolean.
Syntax
bool setVehicleDoorLockMode(vehicle theVehicle, int mode)GTA task mapping
020A SCM equivalent: LOCK_CAR_DOORS
This does not create a CTask. It writes GTA's native door-lock mode and keeps the value on the MTA vehicle for later recreation.
Arguments
theVehiclevehicleVehicle whose native lock policy should change.
modeintRaw GTA door-lock mode from 1 through 7; mode 3 locks out the player only.
Returns
true when the mode was accepted; false for an invalid vehicle or value.
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.
- The policy survives stream-out and native vehicle recreation on this client.
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native story vehicle state works →