RedM Natives

GET_ENTITY_ATTACHED_TO

Hash0x56D713888A566481
Runtime nameGetEntityAttachedTo
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x48C2BED9180FE123

Signature

Entity GET_ENTITY_ATTACHED_TO(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Entity

Usage

Lua
local retval = GetEntityAttachedTo(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x56D713888A566481, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityAttachedTo(entity);

// by hash
const retval = Citizen.invokeNative('0x56D713888A566481', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x56D713888A566481, entity);

Sources

alloc8or RDR3 NativeDB

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