Hello i need help.
How i can make a icon on top panel. Which opening backpack on standard inventory slot?
function init()
bagIcon = modules.client_topmenu.addRightGameToggleButton('bp', tr('Bag'), '/images/topbuttons/questlog', toggle)
end
function toggle()
connect(LocalPlayer, { onInventoryChange = onInventoryChange })
connect(g_game, { onGameStart = refresh })
local player = g_game.getLocalPlayer()
g_game.useInventoryItem(player:getInventoryItem(3):getId())
end
I have somethink like this. But its don't work.