# NETWORK::NETWORK_SET_IN_SPECTATOR_MODE

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

## Signature

```c
void NETWORK_SET_IN_SPECTATOR_MODE(BOOL toggle, Ped playerPed);
```

## Parameters

- `toggle` (`BOOL`)
- `playerPed` (`Ped`)

## Returns

`void`

## Usage

### Lua

```lua
NetworkSetInSpectatorMode(toggle, playerPed)

-- always available, by hash
Citizen.InvokeNative(0x423DE3854BB50894, toggle, playerPed)
```

### JavaScript

```js
NetworkSetInSpectatorMode(toggle, playerPed);

// by hash
Citizen.invokeNative('0x423DE3854BB50894', toggle, playerPed);
```

### C#

```csharp
Function.Call((Hash)0x423DE3854BB50894, toggle, playerPed);
```

*Sources: alloc8or RDR3 NativeDB.*
