Lua ImGui Sprint Board HUD

SADFI2259X

Участник
Автор темы
91
64
Версия SA-MP
  1. Любая
A simple script that show your sprint value

instalation: copy imgui sprint board.luaintomoonloaderthen copysprint.png intomoonloader/resource

sa-mp-152.png
 

Вложения

  • imgui sprint board.lua
    1.9 KB · Просмотры: 86
  • sprint.png
    sprint.png
    650 байт · Просмотры: 110

rinkу

Известный
750
406
It is better to use the FAwesome library, or write the image directly in the code.
Adding to the previous comment, you can use FontAwesome 5 and use the ICON_FA_RUNNING icon. Or if you want to make a script without unnecessary dependency, rewrite the script on mimgui and load the image into the script itself and use this image
example:
local imgExit = nil
imgui.OnInitialize(function()
    imgExit = imgui.CreateTextureFromFileInMemory(imgui.new('const char*', exit_data), #exit_data)
end)
....
img ="\x89\x50\x4E\x47\x0D\x0A\x1A\x0A......."
 
  • Влюблен
Реакции: SADFI2259X

RoflHaHaWF

Известный
955
347
Adding to the previous comment, you can use FontAwesome 5 and use the ICON_FA_RUNNING icon. Or if you want to make a script without unnecessary dependency, rewrite the script on mimgui and load the image into the script itself and use this image
example:
local imgExit = nil
imgui.OnInitialize(function()
    imgExit = imgui.CreateTextureFromFileInMemory(imgui.new('const char*', exit_data), #exit_data)
end)
....
img ="\x89\x50\x4E\x47\x0D\x0A\x1A\x0A......."
Он русский
 

chapo

колобок опидорел
Модератор
7,939
8,746
Adding to the previous comment, you can use FontAwesome 5 and use the ICON_FA_RUNNING icon. Or if you want to make a script without unnecessary dependency, rewrite the script on mimgui and load the image into the script itself and use this image
example:
local imgExit = nil
imgui.OnInitialize(function()
    imgExit = imgui.CreateTextureFromFileInMemory(imgui.new('const char*', exit_data), #exit_data)
end)
....
img ="\x89\x50\x4E\x47\x0D\x0A\x1A\x0A......."
Скрытое содержимое для пользователя(ей):
 
  • Влюблен
Реакции: rinkу

SADFI2259X

Участник
Автор темы
91
64
Adding to the previous comment, you can use FontAwesome 5 and use the ICON_FA_RUNNING icon. Or if you want to make a script without unnecessary dependency, rewrite the script on mimgui and load the image into the script itself and use this image
example:
local imgExit = nil
imgui.OnInitialize(function()
    imgExit = imgui.CreateTextureFromFileInMemory(imgui.new('const char*', exit_data), #exit_data)
end)
....
img ="\x89\x50\x4E\x47\x0D\x0A\x1A\x0A......."
bro thank you i were looking for "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A......." but how to convert an image to that code ?

n
no i'm not