- 129
- 13
- Версия MoonLoader
- .026-beta
Все нормально работало пока не добавил еще несколько либ
attempt to call global 'ShowPlayerMessage' (a nil value)
attempt to call global 'ShowPlayerMessage' (a nil value)
Lua:
bLib = {}
bLib['mimgui'], imgui = pcall(require, 'mimgui')
bLib['ffi'], ffi = pcall(require, 'ffi')
bLib['inicfg'], inicfg = pcall(require, 'inicfg')
bLib['encoding'], encoding = pcall(require, 'encoding')
bLib['fAwesome5'], fa = pcall(require, 'fAwesome5')
bLib['Events'], sampev = pcall(require, 'samp.events')
bLib['requests'], requests = pcall(require, 'requests')
bLib['Matrix3X3'], Matrix3X3 = pcall(require, 'matrix3x3')
bLib['Vector3D'], Vector3D = pcall(require, 'vector3d')
bLib['effil'], effil = pcall(require, 'effil')
bLib['Memory'], memory = pcall(require, 'memory')
bLib['bit'], bit = pcall(require, 'bit')
bLib['Copas'], copas = pcall(require, 'copas')
bLib['Http'], http = pcall(require, 'copas.http')
for lib, bool in pairs(bLib) do
if not bool then
ShowPlayerMessage('Библиотека ' .. lib .. ' не найдена. Запуск скрипта остановлен!', 0x2DF61C)
break
end
end
function ShowPlayerMessage(message, color)
sampAddChatMessage("[CheatHelper] {FFFFFF}" .. message, color or 0x2DF61C)
end