EntityClient

hasEntityClearLosToEntityAdjustForCover

HAS_ENTITY_CLEAR_LOS_TO_ENTITY_ADJUST_FOR_COVER0x394BDE2A7BBA031E

The GTA V native HAS_ENTITY_CLEAR_LOS_TO_ENTITY_ADJUST_FOR_COVER of the ENTITY namespace, as LS:MP client scripts call it: the global function hasEntityClearLosToEntityAdjustForCover, in JavaScript and in Lua.

SignatureJavaScript
hasEntityClearLosToEntityAdjustForCover(
  entity1: Entity,
  entity2: Entity,
  traceType: number
): boolean
SignatureLua
hasEntityClearLosToEntityAdjustForCover(
  entity1: Entity,
  entity2: Entity,
  traceType: integer
): boolean

Usage

JavaScript
const result = hasEntityClearLosToEntityAdjustForCover(entity1, entity2, traceType);
Lua
local result = hasEntityClearLosToEntityAdjustForCover(entity1, entity2, traceType)

Parameters

ParameterTypeJavaScriptLua
entity1Entitynumberinteger
entity2Entitynumberinteger
traceTypeintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL HAS_ENTITY_CLEAR_LOS_TO_ENTITY_ADJUST_FOR_COVER(Entity entity1, Entity entity2, int traceType)
Hash
0x394BDE2A7BBA031E
Introduced
Game build 1868 legacy numbering
Formerly
_HAS_ENTITY_CLEAR_LOS_TO_ENTITY_2

Open in the interactive natives reference