TASK_ENTER_VEHICLE
Hash
0xC20E50AA46D09CA8Runtime name
TaskEnterVehicleNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xC20E50AA46D09CA8Signature
void TASK_ENTER_VEHICLE(Ped ped, Vehicle vehicle, int timeout, int seat, float speed, int flag, Any p6);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
vehicle | Vehicle | — |
timeout | int | — |
seat | int | — |
speed | float | — |
flag | int | — |
p6 | Any | — |
Returns void
Description
flags: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEnterExitVehicleFlags
Usage
TaskEnterVehicle(ped, vehicle, timeout, seat, speed, flag, p6)
-- always works, by hash
Citizen.InvokeNative(0xC20E50AA46D09CA8, ped, vehicle, timeout, seat, speed, flag, p6)JavaScript and C#
TaskEnterVehicle(ped, vehicle, timeout, seat, speed, flag, p6);
// by hash
Citizen.invokeNative('0xC20E50AA46D09CA8', ped, vehicle, timeout, seat, speed + 0.0000001, flag, p6);Function.Call((Hash)0xC20E50AA46D09CA8, ped, vehicle, timeout, seat, speed, flag, p6);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEnterExitVehicleFlags 29 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.