[HELP] Ropes

Hi, how can i attach a rope between player and a fixed point on the map?

i tried with this code

local player = GetPlayerPed(-1)
local coords = GetEntityCoords(player)
local rope = AddRope(coords.x, coords.y, coords.z, -90, 90, -90, 1, 3, 1, 1, 1, false, true, true, 1, true, 0)
RopeLoadTextures()
RopeDrawShadowEnabled(rope, true)
AttachRopeToEntity(rope, player, 0, 0, 0, false)

but it spawn horizontal rope not attached to the fixed point or to the player

i can’t remember where I saw it but you have to attach it to a bone index on the ped.

How?
apparently there are no methods for attaching ropes to bones

maybe this?

AttachEntityToEntityPhysically

like I said I don’t remember where I saw it.

the fact is that the wall / fixed point on the map is not an entity so it would only work on the player