RedM Natives

_SET_TRANSPORT_USAGE_FLAGS

Hash0xE2487779957FE897
Runtime nameSetTransportUsageFlags
NamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_TRANSPORT_USAGE_FLAGS(Entity transportEntity, int flags);

Parameters

NameTypeDescription
transportEntityEntity—
flagsint—

Returns void

Description

enum eTransportUsageFlags
{
	TUF_INVALID = 0,
	TUF_ALLOW_DRIVER_ME = (1 << 0),
	TUF_ALLOW_DRIVER_GANG = (1 << 1),
	TUF_ALLOW_DRIVER_CREW = (1 << 2),
	TUF_ALLOW_DRIVER_FRIENDS = (1 << 3),
	TUF_ALLOW_DRIVER_ANYONE = (1 << 4),
	TUF_ALLOW_PASSENGER_ME = (1 << 5),
	TUF_ALLOW_PASSENGER_GANG = (1 << 6),
	TUF_ALLOW_PASSENGER_CREW = (1 << 7),
	TUF_ALLOW_PASSENGER_FRIENDS = (1 << 8),
	TUF_ALLOW_PASSENGER_ANYONE = (1 << 9),
	TUF_ALLOW_ACCESS_AI = (1 << 10)
};

Usage

Lua
SetTransportUsageFlags(transportEntity, flags)

-- always works, by hash
Citizen.InvokeNative(0xE2487779957FE897, transportEntity, flags)
JavaScript and C#
JavaScript
SetTransportUsageFlags(transportEntity, flags);

// by hash
Citizen.invokeNative('0xE2487779957FE897', transportEntity, flags);
C#
Function.Call((Hash)0xE2487779957FE897, transportEntity, flags);
  • 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.