if num == 19056 then
local res, px, py, pz = getObjectCoordinates(v)
local x2, y2, z2 = getCharCoordinates(playerPed)
local wX, wY = convert3DCoordsToScreen(px, py, pz)
local myPosX, myPosY = convert3DCoordsToScreen(getCharCoordinates(PLAYER_PED))
local distance = string.format("%.0f", getDistanceBetweenCoords3d(px, py, pz, x2, y2, z2))
renderFontDrawText(font, '{ff74fb}Podarok {ffffff}['..distance..']', wX, wY , 0xFFFFFFFF)
renderDrawLine(myPosX, myPosY, wX, wY, 2.0, 0xFF74FBBB)
end
if num == 19054 then
local res, px, py, pz = getObjectCoordinates(v)
local x2, y2, z2 = getCharCoordinates(playerPed)
local wX, wY = convert3DCoordsToScreen(px, py, pz)
local myPosX, myPosY = convert3DCoordsToScreen(getCharCoordinates(PLAYER_PED))
local distance = string.format("%.0f", getDistanceBetweenCoords3d(px, py, pz, x2, y2, z2))
renderFontDrawText(font, '{ff74fb}Podarok {ffffff}['..distance..']', wX, wY , 0xFFFFFFFF)
renderDrawLine(myPosX, myPosY, wX, wY, 2.0, 0xFF74FBBB)
end
if num == 19055 then
local res, px, py, pz = getObjectCoordinates(v)
local x2, y2, z2 = getCharCoordinates(playerPed)
local wX, wY = convert3DCoordsToScreen(px, py, pz)
local myPosX, myPosY = convert3DCoordsToScreen(getCharCoordinates(PLAYER_PED))
local distance = string.format("%.0f", getDistanceBetweenCoords3d(px, py, pz, x2, y2, z2))
renderFontDrawText(font, '{ff74fb}Podarok {ffffff}['..distance..']', wX, wY , 0xFFFFFFFF)
renderDrawLine(myPosX, myPosY, wX, wY, 2.0, 0xFF74FBBB)
end
if num == 19058 then
local res, px, py, pz = getObjectCoordinates(v)
local x2, y2, z2 = getCharCoordinates(playerPed)
local wX, wY = convert3DCoordsToScreen(px, py, pz)
local myPosX, myPosY = convert3DCoordsToScreen(getCharCoordinates(PLAYER_PED))
local distance = string.format("%.0f", getDistanceBetweenCoords3d(px, py, pz, x2, y2, z2))
renderFontDrawText(font, '{ff74fb}Podarok {ffffff}['..distance..']', wX, wY , 0xFFFFFFFF)
renderDrawLine(myPosX, myPosY, wX, wY, 2.0, 0xFF74FBBB)
end
if num == 19057 then
local res, px, py, pz = getObjectCoordinates(v)
local x2, y2, z2 = getCharCoordinates(playerPed)
local wX, wY = convert3DCoordsToScreen(px, py, pz)
local myPosX, myPosY = convert3DCoordsToScreen(getCharCoordinates(PLAYER_PED))
local distance = string.format("%.0f", getDistanceBetweenCoords3d(px, py, pz, x2, y2, z2))
renderFontDrawText(font, '{ff74fb}Podarok {ffffff}['..distance..']', wX, wY , 0xFFFFFFFF)
renderDrawLine(myPosX, myPosY, wX, wY, 2.0, 0xFF74FBBB)
end