The Lab
ENTITY native

DOES_ENTITY_BELONG_TO_THIS_SCRIPT

returns BOOL2 paramsbuild 1207

Returns true if the entity belongs to the calling script.

Signature

C
BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1); // 0x622B1980CBE13332 b1207

Parameters

#NameType
1entityEntity
2p1BOOL

Facts

Facts about DOES_ENTITY_BELONG_TO_THIS_SCRIPT
Name
DOES_ENTITY_BELONG_TO_THIS_SCRIPT
Hash
0x622B1980CBE13332
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x622B1980CBE13332, -- DOES_ENTITY_BELONG_TO_THIS_SCRIPT
  PlayerPedId(), -- Entity entity
  false -- BOOL p1
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x622B1980CBE13332", // DOES_ENTITY_BELONG_TO_THIS_SCRIPT
  PlayerPedId(), // Entity entity
  false, // BOOL p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x622B1980CBE13332, // DOES_ENTITY_BELONG_TO_THIS_SCRIPT
  API.PlayerPedId(), // Entity entity
  false // BOOL p1
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.