The Lab
AITRANSPORT native

_SET_AI_CAN_USE_TRANSPORT

returns void2 paramsbuild 1207

Allows or prevents AI peds from using transportEntity, depending on state.

Signature

C
void _SET_AI_CAN_USE_TRANSPORT(Entity transportEntity, BOOL state); // 0x67F7CEAC2391E114 b1207

Parameters

#NameType
1transportEntityEntity
2stateBOOL

Facts

Facts about _SET_AI_CAN_USE_TRANSPORT
Name
_SET_AI_CAN_USE_TRANSPORT
Hash
0x67F7CEAC2391E114
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x67F7CEAC2391E114, -- _SET_AI_CAN_USE_TRANSPORT
  PlayerPedId(), -- Entity transportEntity
  false -- BOOL state
)
JavaScript
Citizen.invokeNative("0x67F7CEAC2391E114", // _SET_AI_CAN_USE_TRANSPORT
  PlayerPedId(), // Entity transportEntity
  false // BOOL state
);
C#
Function.Call((Hash)0x67F7CEAC2391E114, // _SET_AI_CAN_USE_TRANSPORT
  API.PlayerPedId(), // Entity transportEntity
  false // BOOL state
);
All AITRANSPORT natives

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