- 18
- 0
- Версия MoonLoader
- Другое
Код:
function main()
while not isSampAvailable() do wait(0) end
sampAddChatMessage('[NelsonHelper] Скрипт загружен! Автор: youtube.com/@fakezoff', -1)
sampRegisterChatCommand('nelson', function ()
winstate[0] = not winstate[0]
end)
sampRegisterChatCommand('fi', function (args)
if args == '' then
return sampAddChatMessage('Используйте команду: /fi id', -1)
else
sampSendChat('/faminvite ' .. args)
end
end)
while true do
wait(0)
end
end
local active = imgui.new.bool(false)
local text = imgui.new.char[256](u8'текст')
imgui.OnFrame(function () return winstate[0] end,
function (this)
--imgui.ShowDemoWindow()
--imgui.ShowStyleEditor()
local size, res = imgui.ImVec2(712, 356), imgui.ImVec2(getScreenResolution())
imgui.SetNextWindowSize(size, imgui.Cond.FirstUseEver)
imgui.SetNextWindowPos(imgui.ImVec2(res.x / 2, res.y / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
if (imgui.Begin('Nelson Family', window, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoCollapse)) then
if image.handle then
local wh = imgui.GetWindowWidth()
imgui.SetCursorPos(imgui.ImVec2(wh / 2 - 128, 20))
imgui.Image(image.handle, imgui.ImVec2(256, 128))
end