Closed blt950 closed 5 years ago
I can't seem to replicate this. Do your other configs load? It could be that some code is manually setting the config.
Hm weird. I've got the "music" config saved with no issues. I've put this in my sh_config.lua of schema
nut.config.set("font", "Open Sans")
nut.config.set("genericFont", "Open Sans")
So it does set it correctly if I lua-refresh, but again resets on restart. This is in your HL2RP schema @brianhang , perhaps something in the schema?
I've dug a bit more in it, you're right - it's something with my schema - I'll need to find out what. So I'm closing this issue as it's not Nutscript's fault. Thanks.
I'm trying to set custom fonts in configs for "font" and "genericFont" keys. Once I've done that and server has saved the data, I can see it's saved correctly in /data/nutscript/config.txt. After I restart the server, this config is overridden and everything is put back to default Arial and Seoge UI.
I believe there's something wrong in loading the fonts, causing it to go back to default?