Our access ids, used for our limit UCL checks.
accessIds
Adds to the client or admin menu
function addToMenu( menuid, callback )
This function removes all of a player’s worldly possessions.
function deleteAll( uid, isLeaving )
White list for objects that can’t be deleted.
delWhitelist
DO NOT CALL DIRECTLY, UPS HANDLES THIS FUNCTION This function is called to assign ownership to the player spawning the object via hooks.
function entSpawn( ply, ent, ent2 )
This hook allows you to override an ownership change or simply catalog it.
function GAMEMODE:UPSAssignOwnership( ply, ent )
This read-only hook is called after a player reports that it has loaded UPS.
function GAMEMODE:UPSPlayerLoaded( ply )
This read-only hook is called after query does all of it’s processing.
function GAMEMODE:UPSPostQuery( ply, ent, actionid, flags, allowed )
This hook is called before query begins any processing.
function GAMEMODE:UPSPreQuery( ply, ent, actionid, flags )
Gets a table of entities this uid owns.
function getUIDOwnedEnts( uid )
Used to identify admin menu objects in the spawn menu.
ID_MADMIN
Used to identify client menu objects in the spawn menu.
ID_MCLIENT
List of ents to just completely remove from all UPS considerations.
ignoreList
This is a prequery (see <query>) hook in order to protect map entities.
function mapProtectionQuery( ply, ent, actionid, flags )
White list for objects that can’t be moved.
moveWhitelist
Gets the last known player name for a user uid.
function nameFromID( uid )
DO NOT CALL DIRECTLY, UPS HANDLES THIS FUNCTION Sets the name for use with nameFromID.
function nameToID( uid, name )
This value is returned from functions when we don’t know the value requested yet
OWNERID_DEFER
Takes care of playing the “access denied” sound to a client.
function playDenySound( ply )
This is a prequery (see <query>) hook in order to allow players to disable UPS on themselves and allow admins to disable them.
function playerDisabledQuery( ply, ent, actionid, flags )
Stores player names indexed by uid.
playerTable
This is quite possibly the most important function in all of UPS.
function query( ply, ent, actionid, flags )
This function calls query for all entities connected to and including a specified entity.
function queryAll( ply, ent, actionid, flags )
This function is mainly intended for use with the menus.
function replicatedWritableCvar( sv_cvar, cl_cvar, default_value, save, notify, access )
What group to give access to everything by default.
UPS_ADMIN