The Lab
ENTITY native

GET_ENTITY_ATTACHED_TO

returns Entity1 parambuild 1207

Returns the entity this entity is attached to.

Signature

C
Entity GET_ENTITY_ATTACHED_TO(Entity entity); // 0x56D713888A566481 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_ENTITY_ATTACHED_TO
Name
GET_ENTITY_ATTACHED_TO
Hash
0x56D713888A566481
Namespace
Returns
Entity
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0x56D713888A566481, -- GET_ENTITY_ATTACHED_TO
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x56D713888A566481", // GET_ENTITY_ATTACHED_TO
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x56D713888A566481, // GET_ENTITY_ATTACHED_TO
  API.PlayerPedId() // Entity entity
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.