@nativewrappers/redm 0.0.102 → 0.0.103

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/entities/Ped.d.ts CHANGED
@@ -211,4 +211,5 @@ export declare class Ped extends BaseEntity {
211
211
  setCurrentWeapon(weapon: WeaponModel, equipNow?: boolean, attachPoint?: WeaponAttachPoints, p4?: boolean, p5?: boolean): void;
212
212
  holsterWeapon(): void;
213
213
  setWeaponOnBack(disableAnim?: boolean): void;
214
+ isHoldingWeapon(weapon: WeaponModel): boolean;
214
215
  }
package/entities/Ped.js CHANGED
@@ -476,6 +476,9 @@ class Ped extends BaseEntity {
476
476
  setWeaponOnBack(disableAnim = false) {
477
477
  Citizen.invokeNative("0x4820A6939D7CEF28", this.handle, disableAnim);
478
478
  }
479
+ isHoldingWeapon(weapon) {
480
+ return Citizen.invokeNative("0x07E1C35F0078C3F9", this.handle, weapon.Hash);
481
+ }
479
482
  }
480
483
  export {
481
484
  Ped
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "version": "0.0.102",
11
+ "version": "0.0.103",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/nativewrappers/nativewrappers.git"