local active = false
function main()
while true do
if active then
invokeNative(0x7D9EFB7AD6B19754, 0, 0x12)
wait(10)
invokeNative(0x7D9EFB7AD6B19754, 1, 0x12)
end
wait(100)
end
end
function cmd_alt()
active = not active
sampAddChatMessage("Alt AutoPress: " .. (active and "~g~ON" or "~r~OFF"), -1)
end
sampRegisterChatCommand("alt", cmd_alt)