GetPoolUsage
This function was added in DSL 6
Description
Return the number of elements currently used in a pool.
Pool names are the same as the ones used with GetPoolSize
.
function GetPoolUsage(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
usage
:integer
- The number of elements currently used in the specified pool.
Example
local poolUsage = GetPoolUsage('PED')
print(poolUsage)