DOES_ENTITY_EXIST
Signature
BOOL DOES_ENTITY_EXIST(Object entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Object | — |
Returns BOOL
Usage
local retval = DoesEntityExist(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x3ac90869, entity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesEntityExist(entity);
// by hash
const retval = Citizen.invokeNative('0x3ac90869', entity, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x3ac90869, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.