Skip to main content

ATTACH_OBJECT_TO_PED

Game.AttachObjectToPedHash0x577A699E
Usage
Game.AttachObjectToPed(objectIndex, charIndex, boneIndex, offsetX, offsetY, offsetZ, rotationX, rotationY, rotationZ, detachOnRagdoll)

Attaches an object to an char with a non physical attachement.

Parameters

  • objectIndexintegerint
  • charIndexintegerint
  • boneIndexintegerint
  • offsetXnumberfloat
  • offsetYnumberfloat
  • offsetZnumberfloat
  • rotationXnumberfloat
  • rotationYnumberfloat
  • rotationZnumberfloat
  • detachOnRagdollbooleanbool

Returns

Nothing

Original declaration
// 0x577A699E
void ATTACH_OBJECT_TO_PED(int objectIndex, int charIndex, int boneIndex, float offsetX, float offsetY, float offsetZ, float rotationX, float rotationY, float rotationZ, bool detachOnRagdoll);