GetPoolSize
This function was added in DSL 6
Description
Return the maximum number of elements allowed in a pool.
Pool sizes can not normally be changed unless using DSL's pool options or another mod that resizes pools.
function GetPoolSize(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.
Pools (for the pool argument)
Please note that some pool names actually refer to multiple parallel pools. For example PED actually refers to 9 total pools.
PTR_NODEENTRY_INFO_NODEVEHICLEPEDJOINT_CONSTRAINTWEAPONLUA_SCRIPTDUMMYPROP_ANIMBUILDINGTREADABLECOL_MODELSTIMULUSOBJECTPROJECTILECUT_SCENEUNKNOWN
Return Values
size:integer- The maximum number of elements allowed in the specified pool.
Example
local poolSize = GetPoolSize('PED')
print(poolSize)