# NETWORK::PED_TO_NET

- **Hash:** `0x0EDEC3C276198689`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `PedToNet`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/PED_TO_NET

## Signature

```c
int PED_TO_NET(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`int`

## Description

Returns the network ID of the given ped.

## Usage

### Lua

```lua
local retval = PedToNet(ped)

-- always available, by hash
local retval = Citizen.InvokeNative(0x0EDEC3C276198689, ped, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = PedToNet(ped);

// by hash
const retval = Citizen.invokeNative('0x0EDEC3C276198689', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x0EDEC3C276198689, ped);
```

## See also

- [NETWORK::VEH_TO_NET](https://natives.borderlinerp.com/natives/NETWORK/VEH_TO_NET.md) — Returns the network ID of the given vehicle.
- [NETWORK::OBJ_TO_NET](https://natives.borderlinerp.com/natives/NETWORK/OBJ_TO_NET.md) — Returns the network ID of the given object.
- [NETWORK::_PROPSET_TO_NET](https://natives.borderlinerp.com/natives/NETWORK/_PROPSET_TO_NET.md)

*Sources: alloc8or RDR3 NativeDB.*
