_IS_TRANSPORT_SEAT_FREE
Returns true if seat seatIndex of transportEntity is free to be used.
Signature
BOOL _IS_TRANSPORT_SEAT_FREE(Entity transportEntity, int seatIndex); // 0x43FF27FC1829C202 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | transportEntity | Entity |
| 2 | seatIndex | int |
Facts
| Name | _IS_TRANSPORT_SEAT_FREE |
|---|---|
| Hash | 0x43FF27FC1829C202 |
| 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(0x43FF27FC1829C202, -- _IS_TRANSPORT_SEAT_FREE
PlayerPedId(), -- Entity transportEntity
0 -- int seatIndex
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x43FF27FC1829C202", // _IS_TRANSPORT_SEAT_FREE
PlayerPedId(), // Entity transportEntity
0, // int seatIndex
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x43FF27FC1829C202, // _IS_TRANSPORT_SEAT_FREE
API.PlayerPedId(), // Entity transportEntity
0 // int seatIndex
);Related AITRANSPORT natives
- _IS_TRANSPORT_SEAT_OCCUPIED
- _IS_PED_ON_TRANSPORT_SEAT
- _IS_PED_ON_TRANSPORT_ENTITY
- _GET_PED_IN_TRANSPORT_SEAT
- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
- _SET_TRANSPORT_PRIORITY_SEAT
- IS_PED_ENTERING_TRANSPORT
- IS_PED_EXITING_TRANSPORT
- SET_PED_OFF_TRANSPORT_SEAT
- SET_PED_ON_TRANSPORT_SEAT
- SET_TRANSPORT_ACCESSIBLE_SEAT_FLAGS
- _CLEAR_ALL_SEAT_PREFERENCE_SLOTS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.