Config.Variable

In the Dark RP config.lua they have config options such as:

GM.Config.voice3D and GM.Config.autovehiclelock. What is the Config. bit, and what is the GM. bit. I really should know this by now.

Same as things like GM.Name. Where does the GM. bit come from and what does it mean?

Thanks,
Daniel

Edit: also functions such as function GM:PlayerSpawn

GM is a global table and so is config.
It’s created to hold informations and functions accessible in every file for it own needs.

GM.Config is defined in init.lua.

If you want to test it out, do this:
-Add a file to autorun
-Add this code inside


globalTbl = {}
globalTbl.myInfo = "Hehe"

-Now run “lua_run PrintTable( globalTbl )”

Thanks!