@citizenfx/client 2.0.12735-1 → 2.0.12739-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.
@@ -16498,10 +16498,14 @@ declare function GetDesObjectAnimProgress(object: number): number;
16498
16498
  * ```
16499
16499
  * [
16500
16500
  * {
16501
- * "name": "cmdlist"
16501
+ * "name": "cmdlist",
16502
+ * "resource": "resource",
16503
+ * "arity" = -1,
16502
16504
  * },
16503
16505
  * {
16504
16506
  * "name": "command1"
16507
+ * "resource": "resource_2",
16508
+ * "arity" = -1,
16505
16509
  * }
16506
16510
  * ]
16507
16511
  * ```
@@ -16647,6 +16651,27 @@ declare function N_0x35fb78dc42b7bd21(): boolean;
16647
16651
  */
16648
16652
  declare function GetResourceByFindIndex(findIndex: number): string;
16649
16653
 
16654
+ /**
16655
+ * Returns all commands registered by the specified resource.
16656
+ * The data returned adheres to the following layout:
16657
+ * ```
16658
+ * [
16659
+ * {
16660
+ * "name": "cmdlist",
16661
+ * "resource": "example_resource",
16662
+ * "arity" = -1,
16663
+ * },
16664
+ * {
16665
+ * "name": "command1"
16666
+ * "resource": "example_resource2",
16667
+ * "arity" = -1,
16668
+ * }
16669
+ * ]
16670
+ * ```
16671
+ * @return An object containing registered commands.
16672
+ */
16673
+ declare function GetResourceCommands(resource: string): any;
16674
+
16650
16675
  /**
16651
16676
  * A getter for [SET_RESOURCE_KVP_FLOAT](#\_0x9ADD2938).
16652
16677
  * @param key The key to fetch
@@ -56648,7 +56673,7 @@ declare function SetVehicleXenonLightsCustomColor(vehicle: number, red: number,
56648
56673
 
56649
56674
  /**
56650
56675
  * SET_VEHICLE_XMAS_SNOW_FACTOR
56651
- * @param gripFactor amount of grip strength vehicle wheels have when xmas weather is active, 1.0 being normal weather grip. 0.2 is the default.
56676
+ * @param gripFactor amount of grip strength vehicle wheels have when xmas weather is active, 0.0 being normal weather grip. 0.2 is the default.
56652
56677
  */
56653
56678
  declare function SetVehicleXmasSnowFactor(gripFactor: number): void;
56654
56679
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.12735-1",
3
+ "version": "2.0.12739-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {