LUA Выравнивание текста

TheVulcan_

Участник
Автор темы
47
10
Версия SA-MP
  1. 0.3.7-R2
Хаай всем кто читает это тему.
У меня вопрос, смотрите есть скрипт который показивает соклко педов(людей) в зоне стрима.
Я в ЛУА ваше не шарю и мне нужно выровнить текст так что бы он был в левом углу экрана
Lua:
---------------------------------------------------------------------------

script_name("Players in stream")
script_version("1.0")
script_author("Corvet")

---------------------------------------------------------------------------

pos_x = 90
pos_y = 450

font_name = "Molot"
font_size = 12
font_flags = 12

---------------------------------------------------------------------------

function main()
  Font = renderCreateFont(font_name, font_size, font_flags)

  while true do wait(0)
    renderFontDrawText(Font, "peds: {DC143C}"..sampGetPlayerCount(true) - 1, pos_x, pos_y + 20, - 1)

  end
end

Вот скрин куда надо поместить
gta_sa_7w3kYwZqfb.png

Зарание спасибо
 

Вложения

  • Players_in_stream.lua
    631 байт · Просмотры: 3

|| NN - NoName ||

Известный
1,049
630
Lua:
---------------------------------------------------------------------------
script_name("Players in stream")
script_version("1.0")
script_author("Corvet")
---------------------------------------------------------------------------
font_name = "Molot"
font_size = 12
font_flags = 12
---------------------------------------------------------------------------
function main()
  Font = renderCreateFont(font_name, font_size, font_flags)
  while true do wait(0)
    pos_x, pos_y = getScreenResolution()
    renderFontDrawText(Font, "Враги: {DC143C}"..sampGetPlayerCount(true) - 1, pos_x / 10 - 120, pos_y * 1 - 20, - 1)
  end
end
1587402072143.png
 

TheVulcan_

Участник
Автор темы
47
10
Lua:
---------------------------------------------------------------------------
script_name("Players in stream")
script_version("1.0")
script_author("Corvet")
---------------------------------------------------------------------------
font_name = "Molot"
font_size = 12
font_flags = 12
---------------------------------------------------------------------------
function main()
  Font = renderCreateFont(font_name, font_size, font_flags)
  while true do wait(0)
    pos_x, pos_y = getScreenResolution()
    renderFontDrawText(Font, "Враги: {DC143C}"..sampGetPlayerCount(true) - 1, pos_x / 10 - 120, pos_y * 1 - 20, - 1)
  end
end
Посмотреть вложение 54040
От души