i got a problem.
i coded a script with menus.
the menus are in cl_supportsystem.lua
the serverside stuff is in sv_supportsystem.lua
both files are located in the lua folder of my addon.
now i want that addon on my server.
so i need a third file what sends the cl_supportsystem.lua to the clients
i created one:
Msg("Loading supportsystem...") if (CLIENT) then timer.Simple(5,function() include("cl_supportsystem.lua") end) else IncludeClientFile("cl_supportsystem.lua") include("sv_supportsystem.lua") end Msg("Done! ")
i placed this in lua/autorun
but it dont work … the server file ( sv_supportsystem.lua ) is running but not the client file. What have i done wrong?