RedM Natives

NETWORK_SET_IN_SPECTATOR_MODE

Hash0x423DE3854BB50894
Runtime nameNetworkSetInSpectatorMode
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x423DE3854BB50894

Signature

void NETWORK_SET_IN_SPECTATOR_MODE(BOOL toggle, Ped playerPed);

Parameters

NameTypeDescription
toggleBOOL—
playerPedPed—

Returns void

Usage

Lua
NetworkSetInSpectatorMode(toggle, playerPed)

-- always works, by hash
Citizen.InvokeNative(0x423DE3854BB50894, toggle, playerPed)
JavaScript and C#
JavaScript
NetworkSetInSpectatorMode(toggle, playerPed);

// by hash
Citizen.invokeNative('0x423DE3854BB50894', toggle, playerPed);
C#
Function.Call((Hash)0x423DE3854BB50894, toggle, playerPed);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.