@citizenfx/server 2.0.9601-1 → 2.0.9646-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -686,6 +686,22 @@ declare function GetGameBuildNumber(): number;
686
686
  */
687
687
  declare function GetGameName(): string;
688
688
 
689
+ /**
690
+ * Returns a list of entity handles (script GUID) for all entities in the specified pool - the data returned is an array as
691
+ * follows:
692
+ * ```json
693
+ * [ 770, 1026, 1282, 1538, 1794, 2050, 2306, 2562, 2818, 3074, 3330, 3586, 3842, 4098, 4354, 4610, ...]
694
+ * ```
695
+ * ### Supported pools
696
+ * * `CPed`: Peds (including animals) and players.
697
+ * * `CObject`: Objects (props), doors, and projectiles.
698
+ * * `CVehicle`: Vehicles.
699
+ * * `CPickup`: Pickups.
700
+ * @param poolName The pool name to get a list of entities from.
701
+ * @return An array containing entity handles for each entity in the named pool.
702
+ */
703
+ declare function GetGamePool(poolName: string): any;
704
+
689
705
  /**
690
706
  * Gets the current game timer in milliseconds.
691
707
  * @return The game time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/server",
3
- "version": "2.0.9601-1",
3
+ "version": "2.0.9646-1",
4
4
  "description": "Typings for the CitizenFX server JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {