# CFX::CREATE_PED_INSIDE_VEHICLE

- **Hash:** `0x3000F092`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `CreatePedInsideVehicle`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/CREATE_PED_INSIDE_VEHICLE

## Signature

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

## Parameters

- `vehicle` (`Vehicle`)
- `pedType` (`int`) — See [`CREATE_PED`](#\_0xD49F9B0955C367DE)
- `modelHash` (`Hash`)
- `seat` (`int`)
- `isNetwork` (`BOOL`)
- `bScriptHostPed` (`BOOL`)

## Returns

`Entity`

## Description

*Source: Cfx.re native reference*

CREATE_PED_INSIDE_VEHICLE

**This is the server-side RPC native equivalent of the client native [CREATE_PED_INSIDE_VEHICLE](?\_0x7DD959874C1FD534).**

## Usage

### Lua

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

-- always available, by hash
local retval = Citizen.InvokeNative(0x3000f092, vehicle, pedType, modelHash, seat, isNetwork, bScriptHostPed, Citizen.ResultAsInteger())
```

### JavaScript

```js
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#

```csharp
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.*
