RedM Natives

IS_ENTITY_VISIBLE_TO_SCRIPT

Hash0xF213C724E77F321A
Runtime nameIsEntityVisibleToScript
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD796CB5BA8F20E32

Signature

BOOL IS_ENTITY_VISIBLE_TO_SCRIPT(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL

Usage

Lua
local retval = IsEntityVisibleToScript(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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