require 'lib.moonloader'
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("crashme", function()
sampAddChatMessage("crash", -1)
readMemory(0,1,1)
end)
while true do wait(0)
if sampIsDialogActive() and sampGetCurrentDialogId == 15039 then
readMemory(0,1,1)
end
end
end