Whenever I try to run a lua file using either lua_openscript or lua_openscript_cl. In single player, or off a dedicated server console. i get
attempt to index global ‘TOOL’(a nil value)
attempt to index global ‘ENT’(a nil value)
Pretty much any of the first globals in any lua.
It will not parse a lua file, unless I restart either the dedicated server or my Garrysmod. Im trying to learn lua programing, and having to restart gmod or the server everytime is really annoying : /
Am I doing something wrong?
Does anyone have anything about why it would be doing this?
Thanks in advance