1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
addhook("serveraction","_serveraction")
function _serveraction (id,action)
	if action == 3 then
		menu(id,"Hat Menu,Hat 1,Hat 2,Hat 3,etc...")
	end
end
-------------------------------------------------------
addhook ("menu","_menu")
function _menu (id,title,buton)
	if title == "Hat Menu" then
		if buton == 1 then
			freeimage(id)
			hat_1 = image (" (LOLCAL IMAGE) ")
		elseif buton == 2 then
			freeimage(id)
			hat_2 = image (" (LOLCAL IMAGE) ")
		elseif buton == 3 then
			freeimage(id)
			hat_3 = image (" (LOLCAL IMAGE) ")
		elseif buton == 4 then
			freeimage(id)
			hat_4 = image (" (LOLCAL IMAGE) ")
		end
	end
end