Рендер 3dText

Sven

Участник
Автор темы
56
13
Ищу рендер 3d text'a. От AIR не нужен.
 
Решение
А есть скрипт, который показывает все 3dText в зоне стрима?

danissimo.

Известный
37
7
Code:
local render228 = "{4C6ADD}[ЗНАЧЕНИЕ] {FFFFFF}"
worked = not worked
worked = false

function main()
    while not isSampAvailable() do wait(0) end
    local font = renderCreateFont("Cambria Regular", 7, 7)
    sampRegisterChatCommand("render228", function()
        worked = not worked
        if worked then
            sampAddChatMessage("{4C6ADD}[RENDER228] {FFFFFF} Включено!", -1)
        else
            sampAddChatMessage("{4C6ADD}[RENDER228] {FFFFFF} Выключено!", -1)
        end
    end)
    while true do
        wait(0)
        if worked then
            for a = 1, 2048 do
                if sampIs3dTextDefined(a) then
                    local string, color, vposX, vposY, vposZ, distance, ignoreWalls, playerId, vehicleId = sampGet3dTextInfoById(a)
                    local X, Y, Z = getCharCoordinates(PLAYER_PED)
                    local distances = getDistanceBetweenCoords2d(vposX, vposY, X, Y)
                    if isPointOnScreen(vposX, vposY, vposZ, 0.0) and string.find(string, "СЮДА НЕОБХОДИМЫЙ ТЕКСТ") and distances > 0.5 then
                        local wposX, wposY = convert3DCoordsToScreen(vposX, vposY, vposZ)
                        renderFontDrawText(font, render228 .. string, wposX, wposY, color)
                                        end
                end
            end
        end
  end
end
 
  • Нравится
Реакции: Sven

Sven

Участник
Автор темы
56
13
Code:
local render228 = "{4C6ADD}[ЗНАЧЕНИЕ] {FFFFFF}"
worked = not worked
worked = false

function main()
    while not isSampAvailable() do wait(0) end
    local font = renderCreateFont("Cambria Regular", 7, 7)
    sampRegisterChatCommand("render228", function()
        worked = not worked
        if worked then
            sampAddChatMessage("{4C6ADD}[RENDER228] {FFFFFF} Включено!", -1)
        else
            sampAddChatMessage("{4C6ADD}[RENDER228] {FFFFFF} Выключено!", -1)
        end
    end)
    while true do
        wait(0)
        if worked then
            for a = 1, 2048 do
                if sampIs3dTextDefined(a) then
                    local string, color, vposX, vposY, vposZ, distance, ignoreWalls, playerId, vehicleId = sampGet3dTextInfoById(a)
                    local X, Y, Z = getCharCoordinates(PLAYER_PED)
                    local distances = getDistanceBetweenCoords2d(vposX, vposY, X, Y)
                    if isPointOnScreen(vposX, vposY, vposZ, 0.0) and string.find(string, "СЮДА НЕОБХОДИМЫЙ ТЕКСТ") and distances > 0.5 then
                        local wposX, wposY = convert3DCoordsToScreen(vposX, vposY, vposZ)
                        renderFontDrawText(font, render228 .. string, wposX, wposY, color)
                                        end
                end
            end
        end
  end
end
А есть скрипт, который показывает все 3dText в зоне стрима?
 

VgrxTxch

Известный
1,163
323
А есть скрипт, который показывает все 3dText в зоне стрима?
 

Sven

Участник
Автор темы
56
13
Уже давно нашёл :)
Но все равно спасибо. 😊