General > Developers Corner

ULX ADMIN GROUPS LUA HALP!!!

(1/3) > >>

nofear1999:
does ULX Admin user groups function ply:IsUserGroup("group")

so ex. you can create a group called respected and

if ply:IsUserGroup("respected") then
code goes here
end

Megiddo:
I have no idea what you're talking about.

nofear1999:
Ummm,

I was buzzed when I posted that.

Okay, ULX has function ulx addgroup

Does that function allow
function respectedcheck
if ply:IsUserGroup("respected") then
ply:Give("phygun")
ply:Give("toolgun")
end
concommand.Add("respected", respectedcheck)

Megiddo:
IsUserGroup() is a garry function. It returns true if the user belongs to the group, yes. You might be looking for CheckGroup() though (see docs).

nofear1999:
I couldn'tfind CheckGroup in the Document.
Could you please link me?

Navigation

[0] Message Index

[#] Next page

Go to full version