Skip to content
SecreTPT edited this page Jul 6, 2018 · 1 revision

World.NumPrisoners

Returns a table containing category names to the total number of known prisoners in that category. This number may be incorrect on level loading until the simulation has caught up with the world state. This is a cfunction call, which can be expensive. Try not to call it every tick. Cache the result and only update it every now and then.

Returns:        A table listing prisoner category names to the number of prisoners of that category.
Clone this wiki locally