Author Topic: Dont Know how to add more than 1 ulx group to a job  (Read 1488 times)

0 Members and 1 Guest are viewing this topic.

Offline thedep

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Dont Know how to add more than 1 ulx group to a job
« 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 ?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Dont Know how to add more than 1 ulx group to a job
« Reply #1 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming