DOES_ENTITY_BELONG_TO_THIS_SCRIPT
Hash
0x622B1980CBE13332Runtime name
DoesEntityBelongToThisScriptNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xDDE6DF5AE89981D2Signature
BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
p1 | BOOL | — |
Returns BOOL
Usage
local retval = DoesEntityBelongToThisScript(entity, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0x622B1980CBE13332, entity, p1, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesEntityBelongToThisScript(entity, p1);
// by hash
const retval = Citizen.invokeNative('0x622B1980CBE13332', entity, p1, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x622B1980CBE13332, entity, p1);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.