SET_PED_INTO_VEHICLE
SET_PED_INTO_VEHICLE This is the server-side RPC native equivalent of the client native SET_PED_INTO_VEHICLE.
Signature
void SET_PED_INTO_VEHICLE(Ped ped, Vehicle vehicle, int seatIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
vehicle | Vehicle | — |
seatIndex | int | See eSeatPosition declared in |
Returns void
Description
This is the server-side RPC native equivalent of the client native SET_PED_INTO_VEHICLE.
Usage
SetPedIntoVehicle(ped, vehicle, seatIndex)
-- always works, by hash
Citizen.InvokeNative(0x7500c79, ped, vehicle, seatIndex)JavaScript and C#
SetPedIntoVehicle(ped, vehicle, seatIndex);
// by hash
Citizen.invokeNative('0x7500c79', ped, vehicle, seatIndex);Function.Call((Hash)0x7500c79, ped, vehicle, seatIndex);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.