networkSetActivitySpectatorMax
NETWORK_SET_ACTIVITY_SPECTATOR_MAX0x9D277B76D1D12222The GTA V native NETWORK_SET_ACTIVITY_SPECTATOR_MAX of the NETWORK namespace, as LS:MP client scripts call it: the global function networkSetActivitySpectatorMax, in JavaScript and in Lua.
networkSetActivitySpectatorMax(maxSpectators: number): voidnetworkSetActivitySpectatorMax(maxSpectators: integer)Usage
JavaScript
networkSetActivitySpectatorMax(maxSpectators);Lua
networkSetActivitySpectatorMax(maxSpectators)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
maxSpectators | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Network NETWORK
- In the game
void NETWORK_SET_ACTIVITY_SPECTATOR_MAX(int maxSpectators)- Hash
0x9D277B76D1D12222