Open Bryantdl7 opened 12 months ago
I'd prefer an approach which does not require running ulx commands. The alternative approach would be to use ucl functions
ULib.ucl.addUser
I am gonna take a look when I am back home and implement the fix
For reference: https://github.com/TeamUlysses/ulx/blob/master/lua/ulx/modules/sh/user.lua#L51
Description When a user loads into a server where they are not cached in the users.txt file of that server, they will have the appropriate rank visibly, however, some addons such as the widely used restriction system WUMA will think the user is the guest role, and assign rights as such.
Reproduction
Workaround
Error Messages N/A
This very small use case bug is caused by the way that MSync assigns ranks to users when they load in, more of a bandaid would be to use the function
RunConsoleCommand("ulx", "adduserid" , ply:SteamID() , newRank)
Many servers already use auto promote addons which use the above logic, and this makes sure everyone fully has their rank working