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
 accessIds
 addToMenu
 Author
B
 Base
C
 Changelog
 Client HUD
 Client initialization
 Client library
 Common Prop Protection Interface
 Credits
D
 deleteAll
 delWhitelist
E
 ENTITY: UPSClearOwner
 ENTITY: UPSGetOwner
 ENTITY: UPSGetOwnerEnt
 ENTITY: UPSSetOwnerEnt
 entSpawn
F
 Functions
G
 GAMEMODE: UPSAssignOwnership
 GAMEMODE: UPSPlayerLoaded
 GAMEMODE: UPSPostQuery
 GAMEMODE: UPSPreQuery
 getUIDOwnedEnts
I
 ID_MADMIN
 ID_MCLIENT
 ignoreList
 Installation
L
 Library
 License
M
 mapProtectionQuery
 moveWhitelist
N
 nameFromID
 nameToID
O
 OWNERID_DEFER
P
 playDenySound
 PLAYER: AddCount
 PLAYER: UPSGetOwnedEnts
 playerDisabledQuery
 playerTable
Q
 query
 queryAll
R
 replicatedWritableCvar
 Requirements
S
 Server initialization
 Shared definitions
 Shared library
U
 UPS Readme
 UPS_ADMIN
 Usage
V
 Variables
accessIds
Our access ids, used for our limit UCL checks.
function addToMenu(menuid,
callback)
Adds to the client or admin menu
UPS is brought to you by..
This file holds central, important functions or features.
This file takes care of the client hud.
Client-side initialization.
Even more library stuff that executes on the client.
CPPI is a common prop protection interface.
A big thanks to JamminR for listening to me ramble on and for giving the project fresh insights.
function deleteAll(uid,
isLeaving)
This function removes all of a player’s worldly possessions.
delWhitelist
White list for objects that can’t be deleted.
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.
ID_MADMIN
Used to identify admin menu objects in the spawn menu.
ID_MCLIENT
Used to identify client menu objects in the spawn menu.
ignoreList
List of ents to just completely remove from all UPS considerations.
To install UPS, simply extract the files from the archive to your garrysmod/addons folder.
Server-side library functions for UPS.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.
function mapProtectionQuery(ply,
ent,
actionid,
flags)
This is a prequery (see <query>) hook in order to protect map entities.
moveWhitelist
White list for objects that can’t be moved.
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.
OWNERID_DEFER
This value is returned from functions when we don’t know the value requested yet
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.
playerTable
Stores player names indexed by uid.
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.
UPS requires the latest ULib to be installed on the server.
Server-side initialization.
This file is necessary to correctly implement one of garry’s map keyvalues.
Even more library stuff that executes on both server and client.
Uprotect v0.1 (released 00/00/00)
UPS_ADMIN
What group to give access to everything by default.
TODO WRITE THIS PART
Close