ENTITY
ATTACH_ENTITY_TO_ENTITY
0x6B9BBD38AB0796DF
Jenkins: 0xEC024237
Signature
// ENTITY
void ATTACH_ENTITY_TO_ENTITY(Entity entity1, Entity entity2, int boneIndex, float xPos, float yPos, float zPos, float xRot, float yRot, float zRot, BOOL p9, BOOL useSoftPinning, BOOL collision, BOOL isPed, int vertexIndex, BOOL fixedRot, Any p15)
Parameters
| Type | Name |
|---|---|
| Entity | entity1 |
| Entity | entity2 |
| int | boneIndex |
| float | xPos |
| float | yPos |
| float | zPos |
| float | xRot |
| float | yRot |
| float | zRot |
| BOOL | p9 |
| BOOL | useSoftPinning |
| BOOL | collision |
| BOOL | isPed |
| int | vertexIndex |
| BOOL | fixedRot |
| Any | p15 |
Return type void
Build 323
Documentation
Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type. useSoftPinning - if set to false attached entity will not detach when fixed collision - controls collision between the two entities (FALSE disables collision). isPed - pitch doesnt work when false and roll will only work on negative numbers (only peds) vertexIndex - position of vertex fixedRot - if false it ignores entity vector
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.