_DOES_THREAD_OWN_THIS_ENTITY
Returns true if calling script owns specified entity
Hash
0x88AD6CC10D8D35B2Runtime name
DoesThreadOwnThisEntityNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _DOES_THREAD_OWN_THIS_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns BOOL
Description
Returns true if calling script owns specified entity
Usage
local retval = DoesThreadOwnThisEntity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x88AD6CC10D8D35B2, entity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesThreadOwnThisEntity(entity);
// by hash
const retval = Citizen.invokeNative('0x88AD6CC10D8D35B2', entity, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.