There are many ways to implement ULX ranks in a loading screen.
Here's how I would approach this:
1. Create a PHP script that can receive and save data.
2. Create a Lua script that generates a hash table that maps SteamID -> group, serialize it, and send it off to the web server every time a group-related change occurs.
3. Create a PHP script that reads the saved data, deserialize it, and use it to look up the group by SteamID.
The following should get you something to play around with:
Create the following files on your web server:
*
index.php*
update.phpCreate the following file on your game server:
*
lua/autorun/server/loadingscreen.luaInstructions:
- Set the url variable in
loadingscreen.lua equal to the location of the update.php script.
local url = "https://example.org/update.php"
- Set your
sv_loadingurl equal to the location of the index.php script. Append "?steamid=%s" to tell the script about the user's SteamID.
sv_loadingurl "https://example.org/index.php?steamid=%s"
- Add a user to a group, remove a user from a group or change the name of a group to send data to the web server.
ulx adduserid STEAM_0:0:57225082 superadmin