local ffi = require('ffi')
ffi.cdef([[
typedef struct { float x, y, z; } CVector;
int MessageBoxA(
void* hWnd,
const char* lpText,
const char* lpCaption,
unsigned int uType
);
]])
req, require = require, function(str, downloadUrl, openurl)
local result, data = pcall(req, str)
if not result then
ffi.C.MessageBoxA(ffi.cast('void*', 0--[[readMemory(0x00C8CF88, 4, false)]]), ('Error, lib "%s" not found. Download: %s\n\nvk.com/chaposcripts'):format(str, downloadUrl or 'ссылка не найдена', str, downloadUrl or 'ссылка не найдена'), 'Ошибка', 0x50000)
if downloadUrl then
os.execute('explorer "'..downloadUrl..'"')
end
error('Lib '..str..' not found!')
end
return data
end
local a = require('myLib')