Can you help me?, Make Tiles for Your Hats?
i mean, Your Cursor placed on some tiles, then you press serveraction, and you get Hats from that Tiles.
Thanks!.
Sorry for my English.
hats = { {x = 35,y = 88,path = "image path"}, {x = 35,y = 89,path = "image path"}, {x = 35,y = 90,path = "image path"} } addhook("serveraction","_sa") function _sa(id,b) 	if b == 1 then 		reqcld(id,2) 	end end addhook("clientdata","_cd") function _cd(id,mode,x,y) 	if mode == 2 then 		local tx = math.floor(x/32) 		local ty = math.floor(x/32) 		for _,v in pairs (hats) do 			if v.x == tx and v.y = ty then 				image(v.path,mode etc. fill this part in) 			end 		end 	end end
local ty = math.floor(y/32)