IS_ENTITY_VISIBLE
This native checks if the given entity is visible.
Signature
BOOL IS_ENTITY_VISIBLE(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns BOOL — Returns `true` if the entity is visible, `false` otherwise.
Description
This native checks if the given entity is visible.
Usage
local retval = IsEntityVisible(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x120b4ed5, entity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsEntityVisible(entity);
// by hash
const retval = Citizen.invokeNative('0x120b4ed5', entity, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x120b4ed5, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.