altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Entity.attachTo isn't working for attaching Ped to Player #2255

Open MrChester-X opened 3 months ago

MrChester-X commented 3 months ago

Description of the problem

I tried to attach any Ped to Player on server using Entity.attachTo, that wasn't working I also set animation for Player and Ped

Снимок экрана 2024-03-07 063949

Currently I tested and it was worked:

Reproduction steps

const player: alt.Player = ...
const ped: alt.Ped = ...

// 28422 = EntityBoneId.PhRHand
// 0 = EntityBoneId.SkelROOT
ped.attachTo(player, 28422, 0, { x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 0 }, false, false)

Expected behaviour

Ped will attach to Player, like Player to Player attach works

Additional context

No response

Operating system

Windows

Version

v16.0.141

Crashdump ID

No response

Confirmation of issue's presence

litolax commented 3 months ago

Reproduced