Kicks a user.
function ULib.kick( ply, reason, calling_ply )
An alias for ban.
ULib.kickban = ULib.ban
Makes a key values string from a table.
function ULib.makeKeyValues( t, tab, completed )
Makes a string safe for pattern usage, like in string.gsub().
function ULib.makePatternSafe( str )
Makes a table and all recursive tables read-only
function ULib.makeReadOnly( t )
Splits a table into a number of given columns.
function ULib.matrixTable( t, columns )
Calls all ULibPlayerNameChanged hooks if a player changes their name.
function ULib.nameCheck( data )
Exactly like queueFunctionCall(), but allows for separately running queues to exist.
function ULib.namedQueueFunctionCall( queueName, fn, ... )
See cmds.BaseArg:complete
function cmds.NumArg:complete( ply, arg, cmdInfo, plyRestrictions )
See cmds.BaseArg:parseAndValidate
function cmds.NumArg:parseAndValidate( ply, arg, cmdInfo, plyRestrictions )
A helper function to help us figure out restrictions on this command.
function cmds.NumArg:processRestrictions( cmdRestrictions, plyRestrictions )
See cmds.BaseArg:usage
function cmds.NumArg:usage( cmdInfo, plyRestrictions )
Parses a keyvalue formatted string into a table.
function ULib.parseKeyValues( str, convert )
An adaptation of a function that used to exist before GM13, allows you to call functions safely and print errors (if it errors).
function ULib.pcallError( ... )
Plays a 3D sound, the further away from the point the player is, the softer the sound will be.
function ULib.play3DSound( sound, vector, volume, pitch )
See cmds.BaseArg:complete
function cmds.PlayerArg:complete( ply, arg, cmdInfo, plyRestrictions )
See cmds.BaseArg:parseAndValidate
function cmds.PlayerArg:parseAndValidate( ply, arg, cmdInfo, plyRestrictions )
A helper function to help us figure out restrictions on this command.
function cmds.PlayerArg:processRestrictions( ply, cmdRestrictions, plyRestrictions )
See cmds.BaseArg:usage
function cmds.PlayerArg:usage( cmdInfo, plyRestrictions )
See cmds.PlayerArg:parseAndValidate
function cmds.PlayersArg:parseAndValidate( ply, arg, cmdInfo, plyRestrictions )
See cmds.PlayerArg:usage
function cmds.PlayersArg:usage( cmdInfo, plyRestrictions )
Returns a human-readable version string for plugins in a consistent format.
function ULib.pluginVersionStr( name )
Probes the user to assign access appropriately.
function ucl.probe( ply )
This function is used to see if a user has access to a command.
function ucl.query( ply, access, hide )
Adds a function call to the queue to be called.
function ULib.queueFunctionCall( fn, ... )
This redirects any command to the server.
function ULib.redirect( ply, command, argv )
Refreshes the ULib bans.
function ULib.refreshBans()
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 ucl.registerAccess( access, groups, comment, category )
function ULib.registerPlugin( pluginData )
Removes a comment header.
function ULib.removeCommentHeader( data, comment_char )
Removes a group from the UCL.
function ucl.removeGroup( name, from_CAMI )
Removes a say command.
function ULib.removeSayCommand( say_cmd )
Removes a user from the UCL.
function ucl.removeUser( id, from_CAMI )
Renames a group in the UCL.
function ucl.renameGroup( orig, new )
This function also creates a cvar on the client that can be modified and will be sent back to the server.
function ULib.replicatedWritableCvar( sv_cvar, cl_cvar, default_value, save, notify, access )
This is used to create new ‘class instances’.
function root_class:create( ... )
The equivalent of “pairs” for a readonly table, since “pairs” won’t work.
function ULib.ropairs( t )
Say callback which will check to see if there’s a say command being used.
local function sayCmdCheck( ply, strText, bTeam )
Converts a number of seconds to a string describing the time span.
function ULib.secondsToStringTime( secs )
Serializes a variable.
function ULib.serialize( v )
Sets what a group is allowed to target in the UCL.
function ucl.setGroupCanTarget( group, can_target )
Sets a group’s inheritance in the UCL.
function ucl.setGroupInheritance( group, inherit_from, from_CAMI )
Given a string, find and set a var starting from the global namespace.
function ULib.setVar( varLocation, varValue, rootTable )
Slaps an entity, can be a user or any entity.
function ULib.slap( ent, damage, power, nosound )
Enhanced spawn player.
function ULib.spawn( player, bool )
This is similar to string.Explode( “ “, str ) except that it will also obey quotation marks.
function ULib.splitArgs( args, start_token, end_token )
function ULib.splitPort( ipAndPort )
See cmds.BaseArg:complete
function cmds.StringArg:complete( ply, arg, cmdInfo, plyRestrictions )
See cmds.BaseArg:parseAndValidate
function cmds.StringArg:parseAndValidate( ply, arg, cmdInfo, plyRestrictions )
A helper function to help us figure out restrictions on this command.
function cmds.StringArg:processRestrictions( cmdRestrictions, plyRestrictions )
See cmds.BaseArg:usage
function cmds.StringArg:usage( cmdInfo, plyRestrictions )
Converts a string containing time information to minutes.
function ULib.stringTimeToMinutes( str )
Strips comments from a string
function ULib.stripComments( str, comment, blockcommentbeg, blockcommentend )
Trims leading and tailing quotes from a string
function ULib.stripQuotes( s )