/
0xfc
/
bully-online-backup
Обзор
Документация
Войти
/
0xfc
/
bully-online-backup
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
scripts/quick_text/cl_text.lua
39 строк
888 B
Daniil Severin
Initial commit
15 янв 2026, 16:24
15 янв 2026, 16:24
6dc16fc
Код
Авторство
О чём код?
gText = "" function T_Draw() while true do SetTextFont("Georgia") SetTextBold() SetTextColor(230,230,230,255) SetTextOutline() SetTextAlign("C","T") SetTextPosition(0.5,0) SetTextScale(0.55) DrawText(gText) Wait(0) end end function CB_Command(text) if text and text ~= "" then SendNetworkEvent("quick_text:Update",text) else SendNetworkEvent("quick_text:Update") end end RegisterNetworkEventHandler("quick_text:Update",function(text) if gText ~= text then if text == "" then TerminateThread(gThread) gThread = nil else gThread = CreateDrawingThread("T_Draw") end gText = text end end) RegisterNetworkEventHandler("quick_text:Permit",function() SetCommand("quick_text",CB_Command,true,"Usage: quick_text [...]\nSet text shown to all players on the server.") end) SendNetworkEvent("quick_text:Start")