@nativewrappers/redm 0.0.80 → 0.0.82

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.
Files changed (82) hide show
  1. package/Attribute.js +143 -0
  2. package/Controls.js +22 -0
  3. package/Game.d.ts +2 -2
  4. package/Game.js +18 -0
  5. package/GameConstants.d.ts +1 -1
  6. package/GameConstants.js +24 -0
  7. package/Model.js +153 -0
  8. package/RawControls.d.ts +1 -1
  9. package/RawControls.js +22 -0
  10. package/RelationshipGroup.js +72 -0
  11. package/Volume.d.ts +1 -1
  12. package/Volume.js +32 -0
  13. package/common/Command.js +111 -0
  14. package/common/Convar.js +58 -0
  15. package/common/GlobalData.js +16 -0
  16. package/common/Kvp.js +137 -0
  17. package/common/Resource.js +54 -0
  18. package/common/decors/Events.js +170 -0
  19. package/common/net/NetworkedMap.js +225 -0
  20. package/common/utils/ClassTypes.js +15 -0
  21. package/common/utils/Color.js +33 -0
  22. package/common/utils/Delay.d.ts +1 -0
  23. package/common/utils/Delay.js +6 -0
  24. package/common/utils/Maths.js +18 -0
  25. package/common/utils/Point.d.ts +9 -0
  26. package/common/utils/Point.js +36 -0
  27. package/common/utils/PointF.d.ts +1 -1
  28. package/common/utils/PointF.js +18 -0
  29. package/common/utils/Quaternion.d.ts +1 -1
  30. package/common/utils/Quaternion.js +33 -0
  31. package/common/utils/Vector.js +589 -0
  32. package/common/utils/cleanPlayerName.js +17 -0
  33. package/common/utils/enumValues.js +20 -0
  34. package/common/utils/getStringFromUInt8Array.js +6 -0
  35. package/common/utils/getUInt32FromUint8Array.js +6 -0
  36. package/definitions/Citizen.d.js +0 -0
  37. package/definitions/index.d.js +0 -0
  38. package/definitions/redm.d.js +0 -0
  39. package/entities/BaseEntity.d.ts +1 -1
  40. package/entities/BaseEntity.js +99 -0
  41. package/entities/Entity.d.ts +1 -1
  42. package/entities/Entity.js +99 -0
  43. package/entities/Ped.d.ts +1 -1
  44. package/entities/Ped.js +336 -0
  45. package/entities/Pickup.d.ts +4 -0
  46. package/entities/Pickup.js +14 -0
  47. package/entities/Player.js +57 -0
  48. package/entities/Prop.js +11 -0
  49. package/entities/Vehicle.d.ts +1 -1
  50. package/entities/Vehicle.js +23 -0
  51. package/enums/Attributes.js +56 -0
  52. package/enums/Entity.js +20 -0
  53. package/enums/Keys.js +809 -0
  54. package/enums/Ped.js +31 -0
  55. package/enums/RawKeys.js +234 -0
  56. package/enums/Relationship.js +13 -0
  57. package/enums/VehicleSeat.js +17 -0
  58. package/index.js +52 -3762
  59. package/interfaces/Dimensions.d.ts +1 -1
  60. package/interfaces/Dimensions.js +0 -0
  61. package/package.json +2 -2
  62. package/types/Throwable.js +0 -0
  63. package/utils/Native.js +8 -0
  64. package/world/createDraftVehicle.d.ts +2 -2
  65. package/world/createDraftVehicle.js +32 -0
  66. package/world/createPed.d.ts +2 -2
  67. package/world/createPed.js +28 -0
  68. package/world/createProp.d.ts +1 -1
  69. package/world/createProp.js +28 -0
  70. package/world/createVehicle.d.ts +2 -2
  71. package/world/createVehicle.js +28 -0
  72. package/common/index.d.ts +0 -8
  73. package/common/utils/Vector2.d.ts +0 -1
  74. package/common/utils/Vector3.d.ts +0 -1
  75. package/common/utils/Vector4.d.ts +0 -1
  76. package/common/utils/index.d.ts +0 -12
  77. package/entities/index.d.ts +0 -4
  78. package/enums/index.d.ts +0 -6
  79. package/index.d.ts +0 -12
  80. package/utils/index.d.ts +0 -2
  81. package/world/index.d.ts +0 -4
  82. /package/{game/index.d.ts → common/types.js} +0 -0
