ULX

Author Topic: Lua Code to adduser  (Read 1614 times)

0 Members and 1 Guest are viewing this topic.

Offline SamBehner

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Lua Code to adduser
« 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? :)

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Lua Code to adduser
« Reply #1 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. :)

Offline SamBehner

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Lua Code to adduser
« Reply #2 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

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 802
  • Karma: 58
Re: Lua Code to adduser
« Reply #3 on: January 22, 2018, 04:23:07 PM »
You would need something on the website to send a message back to the server.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.