Allow item name instead of id in Lua functions