RedM Natives

SET_PED_INTO_VEHICLE

SET_PED_INTO_VEHICLE This is the server-side RPC native equivalent of the client native SET_PED_INTO_VEHICLE.

Hash0x7500C79
Runtime nameSetPedIntoVehicle
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_PED_INTO_VEHICLE(Ped ped, Vehicle vehicle, int seatIndex);

Parameters

NameTypeDescription
pedPed—
vehicleVehicle—
seatIndexint

See eSeatPosition declared in IS_VEHICLE_SEAT_FREE. -2 for the first available seat.

Returns void

Description

Cfx.re native reference

SET_PED_INTO_VEHICLE

This is the server-side RPC native equivalent of the client native SET_PED_INTO_VEHICLE.

Usage

Lua
SetPedIntoVehicle(ped, vehicle, seatIndex)

-- always works, by hash
Citizen.InvokeNative(0x7500c79, ped, vehicle, seatIndex)
JavaScript and C#
JavaScript
SetPedIntoVehicle(ped, vehicle, seatIndex);

// by hash
Citizen.invokeNative('0x7500c79', ped, vehicle, seatIndex);
C#
Function.Call((Hash)0x7500c79, ped, vehicle, seatIndex);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.