# NETWORK::NETWORK_IS_HANDLE_VALID

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

## Signature

```c
BOOL NETWORK_IS_HANDLE_VALID(Any* gamerHandle);
```

## Parameters

- `gamerHandle` (`Any*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, gamerHandle = NetworkIsHandleValid(gamerHandle)

-- always available, by hash
local retval, gamerHandle = Citizen.InvokeNative(0x6F79B93B0A8E4133, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, gamerHandle] = NetworkIsHandleValid(gamerHandle);

// by hash
const [retval, gamerHandle] = Citizen.invokeNative('0x6F79B93B0A8E4133', Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway());
```

### C#

```csharp
var gamerHandle = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x6F79B93B0A8E4133, gamerHandle);
// gamerHandle.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- `Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.

*Sources: alloc8or RDR3 NativeDB.*
