GetPoolSpace
This function was added in DSL 6
Description
Returns the amount of space left in a pool (the size minus the usage).
Pool names are the same as the ones used with GetPoolSize
.
function GetPoolSpace(pool) --[[ ... ]] end
Parameters
pool
:string
- The name of the pool to get the size of. This is case-sensitive and must match the pool name exactly. See the list of available pools.
Return Values
space
:integer
- The amount of space available in the specified pool.
Example
local poolSpace = GetPoolSpace('PED')
print(poolSpace)