Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: MrNyxx on January 01, 2018, 09:40:22 PM

Title: Setting ULX group through lua
Post by: MrNyxx on January 01, 2018, 09:40:22 PM
Hello, I am just wondering if there is some way to set a users group through lua. I know there is a "ply:GetUserGroup()" through ulx, but is there any way to set a players group? I am asking this, because I want to combine ulx to change a users group after they get to a certain amount of points. In this instance, I am using the "Surf Skill" gamemode by Fresh, and when the player finishes enough maps to gain a certain amount of points, I want to be able to automatically set the users group. If there is no way to do this, please tell me how I can achieve something like this without me manually setting their group. Thanks!
Title: Re: Setting ULX group through lua
Post by: iViscosity on January 02, 2018, 05:41:11 AM
this (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser) may be of use to you.