Неактуально Рендер 3д текста

Fasmin

Участник
Автор темы
175
6
Версия MoonLoader
.026-beta
Выходит такая ошибка, но не пойму из за чего "
KSYpywL1-go.jpg
"

code:
код:
function main()
    repeat wait(0) until isSampAvailable()
    sampRegisterChatCommand("reg", function()
        regg = not regg
        printString(regg and "On" or "Off", 1000)
    end)
    while true do wait(0)
        if regg then
            for i=0, 2048 do
                if sampIs3dTextDefined(i) then
                    local text2, color2, posX2, posY2, posZ2, distance2, ignoreWalls2, player2, vehicle2 = sampGet3dTextInfoById(i)
                    if text2:find("Банкомат") then
                        local x, y, z = getCharCoordinates(PLAYER_PED)
                        local wX, wY = convert3DCoordsToScreen(x,y,z)
                        local wwx, wwy = convert3DCoordsToScreen(posX2, posY2, posZ2)
                        renderDrawLine(wX, wY, wwx, wwy, 3, 0xFFD00000)
                        local dist = string.format("%.1f", getDistanceBetweenCoords3d(x,y,z, posX2, posY2, posZ2))
                        renderFontDrawText(font, "dist: "..dist, wwx, wwy, -1)
                    end
                end
            end
        end
    end
end