@citizenfx/server 2.0.9601-1 → 2.0.9635-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.
- package/natives_server.d.ts +16 -0
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -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.
|