EntityClient

attachEntityBoneToEntityBoneYForward

ATTACH_ENTITY_BONE_TO_ENTITY_BONE_Y_FORWARD0xFD1695C5D3B05439

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

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

Usage

JavaScript
attachEntityBoneToEntityBoneYForward(entity1, entity2, boneIndex1, boneIndex2, p4, p5);
Lua
attachEntityBoneToEntityBoneYForward(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_Y_FORWARD(Entity entity1, Entity entity2, int boneIndex1, int boneIndex2, BOOL p4, BOOL p5)
Hash
0xFD1695C5D3B05439
Introduced
Game build 791 legacy numbering
Formerly
_ATTACH_ENTITY_BONE_TO_ENTITY_BONE_PHYSICALLY

Open in the interactive natives reference