IS_ENTITY_A_GHOST
Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER
Hash
0x21D04D7BC538C146Runtime name
IsEntityAGhostNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x21D04D7BC538C146Signature
BOOL IS_ENTITY_A_GHOST(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns BOOL
Description
Old name: _IS_ENTITY_GHOSTED_TO_LOCAL_PLAYER
Usage
local retval = IsEntityAGhost(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x21D04D7BC538C146, entity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsEntityAGhost(entity);
// by hash
const retval = Citizen.invokeNative('0x21D04D7BC538C146', entity, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x21D04D7BC538C146, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.