RedM Natives

DOES_ENTITY_BELONG_TO_THIS_SCRIPT

Hash0x622B1980CBE13332
Runtime nameDoesEntityBelongToThisScript
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDDE6DF5AE89981D2

Signature

BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1);

Parameters

NameTypeDescription
entityEntity—
p1BOOL—

Returns BOOL

Usage

Lua
local retval = DoesEntityBelongToThisScript(entity, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x622B1980CBE13332, entity, p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DoesEntityBelongToThisScript(entity, p1);

// by hash
const retval = Citizen.invokeNative('0x622B1980CBE13332', entity, p1, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x622B1980CBE13332, entity, p1);

Sources

alloc8or RDR3 NativeDB

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