Ulysses

General => Developers Corner => Topic started by: SamBehner on January 22, 2018, 02:28:05 PM

Title: Lua Code to adduser
Post by: SamBehner on January 22, 2018, 02:28:05 PM
Hello, I currently have a donation website on mistforums, I want to make it so when they buy it it applys DarkRP money and the ULX rank, but I have to chose between them, or write a lua script that gives them the rank and money, I know how to do the money, but how would i do the adduser? :)
Title: Re: Lua Code to adduser
Post by: MrPresident on January 22, 2018, 03:05:38 PM
http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser

This site is very useful for doing back-end stuff with ULib.

Check this out, and if you still need help, let us know. :)
Title: Re: Lua Code to adduser
Post by: SamBehner on January 22, 2018, 03:58:03 PM
So how would I make the script auto detect their ID, the website has you sign in thru steam and pulls your steamID
Title: Re: Lua Code to adduser
Post by: iViscosity on January 22, 2018, 04:23:07 PM
You would need something on the website to send a message back to the server.