General > Developers Corner

Dont Know how to add more than 1 ulx group to a job

(1/1)

thedep:
Today i was making donator jobs and i wanted to add ulx groups to a certain job but it wouldnt let me it would only work if there was 1 group such as    customCheck = function(ply) return ply:GetNWString("usergroup") == "bronze" end
but how do i ad more ulx groups to the job ?

JamminR:
Lua. "or"
Scripting logic comparators, common in millions of scripting languages.

function(ply) return ply:GetNWString("usergroup") == "bronze" or ply:GetNWString("usergroup") == "some_other_group" end

Navigation

[0] Message Index

Go to full version