Skip to main content

ATTACH_PED_TO_CAR

Game.AttachPedToCarHash0x3EFC1A7D
Usage
Game.AttachPedToCar(charIndex, carIndex, boneIndex, offsetX, offsetY, offsetZ, defaultHeading, headingLimit, detachWhenDead, detachWhenRagdoll)

Attaches an ped to an car with a non physical attachement.

Parameters

  • charIndexintegerint
  • carIndexintegerint
  • boneIndexintegerint
  • offsetXnumberfloat
  • offsetYnumberfloat
  • offsetZnumberfloat
  • defaultHeadingnumberfloat
  • headingLimitnumberfloat
  • detachWhenDeadbooleanbool
  • detachWhenRagdollbooleanbool

Returns

Nothing

Original declaration
// 0x3EFC1A7D
void ATTACH_PED_TO_CAR(int charIndex, int carIndex, int boneIndex, float offsetX, float offsetY, float offsetZ, float defaultHeading, float headingLimit, bool detachWhenDead, bool detachWhenRagdoll);