RedM Natives

IS_ENTITY_OCCLUDED

Hash0x140188E884645624
Runtime nameIsEntityOccluded
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE31C2C72B8692B64

Signature

BOOL IS_ENTITY_OCCLUDED(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL

Usage

Lua
local retval = IsEntityOccluded(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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