RedM Natives

SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS

Hash0x2381977DA948F8DC
Runtime nameSetVehicleDoorsLockedForAllPlayers
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA2F80B8D040727CC

Signature

void SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(Vehicle vehicle, BOOL toggle);

Parameters

NameTypeDescription
vehicleVehicle—
toggleBOOL—

Returns void

Usage

Lua
SetVehicleDoorsLockedForAllPlayers(vehicle, toggle)

-- always works, by hash
Citizen.InvokeNative(0x2381977DA948F8DC, vehicle, toggle)
JavaScript and C#
JavaScript
SetVehicleDoorsLockedForAllPlayers(vehicle, toggle);

// by hash
Citizen.invokeNative('0x2381977DA948F8DC', vehicle, toggle);
C#
Function.Call((Hash)0x2381977DA948F8DC, vehicle, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.