diff --git a/gamemode/engine/derma/cl_menu.lua b/gamemode/engine/derma/cl_menu.lua index 6e95709..4a5c4c9 100644 --- a/gamemode/engine/derma/cl_menu.lua +++ b/gamemode/engine/derma/cl_menu.lua @@ -5,6 +5,12 @@ -- \ \ / ____ \| | | | | | | | __/ (__| | | | / / -- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ +Quantum.Client.Menu = {} +local libs = { + ["net"] = GAMEMODE.FolderName .. "/gamemode/engine/derma/lib/cl_network.lua" +} +Quantum.Client.Menu.GetAPI = function( lib ) return include( libs[lib] ) end + net.Receive( "quantum_menu_net", function( len, pl ) local dt = net.ReadTable() local menu = include( GAMEMODE.FolderName .. "/gamemode/engine/derma/menus/menu_" .. dt.id .. ".lua" ) diff --git a/gamemode/engine/derma/menus/menu_character.lua b/gamemode/engine/derma/menus/menu_character.lua index 8da0a05..0e9a649 100644 --- a/gamemode/engine/derma/menus/menu_character.lua +++ b/gamemode/engine/derma/menus/menu_character.lua @@ -7,7 +7,7 @@ local menu = {} -local net = include( "../lib/cl_network.lua" ) +local net = Quantum.Client.Menu.GetAPI( "net" ) function menu.open( dt ) local sw, sh = ScrW(), ScrH()