Помогите переделать один текстдрав

Статус
В этой теме нельзя размещать новые ответы.

petuch228

Новичок
Автор темы
82
2
Помогите переделать один текстдрав с Pawn на Lua для примера
Вот код:

Код:
    fstd_p[playerid][1] = CreatePlayerTextDraw(playerid, 281.000000, 111.000000, "e");
    PlayerTextDrawLetterSize(playerid, fstd_p[playerid][7], 1.020000, 2.200000);
    PlayerTextDrawTextSize(playerid, fstd_p[playerid][7], 1280.000000, 1280.000000);
    PlayerTextDrawAlignment(playerid, fstd_p[playerid][7], 0);
    PlayerTextDrawColor(playerid, fstd_p[playerid][7], 0xFFFFFF70);
    PlayerTextDrawUseBox(playerid, fstd_p[playerid][7], 0);
    PlayerTextDrawBoxColor(playerid, fstd_p[playerid][7], 0x80808080);
    PlayerTextDrawSetShadow(playerid, fstd_p[playerid][7], 1);
    PlayerTextDrawSetOutline(playerid, fstd_p[playerid][7], 0);
    PlayerTextDrawBackgroundColor(playerid, fstd_p[playerid][7], 0x000000FF);
    PlayerTextDrawFont(playerid, fstd_p[playerid][7], 0);
    PlayerTextDrawSetProportional(playerid, fstd_p[playerid][7], 1);
    PlayerTextDrawSetSelectable(playerid, fstd_p[playerid][7], 0);
Дам плюсик. Заранее спасибо
 

petuch228

Новичок
Автор темы
82
2
Lua:
font = renderCreateFont(Arial, 10, 4)
local x, y = getScreenResolution()
while true do
    wait(0)
    renderFontDrawText(font, "FONT", x / 2, y / 2, -1)
end
Можешь изменить шрифт, его размер и цвет
А если мне нужно, чтобы шрифт был игровой (нулевой ид), то шо?
 

checkdasound

Известный
Проверенный
963
406
А если мне нужно, чтобы шрифт был игровой (нулевой ид), то шо?
https://blast.hk/wiki/moonloader:functions
там в поиске пишешь textdraw и вылезет куча функций для взаимодействия с оным.
upload_2018-10-10_16-58-15.png
 

petuch228

Новичок
Автор темы
82
2
Статус
В этой теме нельзя размещать новые ответы.