The Lab
AITRANSPORT native

_GET_TRANSPORT_USAGE_FLAGS

returns Any2 paramsbuild 1207

Reads the usage flags of transportEntity into flags.

Signature

C
Any _GET_TRANSPORT_USAGE_FLAGS(Entity transportEntity, int* flags); // 0xE195C5A82156321D b1207

Parameters

#NameType
1transportEntityEntity
2flagsint* (out pointer)

Facts

Facts about _GET_TRANSPORT_USAGE_FLAGS
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.

Lua
local result, flags = Citizen.InvokeNative(0xE195C5A82156321D, -- _GET_TRANSPORT_USAGE_FLAGS
  PlayerPedId(), -- Entity transportEntity
  Citizen.PointerValueInt(), -- int* flags
  Citizen.ResultAsInteger()
)
print(result, flags)
JavaScript
const [result, flags] = Citizen.invokeNative("0xE195C5A82156321D", // _GET_TRANSPORT_USAGE_FLAGS
  PlayerPedId(), // Entity transportEntity
  Citizen.pointerValueInt(), // int* flags
  Citizen.resultAsInteger()
);
console.log(result, flags)
C#
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>();
All AITRANSPORT natives

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