- 34
- 2
- Версия SA-MP
-
- Любая
Вместо сообщения - " [Информация] Обрезы успешно получены " выдаёт это
Код:
require "lib.moonloader"
local vk = require 'vkeys'
local events = require 'lib.samp.events'
local main_color = 0x5A90CE
local imgui = require 'imgui'
local encoding = require 'encoding'
local main_window_state = imgui.ImBool(false)
local stats = imgui.ImBool(true)
local su = imgui.ImBool(false)
local func = imgui.ImBool(false)
local text_buffer = imgui.ImBuffer(256)
local time_box = imgui.ImBool(true)
local r_box = imgui.ImBool(true)
local cuff_box = imgui.ImBool(true)
local uncuff_box = imgui.ImBool(true)
local frisk_box = imgui.ImBool(true)
local unmask_box = imgui.ImBool(true)
local meg_box = imgui.ImBool(true)
local gotome_box = imgui.ImBool(true)
local ungotome_box = imgui.ImBool(true)
local sw, sh = getScreenResolution()
local lastweap = 0
local suid = 0
encoding.default = 'CP1251'
u8 = encoding.UTF8
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
if lastweap ~= getCurrentCharWeapon(playerPed) then
local weap = getCurrentCharWeapon(playerPed)
if weap == 26 then
wait(100)
sampAddChatMessage('[Информация]{fcffff} Вы успешно получили обрезы {72b46a}', -1)
end
lastweap = weap
end
end
end