Skip to content

getVehicleDoorLockMode

Client-side

Available in Neon, not standard MTA

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

theVehiclevehicle

Vehicle 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

RELATED NEON APIS

Continue exploring

Read the system guide →