RedM Natives

SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS

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

Hash0x6D09F32E284D0FB7
Runtime nameSetEntityCanBeTargetedWithoutLos
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD3997889736FD899

Signature

void SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS(Entity entity, BOOL toggle);

Parameters

NameTypeDescription
entityEntity—
toggleBOOL—

Returns void

Description

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

Usage

Lua
SetEntityCanBeTargetedWithoutLos(entity, toggle)

-- always works, by hash
Citizen.InvokeNative(0x6D09F32E284D0FB7, entity, toggle)
JavaScript and C#
JavaScript
SetEntityCanBeTargetedWithoutLos(entity, toggle);

// by hash
Citizen.invokeNative('0x6D09F32E284D0FB7', entity, toggle);
C#
Function.Call((Hash)0x6D09F32E284D0FB7, entity, toggle);

Sources

alloc8or RDR3 NativeDB

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