ULX Groups And Targetting

For some reason some groups are able to target groups that are higher up than that group, and I can’t figure out why. For example, VIP can target operator, owner, superadmin etc.

Here’s the file from the ulib folder inside the data folder.

“veteran”
{
“allow”
{
“ulx votekick”
}
“can_target” “!%trial_moderator”
“inherit_from” “loadout”
}
“developer”
{
“allow”
{
“ulx cexec”
“ulx ent”
“ulx exec”
“ulx luarun”
“ulx micoff”
“ulx micon”
“ulx physgunplayer”
“ulx rcon”
“ulx reservedslots”
“ulx seeanonymousechoes”
“ulx spawnecho”
}
“inherit_from” “sop”
}
“loadout”
{
“allow”
{
}
“can_target” “"
“inherit_from” “regular”
}
“regular”
{
“allow”
{
}
“can_target” "

}
“trial_moderator”
{
“allow”
{
“ulx ban”
“ulx banid”
“ulx copyid”
“ulx gag”
“ulx kick”
“ulx mute”
“ulx rslaynr”
“ulx seeasay”
“ulx seerdmmanager”
“ulx slaynr”
“ulx ungag”
“ulx unmute”
“ulx unspec”
“ulx voteban”
}
“can_target” “!%operator”
“inherit_from” “veteran”
}
“donator”
{
“allow”
{
“ulx armor”
“ulx blind”
“ulx freeze”
“ulx fspec”
“ulx gimp”
“ulx kick”
“ulx listfriends”
“ulx unblind”
“ulx unfreeze”
“ulx ungimp”
“ulx unignite”
“ulx unigniteall”
“ulx unspec”
“ulx vote”
}
“can_target” “!%donator+”
“inherit_from” “vip”
}
“vip”
{
“allow”
{
“ulx gag”
“ulx mute”
“ulx playsound”
“ulx teleport”
“ulx ungag”
“ulx unmute”
“ulx votemap”
}
“can_target” “!%donator”
“inherit_from” “regular”
}
“demon_donator”
{
“allow”
{
“ulx cloak”
“ulx hp”
“ulx return”
“ulx send”
“ulx sslay”
“ulx strip”
“ulx tsay”
“ulx uncloak”
“ulx unwatch”
}
“can_target” “!%trial_moderator”
“inherit_from” “elite_donator”
}
“superadmin”
{
“allow”
{
“ulx addgroup”
“ulx adduser”
“ulx adduserid”
“ulx allowwin”
“ulx banid”
“ulx credits”
“ulx force”
“ulx forcenr”
“ulx groupallow”
“ulx groupdeny”
“ulx hiddenecho”
“ulx identify”
“ulx logchat”
“ulx logdir”
“ulx logecho”
“ulx logechocolorconsole”
“ulx logechocolordefault”
“ulx logechocoloreveryone”
“ulx logechocolormisc”
“ulx logechocolorplayer”
“ulx logechocolorplayerasgroup”
“ulx logechocolors”
“ulx logechocolorself”
“ulx logevents”
“ulx logfile”
“ulx logjoinleaveecho”
“ulx logspawns”
“ulx logspawnsecho”
“ulx maul”
“ulx minply”
“ulx prevwin”
“ulx proptime”
“ulx removebody”
“ulx removegroup”
“ulx removeuser”
“ulx removeuserid”
“ulx renamegroup”
“ulx respawn”
“ulx respawntp”
“ulx roundrestart”
“ulx setgroupcantarget”
“ulx sforce”
“ulx silent credits”
“ulx srespawn”
“ulx srespawntp”
“ulx unidentify”
“ulx urlban”
“ulx userallow”
“ulx userallowid”
“ulx userdeny”
“ulx userdenyid”
“ulx voteecho”
“ulx votemap”
“xgui_gmsettings”
“xgui_managebans”
“xgui_managegroups”
“xgui_svsettings”
}
“can_target” “!%sop”
“inherit_from” “admin”
}
“user”
{
“allow”
{
“ulx asay”
“ulx help”
“ulx motd”
“ulx psay”
“ulx spawnecho”
“ulx thetime”
“ulx usermanagementhelp”
“ulx votefs”
“ulx votesnr”
“ulx who”
}
}
“owner”
{
“allow”
{
}
“inherit_from” “developer”
}
“admin”
{
“can_target” “!%superadmin”
“allow”
{
“ulx adduser”
“ulx adduserid”
“ulx armor”
“ulx ban”
“ulx blind”
“ulx bring”
“ulx chattime”
“ulx cloak”
“ulx copyip”
“ulx csay”
“ulx freeze”
“ulx fspec”
“ulx gag”
“ulx gimp”
“ulx god”
“ulx goto”
“ulx hp”
“ulx ignite”
“ulx impairnr”
“ulx jail”
“ulx jailtp”
“ulx karma”
“ulx kick”
“ulx kickafternamechanges”
“ulx kickafternamechangescooldown”
“ulx kickafternamechangeswarning”
“ulx listfriends”
“ulx map”
“ulx mute”
“ulx noclip”
“ulx playsound”
“ulx profile”
“ulx proptime”
“ulx ragdoll”
“ulx removeuser”
“ulx removeuserid”
“ulx resetscore”
“ulx respond”
“ulx return”
“ulx rslaynr”
“ulx rslots”
“ulx rslotsmode”
“ulx rslotsvisible”
“ulx seerdmmanager”
“ulx send”
“ulx showmotd”
“ulx slap”
“ulx slay”
“ulx slaynr”
“ulx spectate”
“ulx sslay”
“ulx strip”
“ulx teleport”
“ulx tsay”
“ulx unban”
“ulx unblind”
“ulx uncloak”
“ulx unfreeze”
“ulx ungag”
“ulx ungimp”
“ulx ungod”
“ulx unignite”
“ulx unigniteall”
“ulx unjail”
“ulx unmute”
“ulx unragdoll”
“ulx unspec”
“ulx unwatch”
“ulx veto”
“ulx vote”
“ulx voteban”
“ulx votebanminvotes”
“ulx votebansuccessratio”
“ulx votefs”
“ulx votefsminvotes”
“ulx votefssuccessratio”
“ulx votekick”
“ulx votekickminvotes”
“ulx votekicksuccessratio”
“ulx votemap2”
“ulx votemap2minvotes”
“ulx votemap2successratio”
“ulx votemapenabled”
“ulx votemapmapmode”
“ulx votemapmintime”
“ulx votemapminvotes”
“ulx votemapsuccessratio”
“ulx votemapvetotime”
“ulx votemapwaittime”
“ulx voteslaynrminvotes”
“ulx voteslaynrsuccessratio”
“ulx votesnr”
“ulx watch”
“ulx watchlist”
“ulx welcomemessage”
“ulx whip”
“xgui_svsettings”
}
“inherit_from” “senior_moderator”
}
“donator++”
{
“allow”
{
“ulx impairnr”
“ulx jailtp”
“ulx karma”
“ulx maul”
}
“can_target” “!%elite_donator”
“inherit_from” “donator+”
}
“elite_donator”
{
“allow”
{
“ulx copyid”
“ulx csay”
“ulx profile”
“ulx proptime”
“ulx ragdoll”
“ulx unragdoll”
“ulx veto”
“ulx votemap2”
“ulx watchlist”
}
“can_target” “!%demon_donator”
“inherit_from” “donator++”
}
“sop”
{
“allow”
{
}
“can_target” “!%developer”
“inherit_from” “superadmin”
}
“operator”
{
“can_target” “!%senior_moderator”
“allow”
{
“ulx fspec”
“ulx gimp”
“ulx listfriends”
“ulx seeasay”
“ulx slay”
“ulx teleport”
“ulx ungimp”
“ulx watchlist”
}
“inherit_from” “trial_moderator”
}
“donator+”
{
“allow”
{
“ulx bring”
“ulx goto”
“ulx jail”
“ulx rslaynr”
“ulx seeasay”
“ulx slap”
“ulx slay”
“ulx slaynr”
“ulx spectate”
“ulx unjail”
“ulx voteban”
}
“can_target” “!%donator++”
“inherit_from” “donator”
}
“senior_moderator”
{
“allow”
{
“ulx bring”
“ulx freeze”
“ulx goto”
“ulx ignite”
“ulx jail”
“ulx jailtp”
“ulx profile”
“ulx respond”
“ulx spectate”
“ulx sslay”
“ulx unban”
“ulx unblind”
“ulx uncloak”
“ulx unfreeze”
“ulx ungod”
“ulx unignite”
“ulx unigniteall”
“ulx unjail”
“ulx unragdoll”
“ulx veto”
“ulx vote”
“ulx whip”
“xgui_managebans”
}
“can_target” “!%admin”
“inherit_from” “operator”
}

omg use Code brackets

Ok, to make it so only certain groops can target groups do this:

  1. Go to the ULX menu
  2. Go to the groups TAB
  3. Click on the little drop down menu thingy
  4. Select Manage Groups
  5. Select a group where you would like to edit there targeting abilities
  6. Now for the somewhat tricky part. Look at where it says “Can Target.” Then paste !%Onerankhigher. An example is if you do not want Admin to be able to target superadmin you would put in the Can Target category “!%superadmin.” The “!%” is basically can’t target anyone above this group.

Another example: Make it so superadmin can’t target headadmin put in !%headadmin in the Can Target spot for superadmin.