Just install that Helper Lib and use functions it contains in your action script.
Also declaring player outside a function does nothing.
Just try the example the author gave you and start from there.
function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
-- The helper lib is...