EntityClient

attachEntityBoneToEntityBone

ATTACH_ENTITY_BONE_TO_ENTITY_BONE0x5C48B75732C8456C

The GTA V native ATTACH_ENTITY_BONE_TO_ENTITY_BONE of the ENTITY namespace, as LS:MP client scripts call it: the global function attachEntityBoneToEntityBone, in JavaScript and in Lua.

SignatureJavaScript
attachEntityBoneToEntityBone(
  entity1: Entity,
  entity2: Entity,
  boneIndex1: number,
  boneIndex2: number,
  p4: boolean,
  p5: boolean
): void
SignatureLua
attachEntityBoneToEntityBone(
  entity1: Entity,
  entity2: Entity,
  boneIndex1: integer,
  boneIndex2: integer,
  p4: boolean,
  p5: boolean
)

Usage

JavaScript
attachEntityBoneToEntityBone(entity1, entity2, boneIndex1, boneIndex2, p4, p5);
Lua
attachEntityBoneToEntityBone(entity1, entity2, boneIndex1, boneIndex2, p4, p5)

Parameters

ParameterTypeJavaScriptLua
entity1Entitynumberinteger
entity2Entitynumberinteger
boneIndex1intnumberinteger
boneIndex2intnumberinteger
p4BOOLbooleanboolean
p5BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void ATTACH_ENTITY_BONE_TO_ENTITY_BONE(Entity entity1, Entity entity2, int boneIndex1, int boneIndex2, BOOL p4, BOOL p5)
Hash
0x5C48B75732C8456C
Introduced
Game build 791 legacy numbering
Formerly
_ATTACH_ENTITY_BONE_TO_ENTITY_BONE

Open in the interactive natives reference