RedM Natives

CREATE_PED_INSIDE_VEHICLE

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

Hash0x3000F092
Runtime nameCreatePedInsideVehicle
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Entity CREATE_PED_INSIDE_VEHICLE(Vehicle vehicle, int pedType, Hash modelHash, int seat, BOOL isNetwork, BOOL bScriptHostPed);

Parameters

NameTypeDescription
vehicleVehicle—
pedTypeint

See CREATE_PED

modelHashHash—
seatint—
isNetworkBOOL—
bScriptHostPedBOOL—

Returns Entity

Description

Cfx.re native reference

CREATE_PED_INSIDE_VEHICLE

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

Usage

Lua
local retval = CreatePedInsideVehicle(vehicle, pedType, modelHash, seat, isNetwork, bScriptHostPed)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3000f092, vehicle, pedType, modelHash, seat, isNetwork, bScriptHostPed, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreatePedInsideVehicle(vehicle, pedType, modelHash, seat, isNetwork, bScriptHostPed);

// by hash
const retval = Citizen.invokeNative('0x3000f092', vehicle, pedType, modelHash, seat, isNetwork, bScriptHostPed, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x3000f092, vehicle, pedType, modelHash, seat, isNetwork, bScriptHostPed);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

Cfx.re native reference

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