General > Developers Corner

~[ULX EXPERIENCED PLEASE]~ ulib group data read

(1/1)

Bite That Apple:
To be honest, I'm not sure if anyone can help me on this. I'm not going to try to spend 6111484 years looking for the answer myself, and maybe more experienced players with ulib can assist me, or maybe ULIB team themselves.

I'm looking for the hook or code that ulib uses to group the players data from data/users.txt. Sadly, ulx is still not using SQL, so I can't do this the easiest way, but I'm just looking for the code to properly get a players rank. Also looking for the code to get data/groups.txt and find the usergroups colors..

JamminR:
Player:GetUserGroup

The vars for group colors are passed to client from uteam.lua using umsg.
group_data.color.<r|b|g> or a default.
Becomes team data colors.
See https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/uteam.lua for server and https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/cl/uteam.lua
(Both are reasonably small files/code functions.)

Navigation

[0] Message Index

Go to full version