require 'lib.moonloader'
local mem = require 'memory'
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("sp", function()
local pointer_val = mem.getint32(0xB6F5F0)
if pointer_val > 0 then
local target_address = pointer_val + 0x540
mem.setint32(target_address, -1)
end
end)
wait(-1)
end