_SET_AI_CAN_USE_TRANSPORT
Allows or prevents AI peds from using transportEntity, depending on state.
Signature
void _SET_AI_CAN_USE_TRANSPORT(Entity transportEntity, BOOL state); // 0x67F7CEAC2391E114 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | transportEntity | Entity |
| 2 | state | BOOL |
Facts
| 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.
Citizen.InvokeNative(0x67F7CEAC2391E114, -- _SET_AI_CAN_USE_TRANSPORT
PlayerPedId(), -- Entity transportEntity
false -- BOOL state
)Citizen.invokeNative("0x67F7CEAC2391E114", // _SET_AI_CAN_USE_TRANSPORT
PlayerPedId(), // Entity transportEntity
false // BOOL state
);Function.Call((Hash)0x67F7CEAC2391E114, // _SET_AI_CAN_USE_TRANSPORT
API.PlayerPedId(), // Entity transportEntity
false // BOOL state
);Related AITRANSPORT natives
- _SET_PED_USE_TRANSPORT_SEAT_PREFERENCE
- _SET_TRANSPORT_EXCLUSIVE_DRIVER
- _SET_TRANSPORT_EXIT_BLEND_RATIO
- _SET_TRANSPORT_PRIORITY_SEAT
- _SET_TRANSPORT_USAGE_FLAGS
- SET_PED_OFF_TRANSPORT_SEAT
- SET_PED_ON_TRANSPORT_SEAT
- SET_TRANSPORT_ACCESSIBLE_SEAT_FLAGS
- SET_TRANSPORT_CONFIG_FLAG
- _CLEAR_TRANSPORT_EXIT_BLEND_RATIO
- _GET_PED_IN_TRANSPORT_SEAT
- _GET_TRANSPORT_USAGE_FLAGS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.