@nativewrappers/redm 0.0.133 → 0.0.134
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 +3 -2
- package/entities/Ped.js +6 -3
- package/package.json +1 -1
package/entities/Ped.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CommonPedBoneCollection } from "../common-game/entities/CommonPedBoneCollection";
|
|
2
|
+
import { ClassTypes } from "../common/utils/ClassTypes";
|
|
1
3
|
import type { Vector3 } from "../common/utils/Vector";
|
|
2
4
|
import { Tasks } from "../Task";
|
|
3
5
|
import { WeaponAttachPoints } from "../enums/WeaponAttachPoints";
|
|
@@ -10,8 +12,6 @@ import type { VehicleSeat } from "../enums/VehicleSeat";
|
|
|
10
12
|
import { BaseEntity } from "./BaseEntity";
|
|
11
13
|
import { Player } from "./Player";
|
|
12
14
|
import { Vehicle } from "./Vehicle";
|
|
13
|
-
import { ClassTypes } from "../common/utils/ClassTypes";
|
|
14
|
-
import { CommonPedBoneCollection } from "../common-game/entities/CommonPedBoneCollection";
|
|
15
15
|
export declare class Ped extends BaseEntity {
|
|
16
16
|
protected type: ClassTypes;
|
|
17
17
|
protected bones?: CommonPedBoneCollection | undefined;
|
|
@@ -217,4 +217,5 @@ export declare class Ped extends BaseEntity {
|
|
|
217
217
|
holsterWeapon(): void;
|
|
218
218
|
setWeaponOnBack(disableAnim?: boolean): void;
|
|
219
219
|
isHoldingWeapon(weapon: WeaponModel): boolean;
|
|
220
|
+
isHolsterStateChanging(): boolean;
|
|
220
221
|
}
|
package/entities/Ped.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { CommonPed } from "../common-game/entities/CommonPed";
|
|
4
|
+
import { CommonPedBoneCollection } from "../common-game/entities/CommonPedBoneCollection";
|
|
5
|
+
import { ClassTypes } from "../common/utils/ClassTypes";
|
|
3
6
|
import { Tasks } from "../Task";
|
|
4
7
|
import { WeaponAttachPoints } from "../enums/WeaponAttachPoints";
|
|
5
8
|
import { ItemAddReason } from "../inventory/InventoryTypes";
|
|
@@ -9,9 +12,6 @@ import { Attributes } from "../Attribute";
|
|
|
9
12
|
import { BaseEntity } from "./BaseEntity";
|
|
10
13
|
import { Player } from "./Player";
|
|
11
14
|
import { Vehicle } from "./Vehicle";
|
|
12
|
-
import { CommonPed } from "../common-game/entities/CommonPed";
|
|
13
|
-
import { ClassTypes } from "../common/utils/ClassTypes";
|
|
14
|
-
import { CommonPedBoneCollection } from "../common-game/entities/CommonPedBoneCollection";
|
|
15
15
|
class Ped extends BaseEntity {
|
|
16
16
|
static {
|
|
17
17
|
__name(this, "Ped");
|
|
@@ -488,6 +488,9 @@ class Ped extends BaseEntity {
|
|
|
488
488
|
isHoldingWeapon(weapon) {
|
|
489
489
|
return Citizen.invokeNative("0x07E1C35F0078C3F9", this.handle, weapon.Hash);
|
|
490
490
|
}
|
|
491
|
+
isHolsterStateChanging() {
|
|
492
|
+
return Citizen.invokeNative("0x2387D6E9C6B478AA", this.handle);
|
|
493
|
+
}
|
|
491
494
|
}
|
|
492
495
|
export {
|
|
493
496
|
Ped
|