@@ -1,4 +1,4 @@
1
- import type { VehicleSeat } from "redm/enums";
1
+ import type { VehicleSeat } from "redm/enums/VehicleSeat";
2
2
  import { BaseEntity } from "./BaseEntity";
3
3
  export declare class Vehicle extends BaseEntity {
4
4
  constructor(handle: number);
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { _N } from "redm/utils/Native";
4
+ import { BaseEntity } from "./BaseEntity";
5
+ class Vehicle extends BaseEntity {
6
+ static {
7
+ __name(this, "Vehicle");
8
+ }
9
+ constructor(handle) {
10
+ super(handle);
11
+ }
12
+ /**
13
+ *
14
+ * @param seatIndex the seat index to check
15
+ * @returns true of the specified seat is free on the mount
16
+ */
17
+ isSeatFree(seatIndex) {
18
+ return _N("0xAAB0FE202E9FC9F0", this.Handle, seatIndex, Citizen.resultAsInteger());
19
+ }
20
+ }
21
+ export {
22
+ Vehicle
23
+ };
@@ -0,0 +1,56 @@
1
+ var ePedAttribute = /* @__PURE__ */ ((ePedAttribute2) => {
2
+ ePedAttribute2[ePedAttribute2["Health"] = 0] = "Health";
3
+ ePedAttribute2[ePedAttribute2["Stamina"] = 1] = "Stamina";
4
+ ePedAttribute2[ePedAttribute2["SpecialAbility"] = 2] = "SpecialAbility";
5
+ ePedAttribute2[ePedAttribute2["Courage"] = 3] = "Courage";
6
+ ePedAttribute2[ePedAttribute2["Agility"] = 4] = "Agility";
7
+ ePedAttribute2[ePedAttribute2["Speed"] = 5] = "Speed";
8
+ ePedAttribute2[ePedAttribute2["Acceleration"] = 6] = "Acceleration";
9
+ ePedAttribute2[ePedAttribute2["Bonding"] = 7] = "Bonding";
10
+ ePedAttribute2[ePedAttribute2["Hunger"] = 8] = "Hunger";
11
+ ePedAttribute2[ePedAttribute2["Fatigued"] = 9] = "Fatigued";
12
+ ePedAttribute2[ePedAttribute2["Inebriated"] = 10] = "Inebriated";
13
+ ePedAttribute2[ePedAttribute2["Poisoned"] = 11] = "Poisoned";
14
+ ePedAttribute2[ePedAttribute2["BodyHeat"] = 12] = "BodyHeat";
15
+ ePedAttribute2[ePedAttribute2["BodyWeight"] = 13] = "BodyWeight";
16
+ ePedAttribute2[ePedAttribute2["Overfed"] = 14] = "Overfed";
17
+ ePedAttribute2[ePedAttribute2["Sickness"] = 15] = "Sickness";
18
+ ePedAttribute2[ePedAttribute2["Dirtiness"] = 16] = "Dirtiness";
19
+ ePedAttribute2[ePedAttribute2["DirtinessHat"] = 17] = "DirtinessHat";
20
+ ePedAttribute2[ePedAttribute2["Strength"] = 18] = "Strength";
21
+ ePedAttribute2[ePedAttribute2["Grit"] = 19] = "Grit";
22
+ ePedAttribute2[ePedAttribute2["Instinct"] = 20] = "Instinct";
23
+ ePedAttribute2[ePedAttribute2["Unruliness"] = 21] = "Unruliness";
24
+ ePedAttribute2[ePedAttribute2["DirtinessSkin"] = 22] = "DirtinessSkin";
25
+ return ePedAttribute2;
26
+ })(ePedAttribute || {});
27
+ var eAttributeCore = /* @__PURE__ */ ((eAttributeCore2) => {
28
+ eAttributeCore2[eAttributeCore2["Health"] = 0] = "Health";
29
+ eAttributeCore2[eAttributeCore2["Stamina"] = 1] = "Stamina";
30
+ eAttributeCore2[eAttributeCore2["Deadeye"] = 2] = "Deadeye";
31
+ return eAttributeCore2;
32
+ })(eAttributeCore || {});
33
+ var eHudStatusEffect = /* @__PURE__ */ ((eHudStatusEffect2) => {
34
+ eHudStatusEffect2[eHudStatusEffect2["None"] = 0] = "None";
35
+ eHudStatusEffect2[eHudStatusEffect2["Cold"] = 1] = "Cold";
36
+ eHudStatusEffect2[eHudStatusEffect2["Hot"] = 2] = "Hot";
37
+ eHudStatusEffect2[eHudStatusEffect2["Overfed"] = 3] = "Overfed";
38
+ eHudStatusEffect2[eHudStatusEffect2["Dirty"] = 4] = "Dirty";
39
+ eHudStatusEffect2[eHudStatusEffect2["SnakeVenom"] = 5] = "SnakeVenom";
40
+ eHudStatusEffect2[eHudStatusEffect2["ArrowWounded"] = 6] = "ArrowWounded";
41
+ eHudStatusEffect2[eHudStatusEffect2["ArrowDrained"] = 7] = "ArrowDrained";
42
+ eHudStatusEffect2[eHudStatusEffect2["ArrowDisoriented"] = 8] = "ArrowDisoriented";
43
+ eHudStatusEffect2[eHudStatusEffect2["ArrowTracked"] = 9] = "ArrowTracked";
44
+ eHudStatusEffect2[eHudStatusEffect2["ArrowConfusion"] = 10] = "ArrowConfusion";
45
+ eHudStatusEffect2[eHudStatusEffect2["Underweight"] = 11] = "Underweight";
46
+ eHudStatusEffect2[eHudStatusEffect2["Overweight"] = 12] = "Overweight";
47
+ eHudStatusEffect2[eHudStatusEffect2["Sick1"] = 13] = "Sick1";
48
+ eHudStatusEffect2[eHudStatusEffect2["Sick2"] = 14] = "Sick2";
49
+ eHudStatusEffect2[eHudStatusEffect2["PredatorInvulnerable"] = 15] = "PredatorInvulnerable";
50
+ return eHudStatusEffect2;
51
+ })(eHudStatusEffect || {});
52
+ export {
53
+ eAttributeCore,
54
+ eHudStatusEffect,
55
+ ePedAttribute
56
+ };
@@ -0,0 +1,20 @@
1
+ var ForceType = /* @__PURE__ */ ((ForceType2) => {
2
+ ForceType2[ForceType2["MinForce"] = 0] = "MinForce";
3
+ ForceType2[ForceType2["MaxForceRot"] = 1] = "MaxForceRot";
4
+ ForceType2[ForceType2["MinForce2"] = 2] = "MinForce2";
5
+ ForceType2[ForceType2["MaxForceRot2"] = 3] = "MaxForceRot2";
6
+ ForceType2[ForceType2["ForceNoRot"] = 4] = "ForceNoRot";
7
+ ForceType2[ForceType2["ForceRotPlusForce"] = 5] = "ForceRotPlusForce";
8
+ return ForceType2;
9
+ })(ForceType || {});
10
+ var EntityType = /* @__PURE__ */ ((EntityType2) => {
11
+ EntityType2[EntityType2["Invalid"] = 0] = "Invalid";
12
+ EntityType2[EntityType2["Ped"] = 1] = "Ped";
13
+ EntityType2[EntityType2["Vehicle"] = 2] = "Vehicle";
14
+ EntityType2[EntityType2["Object"] = 3] = "Object";
15
+ return EntityType2;
16
+ })(EntityType || {});
17
+ export {
18
+ EntityType,
19
+ ForceType
20
+ };