EngineSetPoolCapacity

From Multi Theft Auto: Wiki
Revision as of 14:16, 22 June 2024 by TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|4|1.6.0|22471|This function changes the capacity of the provided pool.}} ==Syntax== <syntaxhighlight lang="lua"> boolean engineSetPoolCapacity( string pool, number capacity ) </syntaxhighlight> ===Required Arguments=== * '''pool''': Name of the pool * '''capacity ''': New size ===Returns=== '''true''' if the pool capacity was changed and '''false''' if not. Throws an error if the pool is invalid. {{Engine_pools}} ==S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22471:
This function changes the capacity of the provided pool.

Syntax

boolean engineSetPoolCapacity( string pool, number capacity )

Required Arguments

  • pool: Name of the pool
  • capacity : New size

Returns

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

Engine pools

Name Default size Resizable Description
building 13000 yes Static world objects. Terrain, roads, buildings...
dummy 2500 no Dynamic world objects. Doors, fences, boxes
ped 140 no Peds
object 1200 no Scriptable objects
vehicle 110 no Vehicles
col-model 12000 no
task 5000 no
event 5000 no
task-allocator 16 no
ped-intelligence 64 no
ped-attractor 64 no
entry-info-node 72600 no
node-route 64 no
patrol-route 32 no
point-route 64 no
pointer-double-link-pool 74800 no
pointer-single-link-pool 90000 no
env-map-material 16000 no
env-map-atomic 4000 no
spec-map-material 16000 no

See Also