RedM Natives

SET_TRANSPORT_CONFIG_FLAG

TCF_NotConsideredForEntryByLocalPlayer, TCF_0xB78D6624, TCF_0xA9700425, TCF_0x8D7E4641, TCF_0xF24BAA1F, TCF_0x63B77935, TCF_NotConsideredForEntryByAllPlayers, TCF_0xD17A2AFD, TCF_0xD4E4FDD5, TCF_0x8227C929, TCF_0x812C1070, TCF_0x0E1AB26F…

Hash0xBA8818212633500A
Runtime nameSetTransportConfigFlag
NamespaceAITRANSPORT
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_TRANSPORT_CONFIG_FLAG(Entity transportEntity, int flagId, BOOL value);

Parameters

NameTypeDescription
transportEntityEntity—
flagIdint—
valueBOOL—

Returns void

Description

flagId:
enum eTransportConfigFlags
{
	TCF_NotConsideredForEntryByLocalPlayer,
	TCF_0xB78D6624,
	TCF_0xA9700425,
	TCF_0x8D7E4641,
	TCF_0xF24BAA1F,
	TCF_0x63B77935,
	TCF_NotConsideredForEntryByAllPlayers,
	TCF_0xD17A2AFD,
	TCF_0xD4E4FDD5,
	TCF_0x8227C929,
	TCF_0x812C1070,
	TCF_0x0E1AB26F,
	TCF_0xBF4EC863,
	TCF_0x75660C36,
	TCF_0xA2539E20,
	TCF_0x9162C633,
	TCF_DisableHonorModifiers,
	TCF_0xF9E71CB6,
	TCF_0x933ECD3F,
	TCF_0x18513A34
};
https://github.com/femga/rdr3_discoveries/tree/master/AI/TRANSPORT_CONFIG_FLAGS

Usage

Lua
SetTransportConfigFlag(transportEntity, flagId, value)

-- always works, by hash
Citizen.InvokeNative(0xBA8818212633500A, transportEntity, flagId, value)
JavaScript and C#
JavaScript
SetTransportConfigFlag(transportEntity, flagId, value);

// by hash
Citizen.invokeNative('0xBA8818212633500A', transportEntity, flagId, value);
C#
Function.Call((Hash)0xBA8818212633500A, transportEntity, flagId, value);

See also

Sources

alloc8or RDR3 NativeDB

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