DOES_ENTITY_BELONG_TO_THIS_SCRIPT
Returns true if the entity belongs to the calling script.
Signature
BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1); // 0x622B1980CBE13332 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | BOOL |
Facts
| 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.
local result = Citizen.InvokeNative(0x622B1980CBE13332, -- DOES_ENTITY_BELONG_TO_THIS_SCRIPT
PlayerPedId(), -- Entity entity
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x622B1980CBE13332", // DOES_ENTITY_BELONG_TO_THIS_SCRIPT
PlayerPedId(), // Entity entity
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x622B1980CBE13332, // DOES_ENTITY_BELONG_TO_THIS_SCRIPT
API.PlayerPedId(), // Entity entity
false // BOOL p1
);Related ENTITY natives
- DOES_ENTITY_EXIST
- DOES_ENTITY_HAVE_DRAWABLE
- DOES_ENTITY_HAVE_PHYSICS
- _DOES_THREAD_OWN_THIS_ENTITY
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_ATTACHED_TO_ENTITY
- IS_ENTITY_VISIBLE_TO_SCRIPT
- _ATTACH_ENTITY_TO_COORDS_PHYSICALLY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.