ULX

Author Topic: ulx cloak at the start of the round  (Read 1871 times)

0 Members and 1 Guest are viewing this topic.

Offline ozzyos2009

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
ulx cloak at the start of the round
« on: January 24, 2018, 01:32:22 PM »
I'm making a custom round on TTT that'll cloak traitors. I've tried using ply:concommand, RunConsoleCommand etc.
Wasn't working so I looked over at the ULIB for invisible and I just don't understand it.
Is there a simple way to make traitors cloaked?

Something that would look like this:
Code: [Select]
for _,ply in pairs(player.GetAll() ) do
     if ply:GetRole() == ROLE_TRAITOR then
           v:ConCommand("ulx", "cloak", "^", 225)
     end
end

An Error Has Occurred!

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