_SET_TRANSPORT_USAGE_FLAGS
Hash
0xE2487779957FE897Runtime name
SetTransportUsageFlagsNamespaceAITRANSPORT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_TRANSPORT_USAGE_FLAGS(Entity transportEntity, int flags);Parameters
| Name | Type | Description |
|---|---|---|
transportEntity | Entity | — |
flags | int | — |
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
SetTransportUsageFlags(transportEntity, flags)
-- always works, by hash
Citizen.InvokeNative(0xE2487779957FE897, transportEntity, flags)JavaScript and C#
SetTransportUsageFlags(transportEntity, flags);
// by hash
Citizen.invokeNative('0xE2487779957FE897', transportEntity, flags);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
InvokeNativewith the hash — it always works.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.