Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- original
- coffeeInventory.menuInterface = coffeeInventory.menuInterface or nil
- function coffeeInventory.open()
- if coffeeInventory.menuInterface then
- if coffeeInventory.menuInterface:IsVisible() then
- return
- end
- end
- coffeeInventory.removeInvalidItems()
- coffeeInventory.menuInterface = vgui.Create( "coffeeinv_inventory" )
- end
- net.Receive( "coffeeInv_openInventory", coffeeInventory.open )
- hook.Add( "Think", "coffeeInventory_open", function()
- if input.IsKeyDown( coffeeInventory.config.openKey ) then
- if not LocalPlayer():IsTyping() and not gui.IsGameUIVisible() then
- coffeeInventory.open()
- end
- end
- end )
- editado
- editado
- editado
- editado
- editado
- editado
- coffeeInventory.menuInterface = coffeeInventory.menuInterface or nil
- function coffeeInventory.open()
- if coffeeInventory.menuInterface then
- if coffeeInventory.menuInterface:IsVisible() then
- return
- end
- end
- coffeeInventory.removeInvalidItems()
- coffeeInventory.menuInterface = vgui.Create( "coffeeinv_inventory" )
- end
- function coffeeInventory.close()
- coffeeInventory.menuInterface = vgui.Remove( "coffeeinv_inventory" )
- end
- net.Receive( "coffeeInv_openInventory", coffeeInventory.open )
- hook.Add( "Think", "coffeeInventory_open", function()
- if input.IsKeyDown( coffeeInventory.config.openKey ) then
- if not LocalPlayer():IsTyping() and not gui.IsGameUIVisible() then
- coffeeInventory.open()
- else
- coffeeInventory.close()
- end
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement