doesEntityBelongToThisScript
DOES_ENTITY_BELONG_TO_THIS_SCRIPT0xDDE6DF5AE89981D2The 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.
doesEntityBelongToThisScript(entity: Entity, p1: boolean): booleandoesEntityBelongToThisScript(entity: Entity, p1: boolean): booleanUsage
JavaScript
const result = doesEntityBelongToThisScript(entity, p1);Lua
local result = doesEntityBelongToThisScript(entity, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
p1 | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Entity ENTITY
- In the game
BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1)- Hash
0xDDE6DF5AE89981D2