RedM Natives

HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT

Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.

Hash0xE88F19660651D566
Runtime nameHasEntityClearLosToEntityInFront
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0267D00AF114F17A

Signature

BOOL HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT(Entity entity1, Entity entity2, int traceType);

Parameters

NameTypeDescription
entity1Entity—
entity2Entity—
traceTypeint—

Returns BOOL

Description

Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.

Usage

Lua
local retval = HasEntityClearLosToEntityInFront(entity1, entity2, traceType)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE88F19660651D566, entity1, entity2, traceType, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasEntityClearLosToEntityInFront(entity1, entity2, traceType);

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

Sources

alloc8or RDR3 NativeDB

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