aight so im tired and i really cannot figure out what im doing wrong
i have limited lua knowledge but this isn't exactly something hard to achieve
------------------------------ Traitor ------------------------------
function ulx.traitor( calling_ply, target_plys )
for i=1, #target_plys do
target_plys:SetRole(ROLE_TRAITOR)
end
ulx.fancyLogAdmin( calling_ply, "#A set the hp for #T to #i", target_plys )
end
local traitor = ulx.command( CATEGORY_NAME, "ulx traitor", ulx.traitor, "!traitor" )
traitor:addParam{ type=ULib.cmds.PlayersArg }
traitor:defaultAccess( ULib.ACCESS_ADMIN )
traitor:help( "Sets target(s) as a traitor" )
says SetRole is nil or something
and before it was looking for a num value i dont remember why
actually i might have just copy and pasted some code and edited it
i dont really remember
im really tired
all help is appreciated