Uhh thanks for the wanting to help but i got it...i put it in.../garrysmod/addons/ulx/lua/ulx/modules/sh the lua was.
local CATEGORY_NAME = "ForcingStuff"
-- RESPAWN PLAYER --
function ulx.respawn( calling_ply, target_plys )
for _,v in pairs(target_plys) do
v:SetTeam( TEAM_TERROR )
v:Spawn()
end
ulx.fancyLogAdmin( calling_ply, "#A has respawned #T!", target_plys )
end
local strip = ulx.command( "TTT", "ulx respawn", ulx.respawn, "!respawn" )
strip:addParam{ type=ULib.cmds.PlayersArg }
strip:defaultAccess( ULib.ACCESS_SUPERADMIN )
strip:help( "Respawn the target(s)." )
------------------------------ Traitor ------------------------------
function ulx.cc_traitor( ply, targs )
for _, v in ipairs( targs ) do
v:SetRole(ROLE_TRAITOR)
end
SendFullStateUpdate()
end
local traitor = ulx.command( CATEGORY_NAME, "ulx traitor", ulx.cc_traitor, "!traitor", true )
traitor:addParam{type=ULib.cmds.PlayersArg, hint = "<user(s)>"}
traitor:defaultAccess( ULib.ACCESS_SUPERADMIN )
traitor:help( "Turns target(s) into a traitor." )
------------------------------ Detective ------------------------------
function ulx.cc_detective( ply, targs )
for _, v in ipairs( targs ) do
v:SetRole(ROLE_DETECTIVE)
end
SendFullStateUpdate()
end
local traitor = ulx.command( CATEGORY_NAME, "ulx detective", ulx.cc_detective, "!detective", true )
traitor:addParam{type=ULib.cmds.PlayersArg, hint = "<user(s)>"}
traitor:defaultAccess( ULib.ACCESS_SUPERADMIN )
traitor:help( "Turns target(s) into a detective." )
------------------------------ Innocenct ------------------------------
function ulx.cc_innocent( ply, targs )
for _, v in ipairs( targs ) do
v:SetRole(ROLE_INNOCENT)
end
SendFullStateUpdate()
end
local traitor = ulx.command( CATEGORY_NAME, "ulx innocent", ulx.cc_innocent, "!innocent", true )
traitor:addParam{type=ULib.cmds.PlayersArg, hint = "<user(s)>"}
traitor:defaultAccess( ULib.ACCESS_SUPERADMIN )
traitor:help( "Turns target(s) into a innocent." )