Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: SamBehner on June 29, 2018, 07:31:07 PM
-
My ULib/ULX versions:
ULib v2.63w
ULX v3.73w
Game mode(s) I am having this problem on:
DarkRP
I have a forums on mistforums, for donations you have the option to put in a custom LUA code that it sends to the user when they donate, I was wondering what the function is to run "ulx adduser"?
-
ulx.adduser if on server
https://github.com/TeamUlysses/ulx/blob/a236a79495631b24acb1af48ac64aad9a8a1cb19/lua/ulx/modules/sh/user.lua#L51
ulx.adduserid if a steamid.
https://github.com/TeamUlysses/ulx/blob/a236a79495631b24acb1af48ac64aad9a8a1cb19/lua/ulx/modules/sh/user.lua#L67
I presume you're going to have your own function check the donation database to ensure they've actually donated.
If not, once you've shared the raise access code, it will be shared by those that have bad morals.
-
Do you mean to run it when they have donated or just the command?