General > Developers Corner
Convar table?
JamminR:
--- Quote from: Megiddo on February 24, 2008, 11:44:51 AM ---You keep all the lua-registered convars somewhere you can search.
--- End quote ---
I'm totally lost.
The convars I want aren't lua registered I don't think.
Some are Gmod hard coded sbox_max_blah variables set in server.cfg (or just from console.)
Does Garry use Lua to register those?
I don't want to have to overwrite any game lua functions if I can help it.
--- Quote from: Kyzer on February 24, 2008, 01:17:12 PM ---"cvarlist sbox" ?
Edit: oh, building a table from these results...
--- End quote ---
That is a console command, isn't it? I could run 'find sbox_' too. Does me no good if I can't store the results in some way.
Even a multiline \n string could be turned into a table.
Megiddo:
sbox_* is registered with lua.
Navigation
[0] Message Index
[*] Previous page
Go to full version