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
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Entity | entity1 |
– |
| 1 | Entity | entity2 |
– |
| 2 | int | boneIndex |
– |
| 3 | Vector3 | pos |
– |
| 4 | Vector3 | rot |
– |
| 5 | BOOL | p9 |
– |
| 6 | BOOL | useSoftPinning |
– |
| 7 | BOOL | collision |
– |
| 8 | BOOL | isPed |
– |
| 9 | int | vertexIndex |
– |
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);// ENTITY::ATTACH_ENTITY_TO_ENTITY
Function.Call((Hash)0x54F86920946442C7, entity1, entity2, boneIndex, pos, rot, p9, useSoftPinning, collision, isPed, vertexIndex);-- ENTITY::ATTACH_ENTITY_TO_ENTITY
Citizen.InvokeNative(0x54F86920946442C7, entity1, entity2, boneIndex, pos, rot, p9, useSoftPinning, collision, isPed, vertexIndex)// ENTITY::ATTACH_ENTITY_TO_ENTITY
Citizen.invokeNative("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.