RedM Natives

_GET_TRANSPORT_USAGE_FLAGS

Hash0xE195C5A82156321D
Runtime nameGetTransportUsageFlags
NamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Any _GET_TRANSPORT_USAGE_FLAGS(Entity transportEntity, int* flags);

Parameters

NameTypeDescription
transportEntityEntity—
flagsint*—

Returns Any

Description

Usage

Lua
local retval, flags = GetTransportUsageFlags(transportEntity, flags)

-- always works, by hash
local retval, flags = Citizen.InvokeNative(0xE195C5A82156321D, transportEntity, Citizen.PointerValueIntInitialized(flags), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, flags] = GetTransportUsageFlags(transportEntity, flags);

// by hash
const [retval, flags] = Citizen.invokeNative('0xE195C5A82156321D', transportEntity, Citizen.pointerValueIntInitialized(flags), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var flags = new OutputArgument();
int retval = Function.Call<int>((Hash)0xE195C5A82156321D, transportEntity, flags);
// flags.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.