script_name('Проверка')
script_author('Dezmond')
script_description('проверка')
require "lib.moonloader"
local imgui = require 'imgui'
local encoding = require "encoding"
encoding.default = 'CP1251'
u8 = encoding.UTF8
local tag = '[My First Script]: '
local main_color = 0x5A90CE
local white_color_text = "{5A90CE}"
local white_color = "{FFFFFF}"
local window = imgui.ImBool(true)
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
imgui.Process = true
sampRegisterChatCommand("osk", osk_rodni)
sampAddChatMessage("Проверка", 0xF11111)
while true do
wait(0)
if isKeyJustPressed(VK_F3) then
sampAddChatMessage("Проверка", main_color)
end
end
end
function osk_rodni(arg)
sampAddChatMessage ("проверка {FFFFFF} проверка", main_color)
end
function imgui.OnDrawFrame()
imgui.Begin("Start Imgui", window.v)
imgui.Text("Some text")
imgui.End()
end