# NETWORK::VEH_TO_NET

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

## Signature

```c
int VEH_TO_NET(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`)

## Returns

`int`

## Description

Returns the network ID of the given vehicle.

## Usage

### Lua

```lua
local retval = VehToNet(vehicle)

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

### JavaScript

```js
const retval = VehToNet(vehicle);

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

### C#

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

## See also

- [NETWORK::PED_TO_NET](https://natives.borderlinerp.com/natives/NETWORK/PED_TO_NET.md) — Returns the network ID of the given ped.
- [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.*
