The Lab
VEHICLE native

GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER

returns BOOL2 paramsbuild 1207

Returns true if the doors of vehicle are locked for player.

Signature

C
BOOL GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER(Vehicle vehicle, Player player); // 0xFA2CDDFEB8BC898B b1207

Parameters

#NameType
1vehicleVehicle
2playerPlayer

Facts

Facts about GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
Name
GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
Hash
0xFA2CDDFEB8BC898B
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xFA2CDDFEB8BC898B, -- GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
  0, -- Vehicle vehicle
  PlayerId() -- Player player
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xFA2CDDFEB8BC898B", // GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
  0, // Vehicle vehicle
  PlayerId(), // Player player
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xFA2CDDFEB8BC898B, // GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
  0, // Vehicle vehicle
  API.PlayerId() // Player player
);
All VEHICLE natives

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