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.
Hash
0xE88F19660651D566Runtime name
HasEntityClearLosToEntityInFrontNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0267D00AF114F17ASignature
BOOL HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT(Entity entity1, Entity entity2, int traceType);Parameters
| Name | Type | Description |
|---|---|---|
entity1 | Entity | — |
entity2 | Entity | — |
traceType | int | — |
Returns BOOL
Description
Has the entity1 got a clear line of sight to the other entity2 from the direction entity1 is facing.
Usage
local retval = HasEntityClearLosToEntityInFront(entity1, entity2, traceType)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE88F19660651D566, entity1, entity2, traceType, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = HasEntityClearLosToEntityInFront(entity1, entity2, traceType);
// by hash
const retval = Citizen.invokeNative('0xE88F19660651D566', entity1, entity2, traceType, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xE88F19660651D566, entity1, entity2, traceType);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.