RedM Natives

_DOES_THREAD_OWN_THIS_ENTITY

Returns true if calling script owns specified entity

Hash0x88AD6CC10D8D35B2
Runtime nameDoesThreadOwnThisEntity
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _DOES_THREAD_OWN_THIS_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL

Description

Returns true if calling script owns specified entity

Usage

Lua
local retval = DoesThreadOwnThisEntity(entity)

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

// by hash
const retval = Citizen.invokeNative('0x88AD6CC10D8D35B2', entity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x88AD6CC10D8D35B2, entity);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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