• AddCSLua and include not finding files
    2 replies, posted
So I started working on a small gamemode for fun and Iv'e already hit a snag. In the gamemode folder I have init.lua, cl_init.lua, shared.lua, and a folder labeled menu. The folder hold cl and sv lua files. This Is what I have in my init.lua and cl_init.lua: AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) include( "shared.lua" ) AddCSLuaFile( "menu/cl_menu.lua" ) include( "menu/sv_menu.lua" ) cl_init include( "shared.lua" ) include( "menu/cl_menu.lua" ) Any help would be nice, thanks!
The console will say they cant find them if they're empty files. Add a print at the top of each file first and then see if it still says that it cant find them.
They were, thanks Josh!
Sorry, you need to Log In to post a reply to this thread.