CREATE_PED_INSIDE_VEHICLE
CREATE_PED_INSIDE_VEHICLE This is the server-side RPC native equivalent of the client native CREATE_PED_INSIDE_VEHICLE.
Signature
Entity CREATE_PED_INSIDE_VEHICLE(Vehicle vehicle, int pedType, Hash modelHash, int seat, BOOL isNetwork, BOOL bScriptHostPed);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
pedType | int | See |
modelHash | Hash | — |
seat | int | — |
isNetwork | BOOL | — |
bScriptHostPed | BOOL | — |
Returns Entity
Description
This is the server-side RPC native equivalent of the client native CREATE_PED_INSIDE_VEHICLE.
Usage
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#
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());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.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.