NetworkClient

setLocalPlayerAsGhost

SET_LOCAL_PLAYER_AS_GHOST0x5FFE9B4144F9712F

The GTA V native SET_LOCAL_PLAYER_AS_GHOST of the NETWORK namespace, as LS:MP client scripts call it: the global function setLocalPlayerAsGhost, in JavaScript and in Lua.

SignatureJavaScript
setLocalPlayerAsGhost(toggle: boolean, p1: boolean): void
SignatureLua
setLocalPlayerAsGhost(toggle: boolean, p1: boolean)

Usage

JavaScript
setLocalPlayerAsGhost(toggle, p1);
Lua
setLocalPlayerAsGhost(toggle, p1)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void SET_LOCAL_PLAYER_AS_GHOST(BOOL toggle, BOOL p1)
Hash
0x5FFE9B4144F9712F
Formerly
_SET_LOCAL_PLAYER_AS_GHOST

Open in the interactive natives reference