setEntityCanBeTargetedWithoutLos
SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS0xD3997889736FD899The 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.
setEntityCanBeTargetedWithoutLos(entity: Entity, toggle: boolean): voidsetEntityCanBeTargetedWithoutLos(entity: Entity, toggle: boolean)Usage
JavaScript
setEntityCanBeTargetedWithoutLos(entity, toggle);Lua
setEntityCanBeTargetedWithoutLos(entity, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
toggle | BOOL | boolean | boolean |
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