if (text == "!join") and pl:IsUserGroup("user") then pl:PS_GivePoints(10000) pl:SetUserGroup( "patriot" )
The idea is that the player is new, so ULX automatically sets them to “user” group.
The player types “!join”
The player is rewarded 10000 points
The player is added to “patriot” group.
This ‘works’, but when one rejoins the server, they are no longer “patriot”- as if it didn’t save. So essentially the free 10,000 points can be spammed.
The only other ‘add user to group’ command that I know of, is the RCON command: “ulx adduser Sulli superadmin” (for instance).
I know for a fact that this isn’t modifying my servers /settings/users.txt file (even the RCON command, but that is permanent until changed!)
The end goal is to have this as an automated system, so I don’t need to add each and every user into the “patriot” group manually, via ULX or other means!