Example , if i pressed "E" to open that chest then a menu will just pop up ..
PS : No one made this script so i wanted to do it first

edited 1×, last 03.12.14 07:22:54 pm
addhook('usebutton','using') function using(id,x,y) if x==(ur x position in map) and y==(vice versa) --Ur menu-- end end Note:in ur position in map there should be a trigger use attached.
addhook('usetiggername','whatever') function usetiggername(id) menu .. end end
addhook("usebutton","_pk") function _pk(id,x,y) if entity(x,y,"name") == "ss" then menu(id,"blah,blah") elseif entity(x,y,"name") == "pk" then menu(id,"blah,blah") end end