ULX

Author Topic: ULib.getUsers help  (Read 2083 times)

0 Members and 1 Guest are viewing this topic.

Offline BlueNova

  • Full Member
  • ***
  • Posts: 113
  • Karma: 13
  • The most powerful force in the universe.
ULib.getUsers help
« on: January 26, 2017, 11:05:42 PM »
Mainly I am having some issues within getting ULib.getUsers to target the correct user groups. The likely hood of myself doing it wrong is pretty high. I searched the forum for anything regarding it and didn't really find anything of use.

Now what I'm trying to do is trying to get it to target multiple user groups. After a few tries I quickly learned that doing this:
Code: [Select]
local players = ULib.getUsers( "%moderator", "%admin", "%superadmin" )doesn't necessarily work.

I'm not getting any real answers in console of what I'm doing is wrong so that's kind of disappointing that I don't really know where to start.

I know the format of ULib.getUsers being the

function ULib.getUsers( target, enable_keywords, ply )

thing. Just looking for some pointers on how to use this more correctly. K Thanks

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given