setLocalPlayerAsGhost
SET_LOCAL_PLAYER_AS_GHOST0x5FFE9B4144F9712FThe 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.
setLocalPlayerAsGhost(toggle: boolean, p1: boolean): voidsetLocalPlayerAsGhost(toggle: boolean, p1: boolean)Usage
JavaScript
setLocalPlayerAsGhost(toggle, p1);Lua
setLocalPlayerAsGhost(toggle, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
p1 | BOOL | boolean | boolean |
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