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