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