GET_ENTITY_ATTACHED_TO
Returns the entity this entity is attached to.
Signature
Entity GET_ENTITY_ATTACHED_TO(Entity entity); // 0x56D713888A566481 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| 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.
local entity = Citizen.InvokeNative(0x56D713888A566481, -- GET_ENTITY_ATTACHED_TO
PlayerPedId(), -- Entity entity
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x56D713888A566481", // GET_ENTITY_ATTACHED_TO
PlayerPedId(), // Entity entity
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x56D713888A566481, // GET_ENTITY_ATTACHED_TO
API.PlayerPedId() // Entity entity
);Related ENTITY natives
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- IS_ENTITY_ATTACHED_TO_ENTITY
- GET_ENTITY_ALPHA
- GET_NEAREST_PARTICIPANT_TO_ENTITY
- GET_NEAREST_PLAYER_TO_ENTITY
- GET_NEAREST_PLAYER_TO_ENTITY_ON_TEAM
- GET_ENTITY_BONE_INDEX_BY_NAME
- GET_ENTITY_COLLISION_DISABLED
- GET_ENTITY_COORDS
- GET_ENTITY_FORWARD_VECTOR
- GET_ENTITY_FORWARD_X
- GET_ENTITY_FORWARD_Y
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.