# NETWORK::NETWORK_GET_NETWORK_ID_FROM_ROPE_ID

- **Hash:** `0x42871327315EDAE8`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `NetworkGetNetworkIdFromRopeId`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/NETWORK_GET_NETWORK_ID_FROM_ROPE_ID

## Signature

```c
int NETWORK_GET_NETWORK_ID_FROM_ROPE_ID(int ropeId);
```

## Parameters

- `ropeId` (`int`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = NetworkGetNetworkIdFromRopeId(ropeId)

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

### JavaScript

```js
const retval = NetworkGetNetworkIdFromRopeId(ropeId);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
