- 21
- 0
- Версия MoonLoader
- .026-beta
Создал все по гайду
у меня скрипт выгружается и дальше не загружается
для начала создал, не обращайте внимания что код говно
и те символы это плохо скомпелировавшиеся слова
Вдруг кому то нужен лог
Вот:
script_author = "Oleg Mangal"
script_name = "EzBind"
script_version = "1.01"
require "lib.moonloader"
local memory = require 'memory'
local inicfg = require 'inicfg'
local dlstatus = require('moonloader').download_status
update_state = false
local script_vers = 1
local script_vers_text = "1.00"
local update_url = "https://raw.githubusercontent/"
local update_path = getWorkingDirectory() .. "/update.ini"
local script_url = "https://github.com/"
local script_path = thisScript().path
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
downloadUrlToFile(update_url, update_path, function(id, status)
if status == dlstatus.STATUS_ENDDOWNLOADDATA then
updateini = inicfg.load(nil, update_path)
if tonumber(updateini.info.vers) > script_vers then
sampAddChatMessage("Проверка: " .. updateini.info.vers_text, -1)
update_state = true
end
os.remove(update_path)
end
end)
while true do
wait(0)
if update_state then
downloadUrlToFile(script_url, script_path, function(id, status)
if status == dlstatus.STATUS_ENDDOWNLOADDATA then
sampAddChatMessage("Скрипт успешно обновился", -1)
thisScript():reload()
end
end)
break
end
end
if isKeyDown(VK_F) and isKeyJustPressed(VK_RBUTTON) then
RunC(50)
while isKeyDown(VK_F) do -- пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ
wait(0)
end
end
repeat
wait(0)
until sampIsLocalPlayerSpawned()
if isKeyJustPressed(VK_N) and not sampIsCursorActive() then
sampSendChat('/capture') -- пїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_I) and not sampIsCursorActive() then
sampSendChat('/bc пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅ, пїЅпїЅпїЅ пїЅпїЅпїЅпїЅ?') --пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_M) and not sampIsCursorActive() then
sampSendChat('/usedrugs') --пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_B) and not sampIsCursorActive() then
sampSendChat("/get guns") --пїЅпїЅпїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_L) and not sampIsCursorActive() then
sampSendChat("/healme") --пїЅпїЅпїЅпїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_0) and not sampIsCursorActive() then
sampSendChat("пїЅпїЅ пїЅпїЅпїЅпїЅ пїЅпїЅпїЅ, пїЅпїЅ пїЅпїЅпїЅпїЅ") --пїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_9) and not sampIsCursorActive() then
sampSendChat("пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ") --пїЅпїЅпїЅпїЅ x2
elseif isKeyJustPressed(VK_P) and not sampIsCursorActive() then
sampSendChat("пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ, пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ 0") --пїЅпїЅпїЅпїЅ x3
elseif isKeyJustPressed(VK_8) and not sampIsCursorActive() then
sampSendChat("/bc пїЅпїЅпїЅпїЅпїЅпїЅпїЅ, пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ)))") --пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ
elseif isKeyJustPressed(VK_K) and not sampIsCursorActive() then
sampSendChat("/f пїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ!") --пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ x2
elseif isKeyJustPressed(VK_J) and not sampIsCursorActive() then
sampSendChat("/bc пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ)") --пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ x3
elseif isKeyJustPressed(VK_O) and not sampIsCursorActive() then
sampSendChat("/bc пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ") --пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ x4
end
end
function RunC(wt)
if not sampIsChatInputActive() and not isSampfuncsConsoleActive() then
if isWeaponReload() then
setVirtualKeyDown(VK_LBUTTON, true)
wait(wt)
setVirtualKeyDown(VK_LBUTTON, false)
setVirtualKeyDown(VK_RBUTTON, false)
setVirtualKeyDown(VK_C, true)
wait(wt)
setVirtualKeyDown(VK_C, false)
setVirtualKeyDown(VK_RBUTTON, true)
end
end
end
function getAmmoInClip()
local struct = getCharPointer(playerPed)
local prisv = struct + 0x0718
local prisv = memory.getint8(prisv, false)
local prisv = prisv * 0x1C
local prisv2 = struct + 0x5A0
local prisv2 = prisv2 + prisv
local prisv2 = prisv2 + 0x8
local ammo = memory.getint32(prisv2, false)
return ammo
end
function isWeaponReload()
modelId = getCharModel(PLAYER_PED)
weapon = getCurrentCharWeapon(PLAYER_PED)
ammo = getAmmoInClip()
if weapon == 24 then
if ammo == 0 then return false end
return true
end
return false
end
для начала создал, не обращайте внимания что код говно
и те символы это плохо скомпелировавшиеся слова
Вдруг кому то нужен лог
Лог:
[ML] (system) ML-AutoReboot: Script terminated. (0DAC11DC)
[ML] (system) GameFixer.lua: Script terminated. (0DAC17FC)
[ML] (system) ML-ReloadAll: Script terminated. (0D92DCCC)
[ML] (system) SF Integration: Script terminated. (0D92DE54)
[ML] (system) UltraFuck: Script terminated. (0D92D9BC)
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\AutoReboot.lua'...
[ML] (system) ML-AutoReboot: Loaded successfully.
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\ezbind.lua'...
[ML] (system) ezbind.lua: Loaded successfully.
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\GameFixer.lua'...
[ML] (system) GameFixer.lua: Loaded successfully.
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\reload_all.lua'...
[ML] (system) ML-ReloadAll: Loaded successfully.
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\SF Integration.lua'...
[ML] (system) SF Integration: Loaded successfully.
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\UltraFuck.luac'...
[ML] (system) UltraFuck: Loaded successfully.
[ML] (system) Loading script 'D:\DAPO SHOW 140k REBUILT\moonloader\config\UltraFuck\Scripts\speed.lua'...
[ML] (error) speed.lua: ...0k REBUILT\moonloader\config\UltraFuck\Scripts\speed.lua:4: module 'SAMemory' not found:
no field package.preload['SAMemory']
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\lib\SAMemory.lua'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\lib\SAMemory\init.lua'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\SAMemory.lua'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\SAMemory\init.lua'
no file '.\SAMemory.lua'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\lib\SAMemory.luac'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\lib\SAMemory\init.luac'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\SAMemory.luac'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\SAMemory\init.luac'
no file '.\SAMemory.luac'
no file 'D:\DAPO SHOW 140k REBUILT\moonloader\lib\SAMemory.dll'
stack traceback:
[C]: in function 'require'
...0k REBUILT\moonloader\config\UltraFuck\Scripts\speed.lua:4: in main chunk
[ML] (error) speed.lua: Script died due to an error. (0DC4115C)
>> UltraFuck: Обновления не были найдены, текущая версия 2.36
>> UltraFuck: Вы всегда можете отключить авто обновление в настройках.
[ML] (system) ezbind.lua: Script terminated. (0DC4146C)