Log In
Sign Up
Game code

ENTITY::ATTACH_ENTITY_TO_ENTITY

0x54F86920946442C7 ·RVA 0x03C05B90

Signature

void ATTACH_ENTITY_TO_ENTITY(
    Entity entity1,
    Entity entity2,
    int boneIndex,
    Vector3 pos,
    Vector3 rot,
    BOOL p9,
    BOOL useSoftPinning,
    BOOL collision,
    BOOL isPed,
    int vertexIndex
);

The scripts pass 14 values to this native; the decoded signature lists 10 (arguments the game doesn't read are left out).

Parameters 10

#TypeNameNotes
0Entityentity1 –
1Entityentity2 –
2intboneIndex –
3Vector3pos –
4Vector3rot –
5BOOLp9 –
6BOOLuseSoftPinning –
7BOOLcollision –
8BOOLisPed –
9intvertexIndex –

Returns

void Nothing.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • fixedRot, in RDR3's signature, is not passed in GTA VI.
  • p15, in RDR3's signature, is not passed in GTA VI.
  • p16, in RDR3's signature, is not passed in GTA VI.
  • This lines up with RDR3's signature in more than one way; it takes the one that keeps RDR3's arguments first and puts the new ones after them.

Call it

// ENTITY::ATTACH_ENTITY_TO_ENTITY
invoke<Void>(0x54F86920946442C7, entity1, entity2, boneIndex, pos, rot, p9, useSoftPinning, collision, isPed, vertexIndex);

Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.

Improve this page

Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.