Форматирование
- Версия MoonLoader
- .027.0-preview
Lua:
script_name("KiborgG")
script_author("Aramdillo-CLD")
script_description('Kiborg Soft Private')
require 'lib.moonloader'
local memory = require 'memory'
function main()
while not isSampLoaded and not isSampfuncsLoaded do wait(0) end
while not isSampAvailable do wait(0) end
wait(5000)
while true do
wait(0)
if not isCharDead(playerPed) then
extra_ws(true)
else
extra_ws(false)
end
end
end
function extra_ws(active)
if active then
if not patch_cameraRestore then
extraws1 = memory.read(0x5109AC, 1, true)
extraws2 = memory.read(0x5109C5, 1, true)
extraws3 = memory.read(0x5231A6, 1, true)
extraws4 = memory.read(0x52322D, 1, true)
extraws5 = memory.read(0x5233BA, 1, true)
end
memory.write(0x5109AC, 235, 1, true)
memory.write(0x5109C5, 235, 1, true)
memory.write(0x5231A6, 235, 1, true)
memory.write(0x52322D, 235, 1, true)
memory.write(0x5233BA, 235, 1, true)
elseif extraws1 ~= nil then
memory.write(0x5109AC, patch_cameraRestore1, 1, true)
memory.write(0x5109C5, patch_cameraRestore2, 1, true)
memory.write(0x5231A6, patch_cameraRestore3, 1, true)
memory.write(0x52322D, patch_cameraRestore4, 1, true)
memory.write(0x5233BA, patch_cameraRestore5, 1, true)
extraws1 = nil
end
end
Последнее редактирование модератором: