Обозначение метки телепорта

Bren

Известный
Автор темы
11
2
Версия MoonLoader
Другое
Делаю метки для телепорта, и нужно обозначение что в этом месте установлена метка. Использовал 3DText, но он пропадает после реконекта.
Похожая функция телепорта по своим меткам есть в собейте
 
Решение
типо такого?
Lua:
local points = {
    { 0, 0, 3 }
}
local Font = renderCreateFont('Trebuchet MS', 9, 4)

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        for index, point in ipairs(points) do
            local x, y, z = table.unpack(point)
            if isPointOnScreen(x, y, z, 0.1) then
                local x, y = convert3DCoordsToScreen(x, y, z)
                local text = 'Waypoint #'..index
                renderFontDrawText(Font, text, x - renderGetFontDrawTextLength(Font, text) / 2, y - renderGetFontDrawHeight(Font), 0xCCffffff)
                renderDrawPolygon(x, y + 10, 14, 14, 4, 0, 0xFF000000)
                renderDrawPolygon(x, y + 10, 10, 10, 4, 0, 0xFFffffff)...

chapo

tg/inst: @moujeek
Модератор
9,052
11,915
типо такого?
Lua:
local points = {
    { 0, 0, 3 }
}
local Font = renderCreateFont('Trebuchet MS', 9, 4)

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        for index, point in ipairs(points) do
            local x, y, z = table.unpack(point)
            if isPointOnScreen(x, y, z, 0.1) then
                local x, y = convert3DCoordsToScreen(x, y, z)
                local text = 'Waypoint #'..index
                renderFontDrawText(Font, text, x - renderGetFontDrawTextLength(Font, text) / 2, y - renderGetFontDrawHeight(Font), 0xCCffffff)
                renderDrawPolygon(x, y + 10, 14, 14, 4, 0, 0xFF000000)
                renderDrawPolygon(x, y + 10, 10, 10, 4, 0, 0xFFffffff)
            end
        end
    end
end
1685034039273.png
 
  • Нравится
Реакции: whyega52