1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("drop","ondrop") function drop(id,iid,type) if player(id,"team")==2 then if type==51 then parse('hudtxt2 '..id..' 0 "" 290 205 0') end end end
addhook("drop","ondrop") function drop(id,iid,type) if player(id,"team")==2 then if type==51 then parse('hudtxt2 '..id..' 0 "" 290 205 0') end end end
addhook("drop","ondrop") function ondrop(id,iid,type) --You need to name it like you named it on the hook 	if player(id,"team")==2 then 		if type==51 then 			parse('hudtxt2 '..id..' 0 "your text" 290 205 0') 		end 	end end
attempt to call a nil valueerror. Please remember this when you're making a function for a hook: you need to make sure that the function's name in the
addhookand declaration of the function are the same.
addhook("<hook>", "<function>") function <function>(...) 	... end