Dinkleberg's GMod
I know how to fix the problem with ranks being reseted - Printable Version

+- Dinkleberg's GMod (https://www.dinklebergsgmod.com/site)
+-- Forum: Murder (https://www.dinklebergsgmod.com/site/forumdisplay.php?fid=54)
+--- Forum: Murder Suggestions & Help (https://www.dinklebergsgmod.com/site/forumdisplay.php?fid=55)
+--- Thread: I know how to fix the problem with ranks being reseted (/showthread.php?tid=11835)



I know how to fix the problem with ranks being reseted - sorapartition - 07-13-2020

The server uses Gtawards reward system and when you get your rank this command below is being executed.
 
ulx adduser <user> <group> 

but this command just changes the group temporarily.

to make a permanent change you must use an ULib function because ULib is attached to MySQL ( I believe ).

https://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html

Instead of using
 
ulx adduser <user> <group>

Try this

ULib.ucl.addUser( pid, allows, denies, group )

The server uses Gtawards system reward, but I recommend raychamp time reward because the maintenance is easier.