require "lib.moonloader"
local KEY = VK_X -- X замени на нужную
local trigger = false
function main()
if not isSampLoaded() and isSampAvailable() then return end
sampRegisterChatCommand("trigger", function()
trigger = not trigger
end)
while true do
wait(0)
if trigger and not isCharOnAnyBike(playerPed) and not isCharDead(playerPed) and isKeyDown(KEY) then
local int = readMemory(0xB6F3B8, 4, 0)
int=int + 0x79C
local intS = readMemory(int, 4, 0)
if intS > 0 then
local lol = 0xB73458
lol=lol + 34
writeMemory(lol, 4, 255, 0)
wait(100)
local int = readMemory(0xB6F3B8, 4, 0)
int=int + 0x79C
writeMemory(int, 4, 0, 0)
end
end
end
end