DOES_ENTITY_EXIST
Checks if the Entity exists
Hash
0xD42BD6EB2E0F1677Runtime name
DoesEntityExistNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x7239B21A38F536BASignature
BOOL DOES_ENTITY_EXIST(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns BOOL
Description
Checks if the Entity exists
Usage
local retval = DoesEntityExist(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD42BD6EB2E0F1677, entity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesEntityExist(entity);
// by hash
const retval = Citizen.invokeNative('0xD42BD6EB2E0F1677', entity, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xD42BD6EB2E0F1677, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.