Similar to player.GetAll(), except it only returns players that have ULib ready to go.
function ULib.getAllReadyPlayers()
Transforms a command and argument list as passed by the source engine into a ULib command table.
function cmds.getCommandTableAndArgv( commandName, argv, valveErrorCorrection )
Gets what a group is allowed to target in the UCL.
function ucl.getGroupCanTarget( group )
This function returns a tree-like structure representing the group inheritance architecture.
function ucl.getInheritanceTree()
Returns bans written by ULib versions prior to 2.7.
function ULib.getLegacyBans()
Gets the player directly in front of the specified player
function ULib.getPicker( ply, radius )
Finds a user identified by the given ID.
function ULib.getPlyByID( id )
function ULib.getPlyByUID( uid )
Grabs and returns player information that can be used to respawn player with same health/armor as before the spawn.
function ULib.getSpawnInfo( ply )
Finds a user matching an identifier.
function ULib.getUser( target, enable_keywords, ply )
Returns a table containing the name and group of a player in the UCL table of users if they exist.
function ucl.getUserInfoFromID( id )
Returns the SteamID, IP, or UniqueID of a player if they’re registered under any of those IDs under ucl.users.
function ucl.getUserRegisteredID( ply )
Finds users matching an identifier.
function ULib.getUsers( target, enable_keywords, ply )
Adds or removes an access tag in the allows for a group.
function ucl.groupAllow( name, access, revoke )
This function is used to see if a specified group is inheriting from another
function ucl.groupInheritsFrom( group )
This is used when specifying a command that should ignore the can_target property in the groups config.
cmds.ignoreCanTarget
Creates a psudeo-inheritance for lua.
function inheritsFrom( base_class )
Makes a user invisible
function ULib.invisible( ply, bool, visibility )
Returns true if the current gamemode is sandbox or is derived from sandbox.
function ULib.isSandbox()
Checks to see if a given string is a valid IPv4 address.
function ULib.isValidIP( ip )
Checks to see if a given string is a valid steamid.
function ULib.isValidSteamID( steamid )
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 )
This is used when specifying an argument to flag the argument as optional.
cmds.optional
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, ... )