GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
Returns true if the doors of vehicle are locked for player.
Signature
BOOL GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER(Vehicle vehicle, Player player); // 0xFA2CDDFEB8BC898B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle |
| 2 | player | Player |
Facts
| 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.
local result = Citizen.InvokeNative(0xFA2CDDFEB8BC898B, -- GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
0, -- Vehicle vehicle
PlayerId() -- Player player
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xFA2CDDFEB8BC898B", // GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
0, // Vehicle vehicle
PlayerId(), // Player player
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xFA2CDDFEB8BC898B, // GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
0, // Vehicle vehicle
API.PlayerId() // Player player
);Related VEHICLE natives
- _GET_VEHICLE_DOORS_LOCKED_FOR_TEAM
- SET_DONT_ALLOW_PLAYER_TO_ENTER_VEHICLE_IF_LOCKED_FOR_PLAYER
- SET_VEHICLE_DOORS_LOCKED_FOR_PLAYER
- GET_VEHICLE_TRAILER_VEHICLE
- GET_VEHICLE_DOOR_LOCK_STATUS
- SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS
- SET_VEHICLE_DOORS_LOCKED_FOR_TEAM
- GET_VEHICLE_BODY_HEALTH
- GET_VEHICLE_ENGINE_HEALTH
- GET_VEHICLE_ESTIMATED_MAX_SPEED
- GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS
- GET_VEHICLE_MODEL_NUMBER_OF_SEATS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.