T | |
throwBadArg | |
toBool | |
TranslateCommand: | |
TranslateCommand: | |
TranslateCommand: | |
TranslateCommand: | |
TranslateCommand: | |
TranslateCommand: | |
tsay | |
tsayColor | |
tsayError | |
U | |
unban | |
unescapeBackslash | |
updateCheck | |
userAllow, ucl |
Throws an error similar to the lua “bad argument #x to fn_name (type expected, got type).
function ULib.throwBadArg( argnum, fnName, expected, data, throwLevel )
Converts a bool, nil, string, or number to a bool
function ULib.toBool( x )
Add an argument to this command.
function cmds.TranslateCommand:addParam( t )
This is just a pass-through function for calling the function callback.
function cmds.TranslateCommand:call( isOpposite, ... )
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 )
Set the command opposite for this command.
function cmds.TranslateCommand:setOpposite( cmd, args, say_cmd, hide_say, no_space_in_say )
Prints a message in talk say as well as in the user’s consoles.
function ULib.tsay( ply, msg, wait, wasValid )
Prints a tsay message in color!
function ULib.tsayColor( ply, wait, ... )
Just like tsay, but prints the string in red
function ULib.tsayError( ply, msg, wait )
Unbans the given steamid.
function ULib.unban( steamid, admin )
Converts ‘\\’ to ‘\’
function ULib.unescapeBackslash( s )
Check for updates for a named plugin at a given URL (usually you will want to use the URL specified in registerPlugin).
function ULib.updateCheck( name, url )
Adds or removes an access tag in the allows or denies for a user.
function ucl.userAllow( id, access, revoke, deny )