Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
R
 redirect
 refreshBans
 registerAccess, ucl
 registerPlugin
 removeCommentHeader
 removeGroup, ucl
 removeSayCommand
 removeUser, ucl
 renameGroup, ucl
 replicatedWritableCvar
 restrictToCompletes, cmds
 root_class
 root_class:call
 root_class:create
 ropairs
 round, cmds
S
 sayCmdCheck
 sayCmds
 secondsToStringTime
 serialize
 setGroupCanTarget, ucl
 setGroupInheritance, ucl
 setVar
 Shared UCL
 slap
 slapSounds
 spawn
 splitArgs
 splitPort
 StringArg:complete, cmds.StringArg.cmds
 StringArg:parseAndValidate, cmds.StringArg.cmds
 StringArg:processRestrictions, cmds.StringArg.cmds
 StringArg:usage, cmds.StringArg.cmds
 stringTimeToMinutes
 stripComments
 stripQuotes
T
 Tables
 takeRestOfLine, cmds
 throwBadArg
 toBool
 TranslateCommand:addParam, cmds.TranslateCommand.cmds
 TranslateCommand:call, cmds.TranslateCommand.cmds
 TranslateCommand:defaultAccess, cmds.TranslateCommand.cmds
 TranslateCommand:getUsage, cmds.TranslateCommand.cmds
 TranslateCommand:instantiate, cmds.TranslateCommand.cmds
 TranslateCommand:setOpposite, cmds.TranslateCommand.cmds
 translatedCmds, cmds.StringArg.cmds
 tsay
 tsayColor
 tsayError
function ULib.redirect(ply,
command,
argv)
This redirects any command to the server.
function ULib.refreshBans()
Refreshes the ULib bans.
function ucl.registerAccess(access,
groups,
comment,
category)
Inform UCL about the existence of a particular access string, optionally make it have a certain default access, optionally give a help message along with it.
function ULib.registerPlugin(pluginData)
function ULib.removeCommentHeader(data,
comment_char)
Removes a comment header.
function ucl.removeGroup(name,
from_CAMI)
Removes a group from the UCL.
function ULib.removeSayCommand(say_cmd)
Removes a say command.
function ucl.removeUser(id,
from_CAMI)
Removes a user from the UCL.
function ucl.renameGroup(orig,
new)
Renames a group in the UCL.
function ULib.replicatedWritableCvar(sv_cvar,
cl_cvar,
default_value,
save,
notify,
access)
This function also creates a cvar on the client that can be modified and will be sent back to the server.
cmds.restrictToCompletes
This is used when specifying a string argument to flag that only what was specified for autocomplete is allowed to be passed as a valid argument.
This is a local table that holds our functions that we want all classes to have.
This is a utility function used by the metatable __call to resolve Class( ...
function root_class:create(...)
This is used to create new ‘class instances’.
function ULib.ropairs(t)
The equivalent of “pairs” for a readonly table, since “pairs” won’t work.
cmds.round
This is used when specifying a number argument to flag the argument to round the number to the nearest integer.
local function sayCmdCheck(ply,
strText,
bTeam)
Say callback which will check to see if there’s a say command being used.
This table holds our say commands.
function ULib.secondsToStringTime(secs)
Converts a number of seconds to a string describing the time span.
function ULib.serialize(v)
Serializes a variable.
function ucl.setGroupCanTarget(group,
can_target)
Sets what a group is allowed to target in the UCL.
function ucl.setGroupInheritance(group,
inherit_from,
from_CAMI)
Sets a group’s inheritance in the UCL.
function ULib.setVar(varLocation,
varValue,
rootTable)
Given a string, find and set a var starting from the global namespace.
Shared UCL stuff.
function ULib.slap(ent,
damage,
power,
nosound)
Slaps an entity, can be a user or any entity.
These are the sounds used for slaps.
function ULib.spawn(player,
bool)
Enhanced spawn player.
function ULib.splitArgs(args,
start_token,
end_token)
This is similar to string.Explode( “ “, str ) except that it will also obey quotation marks.
function ULib.splitPort(ipAndPort)
function cmds.StringArg:complete(ply,
arg,
cmdInfo,
plyRestrictions)
See cmds.BaseArg:complete
function cmds.StringArg:parseAndValidate(ply,
arg,
cmdInfo,
plyRestrictions)
See cmds.BaseArg:parseAndValidate
function cmds.StringArg:processRestrictions(cmdRestrictions,
plyRestrictions)
A helper function to help us figure out restrictions on this command.
function cmds.StringArg:usage(cmdInfo,
plyRestrictions)
See cmds.BaseArg:usage
function ULib.stringTimeToMinutes(str)
Converts a string containing time information to minutes.
function ULib.stripComments(str,
comment,
blockcommentbeg,
blockcommentend)
Strips comments from a string
function ULib.stripQuotes(s)
Trims leading and tailing quotes from a string
Some table helpers.
cmds.takeRestOfLine
This is used when specifying a string argument to flag that this argument should use up any remaining args, whether quoted as one arg or not.
function ULib.throwBadArg(argnum,
fnName,
expected,
data,
throwLevel)
Throws an error similar to the lua “bad argument #x to fn_name (type expected, got type).
function ULib.toBool(x)
Converts a bool, nil, string, or number to a bool
function cmds.TranslateCommand:addParam(t)
Add an argument to this command.
function cmds.TranslateCommand:call(isOpposite,
...)
This is just a pass-through function for calling the function callback.
function cmds.TranslateCommand:defaultAccess(access)
function cmds.TranslateCommand:getUsage(ply)
function cmds.TranslateCommand:instantiate(cmd,
fn,
say_cmd,
hide_say,
no_space_in_say,
unsafe)
function cmds.TranslateCommand:setOpposite(cmd,
args,
say_cmd,
hide_say,
no_space_in_say)
Set the command opposite for this command.
Holds all the commands that are set up through the translator.
function ULib.tsay(ply,
msg,
wait,
wasValid)
Prints a message in talk say as well as in the user’s consoles.
function ULib.tsayColor(ply,
wait,
...)
Prints a tsay message in color!
function ULib.tsayError(ply,
msg,
wait)
Just like tsay, but prints the string in red
Close