I made some convars like this:
[CODE]if not ConVarExists("cl_dosomething") then
CreateClientConVar("cl_dosomething", '1', FCVAR_NOTIFY)
end[/CODE]
How do I make it so it saves so when I change cl_dosomething to 0, so when I start gmod again, the convar is on 0?
Thanks!
You could use file.Write/Append, and access it with file.Read.
[editline]24th February 2014[/editline]
You can also set the desired value in a cfg file as a command to run on startup.
Replace [B]FCVAR_NOTIFY[/B] with [b]true[/b]
[url]http://wiki.garrysmod.com/page/Global/CreateClientConVar[/url]
Wow, didn't know about that.
[QUOTE=Linda;44036573]Replace [B]FCVAR_NOTIFY[/B] with [b]true[/b]
[url]http://wiki.garrysmod.com/page/Global/CreateClientConVar[/url][/QUOTE]
Thank you a lot!
Sorry, you need to Log In to post a reply to this thread.