The Lab
VEHICLE native

SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS

returns void2 paramsbuild 1207

Locks or unlocks vehicle for all players.

Signature

C
void SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(Vehicle vehicle, BOOL toggle); // 0x2381977DA948F8DC b1207

Parameters

#NameType
1vehicleVehicle
2toggleBOOL

Facts

Facts about SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS
Name
SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS
Hash
0x2381977DA948F8DC
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x2381977DA948F8DC, -- SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS
  0, -- Vehicle vehicle
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0x2381977DA948F8DC", // SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS
  0, // Vehicle vehicle
  false // BOOL toggle
);
C#
Function.Call((Hash)0x2381977DA948F8DC, // SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS
  0, // Vehicle vehicle
  false // BOOL toggle
);
All VEHICLE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.