TASK_ENTER_TRANSPORT
Request a ped to enter/join a transport seat.
Hash
0xAEE3ADD08829CB6FRuntime name
TaskEnterTransportNamespaceAITRANSPORT
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_ENTER_TRANSPORT(Any* args);Parameters
| Name | Type | Description |
|---|---|---|
args | Any* | — |
Returns void
Description
Request a ped to enter/join a transport seat. args is a script struct<9> (72 bytes); each field is 8-byte (alignas(8)).
struct TaskEnterTransportArgs
{
alignas(8) Any p0; // unused/reserved in observed scripts
alignas(8) Any p1; // unused/reserved in observed scripts
alignas(8) Any p2; // unused/reserved in observed scripts
alignas(8) Ped ped; // performing ped
alignas(8) Vehicle vehicle; // target transport
alignas(8) int seatIndex; // seat to join (scripts use -1 or explicit seat)
alignas(8) int timeoutMs; // time until forced join/teleport (commonly 20000)
alignas(8) float pedSpeed; // blend/speed
alignas(8) int flags; // seen values: (1<<30), 1, 16, 1048578 (usage unclear)
};Usage
local args = TaskEnterTransport(args)
-- always works, by hash
local args = Citizen.InvokeNative(0xAEE3ADD08829CB6F, Citizen.PointerValueIntInitialized(args))JavaScript and C#
const args = TaskEnterTransport(args);
// by hash
const args = Citizen.invokeNative('0xAEE3ADD08829CB6F', Citizen.pointerValueIntInitialized(args));var args = new OutputArgument();
Function.Call((Hash)0xAEE3ADD08829CB6F, args);
// args.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Examples
struct args
{
Any p0;
Any p1;
Any p2;
Ped ped;
Vehicle vehicle;
int seatIndex;
int timer;
float pedSpeed;
int flags;
}Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.