EntityClient

doesEntityBelongToThisScript

DOES_ENTITY_BELONG_TO_THIS_SCRIPT0xDDE6DF5AE89981D2

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

SignatureJavaScript
doesEntityBelongToThisScript(entity: Entity, p1: boolean): boolean
SignatureLua
doesEntityBelongToThisScript(entity: Entity, p1: boolean): boolean

Usage

JavaScript
const result = doesEntityBelongToThisScript(entity, p1);
Lua
local result = doesEntityBelongToThisScript(entity, p1)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
p1BOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1)
Hash
0xDDE6DF5AE89981D2

Open in the interactive natives reference