RedM Natives

IS_ENTITY_VISIBLE

This native checks if the given entity is visible.

Hash0x120B4ED5
Runtime nameIsEntityVisible
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL IS_ENTITY_VISIBLE(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL — Returns `true` if the entity is visible, `false` otherwise.

Description

Cfx.re native reference

This native checks if the given entity is visible.

Usage

Lua
local retval = IsEntityVisible(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x120b4ed5, entity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsEntityVisible(entity);

// by hash
const retval = Citizen.invokeNative('0x120b4ed5', entity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x120b4ed5, entity);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.