isEntityAGhost
IS_ENTITY_A_GHOST0x21D04D7BC538C146The 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.
isEntityAGhost(entity: Entity): booleanisEntityAGhost(entity: Entity): booleanUsage
JavaScript
const result = isEntityAGhost(entity);Lua
local result = isEntityAGhost(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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