EntityClient

setEntityCanBeTargetedWithoutLos

SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS0xD3997889736FD899

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

SignatureJavaScript
setEntityCanBeTargetedWithoutLos(entity: Entity, toggle: boolean): void
SignatureLua
setEntityCanBeTargetedWithoutLos(entity: Entity, toggle: boolean)

Usage

JavaScript
setEntityCanBeTargetedWithoutLos(entity, toggle);
Lua
setEntityCanBeTargetedWithoutLos(entity, toggle)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets whether the entity can be targeted without being in line-of-sight.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS(Entity entity, BOOL toggle)
Hash
0xD3997889736FD899

Open in the interactive natives reference