Skip to content

setVehicleDoorLockMode

Client-side

Available in Neon, not standard MTA

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

NATIVE GTA BEHAVIOR 020A
No CTask is created

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

theVehiclevehicle

Vehicle whose native lock policy should change.

modeint

Raw 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.

Important behavior
  • The policy survives stream-out and native vehicle recreation on this client.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →