addon/lua/autorun/sv_code.lua:
[lua]
if CLIENT then return end
print("Running config...")
include("config.lua")
runHooksHere()
[/lua]
addon/lua/config.lua:
[lua]
Stuffs = "Some stuffs here"
print("Config just worked!")
[/lua]
The code just stops right after running the first print, The include function stops the code. Is there anything I did wrong?
The second print is not working at all.
As a note, I was running single player to test some codes.
Are these your actual sv_code and config.lua codes? If so, I don't see any reason why it would fail to run. Try using lua_openscript to open your config on its own and see if there are any errors when you do so.
Sorry, you need to Log In to post a reply to this thread.