NetworkClient

isEntityAGhost

IS_ENTITY_A_GHOST0x21D04D7BC538C146

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

SignatureJavaScript
isEntityAGhost(entity: Entity): boolean
SignatureLua
isEntityAGhost(entity: Entity): boolean

Usage

JavaScript
const result = isEntityAGhost(entity);
Lua
local result = isEntityAGhost(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Network NETWORK
In the game
BOOL IS_ENTITY_A_GHOST(Entity entity)
Hash
0x21D04D7BC538C146
Formerly
_IS_ENTITY_A_GHOST _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER

Open in the interactive natives reference