NetworkClient

setEntityGhostedForGhostPlayers

SET_ENTITY_GHOSTED_FOR_GHOST_PLAYERS0x4BA166079D658ED4

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

SignatureJavaScript
setEntityGhostedForGhostPlayers(entity: Entity, toggle: boolean): void
SignatureLua
setEntityGhostedForGhostPlayers(entity: Entity, toggle: boolean)

Usage

JavaScript
setEntityGhostedForGhostPlayers(entity, toggle);
Lua
setEntityGhostedForGhostPlayers(entity, toggle)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void SET_ENTITY_GHOSTED_FOR_GHOST_PLAYERS(Entity entity, BOOL toggle)
Hash
0x4BA166079D658ED4
Introduced
Game build 944 legacy numbering
Formerly
_NETWORK_SET_ENTITY_GHOSTED_WITH_OWNER

Open in the interactive natives reference