engineSetPoolCapacity | Multi Theft Auto: Wiki Skip to content

engineSetPoolCapacity

Client-side
Server-side
Shared

Pair: engineGetPoolCapacity

Added in 1.6.0 r22471

This function changes the capacity of the provided pool.

Syntax

bool engineSetPoolCapacity ( ​string pool, ​number capacity )
Required Arguments
  • pool: Name of the pool. See pools.
  • capacity: New size.

Returns

  • bool: result

Return true if the pool capacity was changed and false if not. Throws an error if the pool is invalid.

Code Examples

Script Example Missing

Function engineSetPoolCapacity needs a script example. Help out by writing one.

Contribution guidelines

See Also

Engine Functions