Added left Gui plus same changes else where

This commit is contained in:
Cooldude2606
2017-07-03 20:06:26 +01:00
parent 71e789b508
commit f1ce424e90
4 changed files with 27 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ end
--draw the toolbar to the player only showing buttons within their restriction
function toolbar.draw(player)
if not player then error('Need a player to draw to') end
local toolbar_frame = player.gui.top.toolbar or player.gui.top.add{name='toolbar',type='flow'}
local toolbar_frame = player.gui.top
toolbar_frame.clear()
for _,btn in pairs(toolbar.buttons) do
local rank = get_rank(player)