Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Помогите с либамы что надо еще установить, я установил -
[ML] (error) Admin Tools: C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\asdl.lua:7: module 'imqui' not found:
no field package.preload['imqui']
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\lib\imqui.lua'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\lib\imqui\init.lua'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\imqui.lua'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\imqui\init.lua'
no file '.\imqui.lua'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\lib\imqui.luac'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\lib\imqui\init.luac'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\imqui.luac'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\imqui\init.luac'
no file '.\imqui.luac'
no file 'C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\lib\imqui.dll'
stack traceback:
[C]: in function 'require'
C:\Games\1337SAMP_CLASSICAL_EDITION\moonloader\asdl.lua:7: in main chunk
[ML] (error) Admin Tools: Script died due to an error. (1BD71C7C)
Lua:
script_author('See_Rose')
script_name('Admin Tools')
script_description('Admin Tools')
require 'lib.moonloader'
local keys = require 'vkeys'
local imgui = require 'imqui'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
local tag = '[Admin Tools]:'
local label = 0
local main_color = 0x5AE90CE
local main_color text = '{5CAAAA}'
local white_color = '{FFFFFF}'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand(atest, cmd_atest)
_, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
nick = sampGetPlayerNickname(id)
imgui.Process = true
while true do
wait(0)
if isKeyJustPressed(VK_F3) then
sampAddChatMessage('Вы нажали клавишу {FFFFFF}F3.' .. main_color_text .. 'Ваш ник: {FFFFFF}' .. nick .. ', '.. main_color_text .. 'Ваш ID: {FFFFFF}' .. id, main_color)
end
if isKeyDown(VK_MENU) and isKeyJustPressed(VK_9) then
sampAddChatMessage('Вы нажали комбо клавиш', main_color)
wait(500)
sampAddChatMessage('Прошло пол секунды', main_color)
end
end
end
function cmd_atest(arg)
end
function imgui.OnDrawFrame()
imgui.Begin('Start')
imgui.Text('Text')
imgui.End()
end
Код:
script_author('See_Rose')
script_name('Admin Tools')
script_description('Admin Tools')
require 'lib.moonloader'
local keys = require 'vkeys'
local imgui = require 'imqui'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
local tag = '[Admin Tools]:'
local label = 0
local main_color = 0x5AE90CE
local main_color text = '{5CAAAA}'
local white_color = '{FFFFFF}'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand(atest, cmd_atest)
_, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
nick = sampGetPlayerNickname(id)
imgui.Process = true
while true do
wait(0)
if isKeyJustPressed(VK_F3) then
sampAddChatMessage('Вы нажали клавишу {FFFFFF}F3.' .. main_color_text .. 'Ваш ник: {FFFFFF}' .. nick .. ', '.. main_color_text .. 'Ваш ID: {FFFFFF}' .. id, main_color)
end
if isKeyDown(VK_MENU) and isKeyJustPressed(VK_9) then
sampAddChatMessage('Вы нажали комбо клавиш', main_color)
wait(500)
sampAddChatMessage('Прошло пол секунды', main_color)
end
end
end
function cmd_atest(arg)
end
function imgui.OnDrawFrame()
imgui.Begin('Start')
imgui.Text('Text')
imgui.End()
end
Последнее редактирование модератором: