Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script_name('TextDrawRender')
- script_author('imring')
- scron = false
- function main()
- while not isSampAvailable() do wait(0) end
- font = renderCreateFont('Verdana', 8, 13)
- sampRegisterChatCommand('rtd', rendTextDraw)
- while true do
- wait(0)
- for textdrawid = 0, 3000 do
- if sampTextdrawIsExists(textdrawid) then
- local X, Y = sampTextdrawGetPos(textdrawid)
- posX, posY = convertGameScreenCoordsToWindowScreenCoords(X, Y)
- if scron then
- renderFontDrawText(font, textdrawid, posX, posY, 0xFF00FF00)
- end
- end
- end
- end
- end
- function rendTextDraw()
- if scron then scron = false else scron = true end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement