_GET_TRANSPORT_USAGE_FLAGS
Reads the usage flags of transportEntity into flags.
Signature
Any _GET_TRANSPORT_USAGE_FLAGS(Entity transportEntity, int* flags); // 0xE195C5A82156321D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | transportEntity | Entity |
| 2 | flags | int* (out pointer) |
Facts
| Name | _GET_TRANSPORT_USAGE_FLAGS |
|---|---|
| Hash | 0xE195C5A82156321D |
| Namespace | |
| Returns | Any |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, flags = Citizen.InvokeNative(0xE195C5A82156321D, -- _GET_TRANSPORT_USAGE_FLAGS
PlayerPedId(), -- Entity transportEntity
Citizen.PointerValueInt(), -- int* flags
Citizen.ResultAsInteger()
)
print(result, flags)const [result, flags] = Citizen.invokeNative("0xE195C5A82156321D", // _GET_TRANSPORT_USAGE_FLAGS
PlayerPedId(), // Entity transportEntity
Citizen.pointerValueInt(), // int* flags
Citizen.resultAsInteger()
);
console.log(result, flags)var flagsArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xE195C5A82156321D, // _GET_TRANSPORT_USAGE_FLAGS
API.PlayerPedId(), // Entity transportEntity
flagsArg // int* flags
);
int flags = flagsArg.GetResult<int>();Related AITRANSPORT natives
- _SET_TRANSPORT_USAGE_FLAGS
- _GET_PED_IN_TRANSPORT_SEAT
- GET_TRANSPORT_CONFIG_FLAG
- SET_TRANSPORT_ACCESSIBLE_SEAT_FLAGS
- _CLEAR_TRANSPORT_EXIT_BLEND_RATIO
- _IS_PED_ON_TRANSPORT_ENTITY
- _IS_PED_ON_TRANSPORT_SEAT
- _IS_TRANSPORT_SEAT_FREE
- _IS_TRANSPORT_SEAT_OCCUPIED
- _SET_AI_CAN_USE_TRANSPORT
- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
- _SET_TRANSPORT_EXCLUSIVE_DRIVER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.