Hi, I’m a complete noob and have no idea what I’m doing…
Please help :s:
Anyway, so I want to create some settings for a little project I’m making for myself. Long story in short, I have no idea how to. I’ve scoured the Gmod wiki for help, no luck.
What I want to do, is put some settings in the options tab (sliders, checkboxes etc.).
Now I have some configs that maybe I could use to create some ConVars that I can use for the settings tab. (Excuse me if anything I say is rubbish, I honestly have no idea what I’m talking about).
Here’s the config stuff
TerminalR.Config = {}
TerminalR.Config.CleanUpSave = true
TerminalR.Config.PermaSave = true
TerminalR.Config.HackTime = 25
TerminalR.Config.HackProtectionTime = 60
TerminalR.Config.HackErrorLimit = 5
TerminalR.Config.HackScoreNeed = 35
This is as far as I could get (It doesn’t work)
TerminalR.Config.CleanUpSave = CreateClientConvar("terminalr_cleanupsave", "1", true, false)
TerminalR.Config.PermaSave = CreateClientConvar("terminalr_permasave", "1", true, false)
TerminalR.Config.HackTime = CreateClientConvar("terminalr_hacktime", "25", true, false)
TerminalR.Config.HackProtectionTime = CreateClientConvar("terminalr_hackprotectiontime", "60", true, false)
TerminalR.Config.HackErrorLimit = CreateClientConvar("terminalr_hackerrorlimit", "5", true, false)
TerminalR.Config.HackScoreNeed = CreateClientConvar("terminalr_hackscoreneed", "35", true, false)
That’s it! If someone could point me in the right direction, that’d be appreciated.
Duck