RedM Natives

IS_ENTITY_ON_SCREEN

Hash0x613C15D5D8DB781F
Runtime nameIsEntityOnScreen
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE659E47AF827484B

Signature

BOOL IS_ENTITY_ON_SCREEN(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL

Usage

Lua
local retval = IsEntityOnScreen(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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