@ Dynamite07: i test it before you asked, and answer is it is working, but maybe return a string value because of that our codes didnt work.. with tonumber() it will be good.
@ Dynamite07: i test it before you asked, and answer is it is working, but maybe return a string value because of that our codes didnt work.. with tonumber() it will be good.
Doesnt make sense idk what can we do with idd.
What i think:
addhook("drop","drop") --"When a player tries to drop an item."
function drop(id,idd)
if idd == 1 then -- if the item id = 1 then
parse("equip "..id.." 45") -- equip a laser
end