TASK_WARP_PED_INTO_VEHICLE
NativeDB Introduced: v323 Warp a ped into a vehicle.
Signature
void TASK_WARP_PED_INTO_VEHICLE(Ped ped, Vehicle vehicle, int seatIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The Ped to be warped into the vehicle. |
vehicle | Vehicle | The target vehicle into which the ped will be warped. |
seatIndex | int | See eSeatPosition declared in |
Returns void
Description
NativeDB Introduced: v323Warp a ped into a vehicle.
Note: It's better to use TASK_ENTER_VEHICLE with the flag "warp" flag instead of this native.
This is the server-side RPC native equivalent of the client native TASK_WARP_PED_INTO_VEHICLE.
Usage
TaskWarpPedIntoVehicle(ped, vehicle, seatIndex)
-- always works, by hash
Citizen.InvokeNative(0x65d4a35d, ped, vehicle, seatIndex)JavaScript and C#
TaskWarpPedIntoVehicle(ped, vehicle, seatIndex);
// by hash
Citizen.invokeNative('0x65d4a35d', ped, vehicle, seatIndex);Function.Call((Hash)0x65d4a35d, ped, vehicle, seatIndex);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.