Function 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
A
 addToMenu
D
 deleteAll
E
 ENTITY: UPSClearOwner
 ENTITY: UPSGetOwner
 ENTITY: UPSGetOwnerEnt
 ENTITY: UPSSetOwnerEnt
 entSpawn
G
 GAMEMODE: UPSAssignOwnership
 GAMEMODE: UPSPlayerLoaded
 GAMEMODE: UPSPostQuery
 GAMEMODE: UPSPreQuery
 getUIDOwnedEnts
M
 mapProtectionQuery
N
 nameFromID
 nameToID
P
 playDenySound
 PLAYER: AddCount
 PLAYER: UPSGetOwnedEnts
 playerDisabledQuery
Q
 query
 queryAll
R
 replicatedWritableCvar
function addToMenu(menuid,
callback)
Adds to the client or admin menu
function deleteAll(uid,
isLeaving)
This function removes all of a player’s worldly possessions.
Clears the owner of this entity and puts it “up for grabs”.
Gets the unique id of the owner of this prop.
Gets the player entity of the owner of this prop or nil if it has no owner or the owner is disconnected.
Sets the current entity owner to the player specified.
function entSpawn(ply,
ent,
ent2)
DO NOT CALL DIRECTLY, UPS HANDLES THIS FUNCTION This function is called to assign ownership to the player spawning the object via hooks.
function GAMEMODE:UPSAssignOwnership(ply,
ent)
This hook allows you to override an ownership change or simply catalog it.
function GAMEMODE:UPSPlayerLoaded(ply)
This read-only hook is called after a player reports that it has loaded UPS.
function GAMEMODE:UPSPostQuery(ply,
ent,
actionid,
flags,
allowed)
This read-only hook is called after query does all of it’s processing.
function GAMEMODE:UPSPreQuery(ply,
ent,
actionid,
flags)
This hook is called before query begins any processing.
function getUIDOwnedEnts(uid)
Gets a table of entities this uid owns.
function mapProtectionQuery(ply,
ent,
actionid,
flags)
This is a prequery (see <query>) hook in order to protect map entities.
function nameFromID(uid)
Gets the last known player name for a user uid.
function nameToID(uid,
name)
DO NOT CALL DIRECTLY, UPS HANDLES THIS FUNCTION Sets the name for use with nameFromID.
function playDenySound(ply)
Takes care of playing the “access denied” sound to a client.
DO NOT CALL DIRECTLY, UPS HANDLES THIS FUNCTION We’re going to override the AddCount function.
Gets a table of entities this player owns.
function playerDisabledQuery(ply,
ent,
actionid,
flags)
This is a prequery (see <query>) hook in order to allow players to disable UPS on themselves and allow admins to disable them.
function query(ply,
ent,
actionid,
flags)
This is quite possibly the most important function in all of UPS.
function queryAll(ply,
ent,
actionid,
flags)
This function calls query for all entities connected to and including a specified entity.
function replicatedWritableCvar(sv_cvar,
cl_cvar,
default_value,
save,
notify,
access)
This function is mainly intended for use with the menus.
Close