Ulysses

General => Developers Corner => Topic started by: thedep on January 11, 2016, 06:11:59 PM

Title: Dont Know how to add more than 1 ulx group to a job
Post by: thedep on January 11, 2016, 06:11:59 PM
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 ?
Title: Re: Dont Know how to add more than 1 ulx group to a job
Post by: JamminR on January 11, 2016, 06:53:38 PM
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