ARCBank Documentation

I haven't finished my new website yet, so for now you get a 1990's style looking thing.

ent_permissions

In order to prevent exploitation, ARCBank uses ent_permissions to determine when players are allowed to preform banking transactions.

How to create your own entity with the proper permissions.

You must have an entity with the following things serverside.

  1. A variable on the entity which says what the player is allowed to do with it. You can use bit.bor to combine permissions
  2. A function that returns who is currently using the entity
ENT.ARCBank_Permissions = bit.bor(ARCBANK_PERMISSIONS_READ,ARCBANK_PERMISSIONS_READ_LOG,ARCBANK_PERMISSIONS_DEPOSIT)
function ENT:GetARCBankUsePlayer()
	return self.ThePlayerThatIsUsingMe
end

Reference list

These are all the ent_permissions in ARCBank 1.4.0. These are for reference purpose only, please use the actual variable names.

ARCBANK_PERMISSIONS_READ = 1 -- Read account information (properties, balance, group members)
ARCBANK_PERMISSIONS_READ_LOG = 2 -- Read transaction logs
ARCBANK_PERMISSIONS_DEPOSIT = 4 -- Deposit cash
ARCBANK_PERMISSIONS_WITHDRAW = 8 -- Withdraw cash
ARCBANK_PERMISSIONS_TRANSFER = 16 -- Transfer money
ARCBANK_PERMISSIONS_RANK = 32 -- Upgrade/downgrade account
ARCBANK_PERMISSIONS_MEMBERS = 64 -- Add/Remove group members
ARCBANK_PERMISSIONS_CREATE = 128 -- Create new accounts