@nativewrappers/fivem 0.0.83 → 0.0.84

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 (85) hide show
  1. package/Events.js +1 -1
  2. package/models/BaseEntity.d.ts +5 -5
  3. package/models/BaseEntity.js +3 -3
  4. package/models/Ped.d.ts +10 -10
  5. package/models/Ped.js +6 -6
  6. package/models/PedBone.d.ts +1 -1
  7. package/models/Player.d.ts +1 -1
  8. package/models/Player.js +2 -2
  9. package/models/Vehicle.d.ts +4 -4
  10. package/models/Vehicle.js +3 -3
  11. package/models/VehicleDoor.d.ts +1 -1
  12. package/models/VehicleDoorCollection.d.ts +1 -1
  13. package/models/VehicleDoorCollection.js +1 -1
  14. package/models/VehicleMod.d.ts +1 -1
  15. package/models/VehicleModCollection.d.ts +1 -1
  16. package/models/VehicleModCollection.js +1 -1
  17. package/models/VehicleToggleMod.d.ts +1 -1
  18. package/models/VehicleWheelCollection.d.ts +1 -1
  19. package/models/VehicleWheelCollection.js +1 -1
  20. package/models/VehicleWindow.d.ts +1 -1
  21. package/models/VehicleWindowCollection.d.ts +1 -1
  22. package/models/VehicleWindowCollection.js +1 -1
  23. package/package.json +1 -1
  24. package/ui/Container.d.ts +2 -2
  25. package/ui/Container.js +1 -1
  26. package/ui/Effects.d.ts +1 -1
  27. package/ui/Hud.d.ts +3 -3
  28. package/ui/Hud.js +1 -1
  29. package/ui/LoadingPrompt.d.ts +1 -1
  30. package/ui/LoadingPrompt.js +1 -1
  31. package/ui/Rectangle.d.ts +2 -2
  32. package/ui/Rectangle.js +2 -2
  33. package/ui/Screen.d.ts +3 -3
  34. package/ui/Screen.js +4 -4
  35. package/ui/Sprite.d.ts +2 -2
  36. package/ui/Sprite.js +2 -2
  37. package/ui/Text.d.ts +4 -4
  38. package/ui/Text.js +4 -4
  39. package/ui/Timerbar.js +3 -3
  40. package/ui/interfaces/IButton.d.ts +1 -1
  41. package/ui/interfaces/IDrawable.d.ts +2 -2
  42. package/ui/menu/Menu.d.ts +5 -5
  43. package/ui/menu/Menu.js +13 -13
  44. package/ui/menu/MenuSettings.d.ts +1 -1
  45. package/ui/menu/MenuSettings.js +2 -2
  46. package/ui/menu/items/UIMenuCheckboxItem.d.ts +2 -2
  47. package/ui/menu/items/UIMenuCheckboxItem.js +5 -5
  48. package/ui/menu/items/UIMenuItem.d.ts +7 -7
  49. package/ui/menu/items/UIMenuItem.js +11 -11
  50. package/ui/menu/items/UIMenuListItem.d.ts +1 -1
  51. package/ui/menu/items/UIMenuListItem.js +8 -8
  52. package/ui/menu/items/UIMenuSeparatorItem.js +1 -1
  53. package/ui/menu/items/UIMenuSliderItem.d.ts +2 -2
  54. package/ui/menu/items/UIMenuSliderItem.js +6 -6
  55. package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +2 -2
  56. package/ui/menu/items/panels/AbstractUIMenuPanel.js +2 -2
  57. package/ui/menu/items/panels/UIMenuColorPanel.d.ts +1 -1
  58. package/ui/menu/items/panels/UIMenuColorPanel.js +9 -9
  59. package/ui/menu/items/panels/UIMenuGridPanel.d.ts +2 -2
  60. package/ui/menu/items/panels/UIMenuGridPanel.js +6 -6
  61. package/ui/menu/items/panels/UIMenuPercentagePanel.d.ts +1 -1
  62. package/ui/menu/items/panels/UIMenuPercentagePanel.js +9 -9
  63. package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +1 -1
  64. package/ui/menu/items/panels/UIMenuStatisticsPanel.js +3 -3
  65. package/ui/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +2 -2
  66. package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +7 -7
  67. package/ui/menu/modules/ListItem.js +1 -1
  68. package/utils/String.d.ts +1 -1
  69. package/utils/String.js +3 -3
  70. package/weapon/DlcWeaponData.d.ts +1 -1
  71. package/weapon/Weapon.d.ts +5 -5
  72. package/weapon/Weapon.js +5 -5
  73. package/weapon/WeaponAsset.d.ts +1 -1
  74. package/weapon/WeaponAsset.js +1 -1
  75. package/weapon/WeaponCollection.d.ts +3 -3
  76. package/weapon/WeaponCollection.js +1 -1
  77. package/weapon/WeaponDisplayNameByHash.d.ts +1 -1
  78. package/weapon/WeaponDisplayNameByHash.js +1 -1
  79. package/weapon/WeaponHudStats.d.ts +1 -1
  80. package/weapon/WeaponHudStats.js +1 -1
  81. package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
  82. package/weaponComponent/WeaponComponent.d.ts +3 -3
  83. package/weaponComponent/WeaponComponentCollection.d.ts +2 -2
  84. package/weaponComponent/WeaponComponentHashesByWeaponHash.d.ts +1 -1
  85. package/weaponComponent/WeaponComponentHashesByWeaponHash.js +1 -1
package/Events.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Vector2, Vector3, Vector4 } from "./common/utils/Vector";
4
- import { ClassTypes } from "../common/utils/ClassTypes";
4
+ import { ClassTypes } from "./common/utils/ClassTypes";
5
5
  import { BaseEntity } from "./models/BaseEntity";
6
6
  import { Ped } from "./models/Ped";
7
7
  import { Player } from "./models/Player";
@@ -1,13 +1,13 @@
1
1
  import { ClassTypes } from "../common/utils/ClassTypes";
2
2
  import { Vector3 } from "../common/utils/Vector";
3
- import { ForceType } from "fivem/enums/ForceType";
4
- import type { MaterialHash } from "fivem/hashes/MaterialHash";
5
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
6
- import { Model } from "fivem/Model";
3
+ import { ForceType } from "../enums/ForceType";
4
+ import type { MaterialHash } from "../hashes/MaterialHash";
5
+ import type { WeaponHash } from "../hashes/WeaponHash";
6
+ import { Model } from "../Model";
7
7
  import type { EntityBone } from "./EntityBone";
8
8
  import { Blip } from "../Blip";
9
9
  import { EntityBoneCollection } from "./EntityBoneCollection";
10
- import { type StateBagChangeHandler } from "fivem/cfx";
10
+ import { type StateBagChangeHandler } from "../cfx";
11
11
  import { Quaternion } from "../common/utils/Quaternion";
12
12
  export declare class BaseEntity {
13
13
  static fromNetworkId(networkId: number): BaseEntity | null;
@@ -2,11 +2,11 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { ClassTypes } from "../common/utils/ClassTypes";
4
4
  import { Vector3 } from "../common/utils/Vector";
5
- import { ForceType } from "fivem/enums/ForceType";
6
- import { Model } from "fivem/Model";
5
+ import { ForceType } from "../enums/ForceType";
6
+ import { Model } from "../Model";
7
7
  import { Blip } from "../Blip";
8
8
  import { EntityBoneCollection } from "./EntityBoneCollection";
9
- import cfx from "fivem/cfx";
9
+ import cfx from "../cfx";
10
10
  import { Quaternion } from "../common/utils/Quaternion";
11
11
  class BaseEntity {
12
12
  static {
package/models/Ped.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  import { WeaponCollection } from "../weapon/WeaponCollection";
2
- import { ClassTypes } from "../../common/utils/ClassTypes";
2
+ import { ClassTypes } from "../common/utils/ClassTypes";
3
3
  import { BaseEntity } from "./BaseEntity";
4
4
  import { Vector3 } from "../common/utils/Vector";
5
- import type { DrivingStyle } from "fivem/enums/Driving";
6
- import type { FiringPattern } from "fivem/enums/FiringPattern";
7
- import { Gender } from "fivem/enums/Gender";
8
- import type { HelmetType } from "fivem/enums/HelmetType";
9
- import { RagdollType } from "fivem/enums/RagdollType";
10
- import { SpeechModifier } from "fivem/enums/SpeechModifier";
11
- import { VehicleSeat } from "fivem/enums/Vehicle";
12
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
13
- import { Tasks } from "fivem/Tasks";
5
+ import type { DrivingStyle } from "../enums/Driving";
6
+ import type { FiringPattern } from "../enums/FiringPattern";
7
+ import { Gender } from "../enums/Gender";
8
+ import type { HelmetType } from "../enums/HelmetType";
9
+ import { RagdollType } from "../enums/RagdollType";
10
+ import { SpeechModifier } from "../enums/SpeechModifier";
11
+ import { VehicleSeat } from "../enums/Vehicle";
12
+ import type { WeaponHash } from "../hashes/WeaponHash";
13
+ import { Tasks } from "../Tasks";
14
14
  import { PedBoneCollection } from "./PedBoneCollection";
15
15
  import { Vehicle } from "./Vehicle";
16
16
  import { Player } from "./Player";
package/models/Ped.js CHANGED
@@ -1,14 +1,14 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { WeaponCollection } from "../weapon/WeaponCollection";
4
- import { ClassTypes } from "../../common/utils/ClassTypes";
4
+ import { ClassTypes } from "../common/utils/ClassTypes";
5
5
  import { BaseEntity } from "./BaseEntity";
6
6
  import { Vector3 } from "../common/utils/Vector";
7
- import { Gender } from "fivem/enums/Gender";
8
- import { RagdollType } from "fivem/enums/RagdollType";
9
- import { SpeechModifier } from "fivem/enums/SpeechModifier";
10
- import { VehicleSeat } from "fivem/enums/Vehicle";
11
- import { Tasks } from "fivem/Tasks";
7
+ import { Gender } from "../enums/Gender";
8
+ import { RagdollType } from "../enums/RagdollType";
9
+ import { SpeechModifier } from "../enums/SpeechModifier";
10
+ import { VehicleSeat } from "../enums/Vehicle";
11
+ import { Tasks } from "../Tasks";
12
12
  import { PedBoneCollection } from "./PedBoneCollection";
13
13
  import { Vehicle } from "./Vehicle";
14
14
  import { Player } from "./Player";
@@ -1,4 +1,4 @@
1
- import type { Bone } from "fivem/enums/Bone";
1
+ import type { Bone } from "../enums/Bone";
2
2
  import { EntityBone } from "./EntityBone";
3
3
  import { Ped } from "./Ped";
4
4
  export declare class PedBone extends EntityBone {
@@ -1,6 +1,6 @@
1
1
  import { type StateBagChangeHandler } from "../cfx";
2
2
  import { Color } from "../common/utils/Color";
3
- import { Model } from "fivem/Model";
3
+ import { Model } from "../Model";
4
4
  import { BaseEntity } from "./BaseEntity";
5
5
  import { Ped } from "./Ped";
6
6
  export declare class Player {
package/models/Player.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import cfx from "../cfx";
4
- import { ClassTypes } from "../../common/utils/ClassTypes";
4
+ import { ClassTypes } from "../common/utils/ClassTypes";
5
5
  import { Color } from "../common/utils/Color";
6
- import { Model } from "fivem/Model";
6
+ import { Model } from "../Model";
7
7
  import { BaseEntity } from "./BaseEntity";
8
8
  import { Ped } from "./Ped";
9
9
  class Player {
@@ -1,8 +1,8 @@
1
1
  import { Vector3 } from "../common/utils/Vector";
2
- import type { RadioStation } from "fivem/enums/RadioStation";
3
- import { type VehicleClass, type VehicleLandingGearState, VehicleRoofState, type VehicleLockStatus, VehicleSeat } from "fivem/enums/Vehicle";
4
- import type { Model } from "fivem/Model";
5
- import { ClassTypes } from "../../common/utils/ClassTypes";
2
+ import type { RadioStation } from "../enums/RadioStation";
3
+ import { type VehicleClass, type VehicleLandingGearState, VehicleRoofState, type VehicleLockStatus, VehicleSeat } from "../enums/Vehicle";
4
+ import type { Model } from "../Model";
5
+ import { ClassTypes } from "../common/utils/ClassTypes";
6
6
  import { BaseEntity } from "./BaseEntity";
7
7
  import { Ped } from "./Ped";
8
8
  import { VehicleDoorCollection } from "./VehicleDoorCollection";
package/models/Vehicle.js CHANGED
@@ -4,9 +4,9 @@ import { Vector3 } from "../common/utils/Vector";
4
4
  import {
5
5
  VehicleRoofState,
6
6
  VehicleSeat
7
- } from "fivem/enums/Vehicle";
8
- import { Game } from "fivem/Game";
9
- import { ClassTypes } from "../../common/utils/ClassTypes";
7
+ } from "../enums/Vehicle";
8
+ import { Game } from "../Game";
9
+ import { ClassTypes } from "../common/utils/ClassTypes";
10
10
  import { BaseEntity } from "./BaseEntity";
11
11
  import { Ped } from "./Ped";
12
12
  import { VehicleDoorCollection } from "./VehicleDoorCollection";
@@ -1,4 +1,4 @@
1
- import type { VehicleDoorIndex } from "fivem/enums/Vehicle";
1
+ import type { VehicleDoorIndex } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  export declare class VehicleDoor {
4
4
  private _owner;
@@ -1,4 +1,4 @@
1
- import { VehicleDoorIndex } from "fivem/enums/Vehicle";
1
+ import { VehicleDoorIndex } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  import { VehicleDoor } from "./VehicleDoor";
4
4
  export declare class VehicleDoorCollection {
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { VehicleDoorIndex } from "fivem/enums/Vehicle";
3
+ import { VehicleDoorIndex } from "../enums/Vehicle";
4
4
  import { VehicleDoor } from "./VehicleDoor";
5
5
  class VehicleDoorCollection {
6
6
  static {
@@ -1,4 +1,4 @@
1
- import type { VehicleModType } from "fivem/enums/Vehicle";
1
+ import type { VehicleModType } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  export declare class VehicleMod {
4
4
  private _owner;
@@ -1,5 +1,5 @@
1
1
  import { Color } from "../common/utils/Color";
2
- import { VehicleModType, type VehicleToggleModType, type VehicleWheelType, type VehicleWindowTint, type VehicleColor, type VehiclePaintType, VehicleNeonLight, type LicensePlateStyle, type LicensePlateType } from "fivem/enums/Vehicle";
2
+ import { VehicleModType, type VehicleToggleModType, type VehicleWheelType, type VehicleWindowTint, type VehicleColor, type VehiclePaintType, VehicleNeonLight, type LicensePlateStyle, type LicensePlateType } from "../enums/Vehicle";
3
3
  import type { Vehicle } from "./Vehicle";
4
4
  import { VehicleMod } from "./VehicleMod";
5
5
  import { VehicleToggleMod } from "./VehicleToggleMod";
@@ -4,7 +4,7 @@ import { Color } from "../common/utils/Color";
4
4
  import {
5
5
  VehicleModType,
6
6
  VehicleNeonLight
7
- } from "fivem/enums/Vehicle";
7
+ } from "../enums/Vehicle";
8
8
  import { VehicleMod } from "./VehicleMod";
9
9
  import { VehicleToggleMod } from "./VehicleToggleMod";
10
10
  class VehicleModCollection {
@@ -1,4 +1,4 @@
1
- import type { VehicleToggleModType } from "fivem/enums/Vehicle";
1
+ import type { VehicleToggleModType } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  export declare class VehicleToggleMod {
4
4
  private _owner;
@@ -1,4 +1,4 @@
1
- import { VehicleWheelIndex } from "fivem/enums/Vehicle";
1
+ import { VehicleWheelIndex } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  import { VehicleWheel } from "./VehicleWheel";
4
4
  export declare class VehicleWheelCollection {
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { VehicleWheelIndex } from "fivem/enums/Vehicle";
3
+ import { VehicleWheelIndex } from "../enums/Vehicle";
4
4
  import { VehicleWheel } from "./VehicleWheel";
5
5
  class VehicleWheelCollection {
6
6
  static {
@@ -1,4 +1,4 @@
1
- import type { VehicleWindowIndex } from "fivem/enums/Vehicle";
1
+ import type { VehicleWindowIndex } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  export declare class VehicleWindow {
4
4
  private _owner;
@@ -1,4 +1,4 @@
1
- import { VehicleWindowIndex } from "fivem/enums/Vehicle";
1
+ import { VehicleWindowIndex } from "../enums/Vehicle";
2
2
  import type { Vehicle } from "./Vehicle";
3
3
  import { VehicleWindow } from "./VehicleWindow";
4
4
  export declare class VehicleWindowCollection {
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { VehicleWindowIndex } from "fivem/enums/Vehicle";
3
+ import { VehicleWindowIndex } from "../enums/Vehicle";
4
4
  import { VehicleWindow } from "./VehicleWindow";
5
5
  class VehicleWindowCollection {
6
6
  static {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "version": "0.0.83",
11
+ "version": "0.0.84",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/nativewrappers/nativewrappers.git"
package/ui/Container.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Color } from "../common/utils/Color";
2
- import type { Point } from "fivem/utils/Point";
3
- import { Size } from "fivem/utils/Size";
2
+ import type { Point } from "../utils/Point";
3
+ import { Size } from "../utils/Size";
4
4
  import type { IDrawable } from "./interfaces/IDrawable";
5
5
  export declare class Container implements IDrawable {
6
6
  pos: Point;
package/ui/Container.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Size } from "fivem/utils/Size";
3
+ import { Size } from "../utils/Size";
4
4
  import { Screen } from "./Screen";
5
5
  class Container {
6
6
  static {
package/ui/Effects.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ScreenEffect } from "fivem/enums/ScreenEffect";
1
+ import type { ScreenEffect } from "../enums/ScreenEffect";
2
2
  export declare abstract class Effects {
3
3
  static start(effectName: ScreenEffect, duration?: number, looped?: boolean): void;
4
4
  static stop(screenEffect?: ScreenEffect): void;
package/ui/Hud.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { CursorSprite } from "fivem/enums/CursorSprite";
2
- import type { HudComponent } from "fivem/enums/HudComponent";
3
- import type { Point } from "fivem/utils/Point";
1
+ import { CursorSprite } from "../enums/CursorSprite";
2
+ import type { HudComponent } from "../enums/HudComponent";
3
+ import type { Point } from "../utils/Point";
4
4
  export declare abstract class Hud {
5
5
  static isComponentActive(component: HudComponent): boolean;
6
6
  static showComponentThisFrame(component: HudComponent): void;
package/ui/Hud.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { CursorSprite } from "fivem/enums/CursorSprite";
3
+ import { CursorSprite } from "../enums/CursorSprite";
4
4
  class Hud {
5
5
  static {
6
6
  __name(this, "Hud");
@@ -1,4 +1,4 @@
1
- import { LoadingSpinnerType } from "fivem/enums/LoadingSpinnerType";
1
+ import { LoadingSpinnerType } from "../enums/LoadingSpinnerType";
2
2
  /**
3
3
  * Show and hide loading prompt on the bottom right of the screen.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { LoadingSpinnerType } from "fivem/enums/LoadingSpinnerType";
3
+ import { LoadingSpinnerType } from "../enums/LoadingSpinnerType";
4
4
  class LoadingPrompt {
5
5
  static {
6
6
  __name(this, "LoadingPrompt");
package/ui/Rectangle.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Color } from "../common/utils/Color";
2
- import { Point } from "fivem/utils/Point";
3
- import { Size } from "fivem/utils/Size";
2
+ import { Point } from "../utils/Point";
3
+ import { Size } from "../utils/Size";
4
4
  import type { IDrawable } from "./interfaces/IDrawable";
5
5
  export declare class Rectangle implements IDrawable {
6
6
  pos: Point;
package/ui/Rectangle.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Point } from "fivem/utils/Point";
4
- import { Size } from "fivem/utils/Size";
3
+ import { Point } from "../utils/Point";
4
+ import { Size } from "../utils/Size";
5
5
  import { Screen } from "./Screen";
6
6
  class Rectangle {
7
7
  static {
package/ui/Screen.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Color } from "../common/utils/Color";
2
2
  import type { Vector3 } from "../common/utils/Vector";
3
- import { HudColor } from "fivem/enums/HudColor";
4
- import { NotificationType } from "fivem/enums/NotificationType";
5
- import { Size } from "fivem/utils/Size";
3
+ import { HudColor } from "../enums/HudColor";
4
+ import { NotificationType } from "../enums/NotificationType";
5
+ import { Size } from "../utils/Size";
6
6
  import { Notification } from "./Notification";
7
7
  export declare abstract class Screen {
8
8
  static get Resolution(): Size;
package/ui/Screen.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../common/utils/Color";
4
- import { HudColor } from "fivem/enums/HudColor";
5
- import { NotificationType } from "fivem/enums/NotificationType";
6
- import { Size } from "fivem/utils/Size";
7
- import { _String } from "fivem/utils/String";
4
+ import { HudColor } from "../enums/HudColor";
5
+ import { NotificationType } from "../enums/NotificationType";
6
+ import { Size } from "../utils/Size";
7
+ import { _String } from "../utils/String";
8
8
  import { Audio } from "../Audio";
9
9
  import { Notification } from "./Notification";
10
10
  class Screen {
package/ui/Sprite.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Color } from "../common/utils/Color";
2
- import { Point } from "fivem/utils/Point";
3
- import { Size } from "fivem/utils/Size";
2
+ import { Point } from "../utils/Point";
3
+ import { Size } from "../utils/Size";
4
4
  export declare class Sprite {
5
5
  textureName: string;
6
6
  pos: Point;
package/ui/Sprite.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../common/utils/Color";
4
- import { Point } from "fivem/utils/Point";
5
- import { Size } from "fivem/utils/Size";
4
+ import { Point } from "../utils/Point";
5
+ import { Size } from "../utils/Size";
6
6
  import { Screen } from "./Screen";
7
7
  class Sprite {
8
8
  static {
package/ui/Text.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Color } from "../common/utils/Color";
2
- import { Alignment } from "fivem/enums/Alignment";
3
- import { Font } from "fivem/enums/Font";
4
- import { Point } from "fivem/utils/Point";
5
- import { Size } from "fivem/utils/Size";
2
+ import { Alignment } from "../enums/Alignment";
3
+ import { Font } from "../enums/Font";
4
+ import { Point } from "../utils/Point";
5
+ import { Size } from "../utils/Size";
6
6
  import type { IDrawable } from "./interfaces/IDrawable";
7
7
  export declare class Text implements IDrawable {
8
8
  static draw(caption: string, pos: Point, scale?: number, color?: Color, font?: Font, alignment?: Alignment, dropShadow?: boolean, outline?: boolean, wordWrap?: Size, resolution?: Size): void;
package/ui/Text.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../common/utils/Color";
4
- import { Alignment } from "fivem/enums/Alignment";
5
- import { Font } from "fivem/enums/Font";
6
- import { Point } from "fivem/utils/Point";
7
- import { Size } from "fivem/utils/Size";
4
+ import { Alignment } from "../enums/Alignment";
5
+ import { Font } from "../enums/Font";
6
+ import { Point } from "../utils/Point";
7
+ import { Size } from "../utils/Size";
8
8
  import { Screen } from "./Screen";
9
9
  class Text {
10
10
  static {
package/ui/Timerbar.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../common/utils/Color";
4
- import { HudComponent } from "fivem/enums/HudComponent";
5
- import { Point } from "fivem/utils/Point";
6
- import { Size } from "fivem/utils/Size";
4
+ import { HudComponent } from "../enums/HudComponent";
5
+ import { Point } from "../utils/Point";
6
+ import { Size } from "../utils/Size";
7
7
  import { Hud } from "./Hud";
8
8
  import { LoadingPrompt } from "./LoadingPrompt";
9
9
  import { Screen } from "./Screen";
@@ -1,4 +1,4 @@
1
- import type { Control } from "fivem/enums/Control";
1
+ import type { Control } from "../../enums/Control";
2
2
  export interface IButton {
3
3
  controls: Control[];
4
4
  label: string;
@@ -1,6 +1,6 @@
1
1
  import type { Color } from "../../common/utils/Color";
2
- import type { Point } from "fivem/utils/Point";
3
- import type { Size } from "fivem/utils/Size";
2
+ import type { Point } from "../../utils/Point";
3
+ import type { Size } from "../../utils/Size";
4
4
  export interface IDrawable {
5
5
  pos: Point;
6
6
  size?: Size;
package/ui/menu/Menu.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Color } from "../../common/utils/Color";
2
- import { Font } from "fivem/enums/Font";
3
- import { MenuAlignment } from "fivem/enums/MenuAlignment";
4
- import { LiteEvent } from "fivem/utils/LiteEvent";
5
- import { Point } from "fivem/utils/Point";
6
- import { Size } from "fivem/utils/Size";
2
+ import { Font } from "../../enums/Font";
3
+ import { MenuAlignment } from "../../enums/MenuAlignment";
4
+ import { LiteEvent } from "../../utils/LiteEvent";
5
+ import { Point } from "../../utils/Point";
6
+ import { Size } from "../../utils/Size";
7
7
  import { UIMenuItem } from "./items/UIMenuItem";
8
8
  import { MenuControls } from "./MenuControls";
9
9
  import { MenuSettings } from "./MenuSettings";
package/ui/menu/Menu.js CHANGED
@@ -1,19 +1,19 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../common/utils/Color";
4
- import { Audio } from "fivem/Audio";
5
- import { Alignment } from "fivem/enums/Alignment";
6
- import { Control } from "fivem/enums/Control";
7
- import { CursorSprite } from "fivem/enums/CursorSprite";
8
- import { Font } from "fivem/enums/Font";
9
- import { InputMode } from "fivem/enums/InputMode";
10
- import { MenuAlignment } from "fivem/enums/MenuAlignment";
11
- import { Game } from "fivem/Game";
12
- import { GameplayCamera } from "fivem/GameplayCamera";
13
- import { Crypto } from "fivem/utils/Crypto";
14
- import { LiteEvent } from "fivem/utils/LiteEvent";
15
- import { Point } from "fivem/utils/Point";
16
- import { Size } from "fivem/utils/Size";
4
+ import { Audio } from "../../Audio";
5
+ import { Alignment } from "../../enums/Alignment";
6
+ import { Control } from "../../enums/Control";
7
+ import { CursorSprite } from "../../enums/CursorSprite";
8
+ import { Font } from "../../enums/Font";
9
+ import { InputMode } from "../../enums/InputMode";
10
+ import { MenuAlignment } from "../../enums/MenuAlignment";
11
+ import { Game } from "../../Game";
12
+ import { GameplayCamera } from "../../GameplayCamera";
13
+ import { Crypto } from "../../utils/Crypto";
14
+ import { LiteEvent } from "../../utils/LiteEvent";
15
+ import { Point } from "../../utils/Point";
16
+ import { Size } from "../../utils/Size";
17
17
  import { Container } from "../Container";
18
18
  import { Hud } from "../Hud";
19
19
  import { Rectangle } from "../Rectangle";
@@ -1,4 +1,4 @@
1
- import { Control } from "fivem/enums/Control";
1
+ import { Control } from "../../enums/Control";
2
2
  export declare class MenuSettings {
3
3
  scaleWithSafezone: boolean;
4
4
  resetCursorOnOpen: boolean;
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Control } from "fivem/enums/Control";
4
- import { InputMode } from "fivem/enums/InputMode";
3
+ import { Control } from "../../enums/Control";
4
+ import { InputMode } from "../../enums/InputMode";
5
5
  class MenuSettings {
6
6
  static {
7
7
  __name(this, "MenuSettings");
@@ -1,5 +1,5 @@
1
- import { CheckboxStyle } from "fivem/enums/CheckboxStyle";
2
- import { LiteEvent } from "fivem/utils/LiteEvent";
1
+ import { CheckboxStyle } from "../../../enums/CheckboxStyle";
2
+ import { LiteEvent } from "../../../utils/LiteEvent";
3
3
  import { UIMenuItem } from "./UIMenuItem";
4
4
  export declare class UIMenuCheckboxItem extends UIMenuItem {
5
5
  readonly checkboxChanged: LiteEvent;
@@ -1,11 +1,11 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../common/utils/Color";
4
- import { CheckboxStyle } from "fivem/enums/CheckboxStyle";
5
- import { Sprite } from "fivem/ui/Sprite";
6
- import { LiteEvent } from "fivem/utils/LiteEvent";
7
- import { Point } from "fivem/utils/Point";
8
- import { Size } from "fivem/utils/Size";
4
+ import { CheckboxStyle } from "../../../enums/CheckboxStyle";
5
+ import { Sprite } from "../../../ui/Sprite";
6
+ import { LiteEvent } from "../../../utils/LiteEvent";
7
+ import { Point } from "../../../utils/Point";
8
+ import { Size } from "../../../utils/Size";
9
9
  import { Menu } from "../Menu";
10
10
  import { UIMenuItem } from "./UIMenuItem";
11
11
  class UIMenuCheckboxItem extends UIMenuItem {
@@ -1,11 +1,11 @@
1
1
  import { Color } from "../../../common/utils/Color";
2
- import { BadgeStyle } from "fivem/enums/BadgeStyle";
3
- import { Rectangle } from "fivem/ui/Rectangle";
4
- import { Sprite } from "fivem/ui/Sprite";
5
- import { Text } from "fivem/ui/Text";
6
- import { LiteEvent } from "fivem/utils/LiteEvent";
7
- import { Point } from "fivem/utils/Point";
8
- import { Size } from "fivem/utils/Size";
2
+ import { BadgeStyle } from "../../../enums/BadgeStyle";
3
+ import { Rectangle } from "../../../ui/Rectangle";
4
+ import { Sprite } from "../../../ui/Sprite";
5
+ import { Text } from "../../../ui/Text";
6
+ import { LiteEvent } from "../../../utils/LiteEvent";
7
+ import { Point } from "../../../utils/Point";
8
+ import { Size } from "../../../utils/Size";
9
9
  import { Menu } from "../Menu";
10
10
  import type { AbstractUIMenuPanel } from "./panels/AbstractUIMenuPanel";
11
11
  export declare class UIMenuItem {
@@ -1,17 +1,17 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../common/utils/Color";
4
- import { Alignment } from "fivem/enums/Alignment";
5
- import { BadgeStyle } from "fivem/enums/BadgeStyle";
6
- import { Font } from "fivem/enums/Font";
7
- import { Rectangle } from "fivem/ui/Rectangle";
8
- import { Sprite } from "fivem/ui/Sprite";
9
- import { Text } from "fivem/ui/Text";
10
- import { Crypto } from "fivem/utils/Crypto";
11
- import { LiteEvent } from "fivem/utils/LiteEvent";
12
- import { Point } from "fivem/utils/Point";
13
- import { Size } from "fivem/utils/Size";
14
- import { _String } from "fivem/utils/String";
4
+ import { Alignment } from "../../../enums/Alignment";
5
+ import { BadgeStyle } from "../../../enums/BadgeStyle";
6
+ import { Font } from "../../../enums/Font";
7
+ import { Rectangle } from "../../../ui/Rectangle";
8
+ import { Sprite } from "../../../ui/Sprite";
9
+ import { Text } from "../../../ui/Text";
10
+ import { Crypto } from "../../../utils/Crypto";
11
+ import { LiteEvent } from "../../../utils/LiteEvent";
12
+ import { Point } from "../../../utils/Point";
13
+ import { Size } from "../../../utils/Size";
14
+ import { _String } from "../../../utils/String";
15
15
  import { Menu } from "../Menu";
16
16
  class UIMenuItem {
17
17
  static {
@@ -1,4 +1,4 @@
1
- import { LiteEvent } from "fivem/utils/LiteEvent";
1
+ import { LiteEvent } from "../../../utils/LiteEvent";
2
2
  import type { ListItem } from "../modules/ListItem";
3
3
  import { UIMenuItem } from "./UIMenuItem";
4
4
  export declare class UIMenuListItem extends UIMenuItem {
@@ -1,14 +1,14 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../common/utils/Color";
4
- import { Alignment } from "fivem/enums/Alignment";
5
- import { Font } from "fivem/enums/Font";
6
- import { Sprite } from "fivem/ui/Sprite";
7
- import { Text } from "fivem/ui/Text";
8
- import { LiteEvent } from "fivem/utils/LiteEvent";
9
- import { Point } from "fivem/utils/Point";
10
- import { Size } from "fivem/utils/Size";
11
- import { _String } from "fivem/utils/String";
4
+ import { Alignment } from "../../../enums/Alignment";
5
+ import { Font } from "../../../enums/Font";
6
+ import { Sprite } from "../../../ui/Sprite";
7
+ import { Text } from "../../../ui/Text";
8
+ import { LiteEvent } from "../../../utils/LiteEvent";
9
+ import { Point } from "../../../utils/Point";
10
+ import { Size } from "../../../utils/Size";
11
+ import { _String } from "../../../utils/String";
12
12
  import { Menu } from "../Menu";
13
13
  import { UIMenuItem } from "./UIMenuItem";
14
14
  class UIMenuListItem extends UIMenuItem {
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Alignment } from "fivem/enums/Alignment";
3
+ import { Alignment } from "../../../enums/Alignment";
4
4
  import { Menu } from "../Menu";
5
5
  import { UIMenuItem } from "./UIMenuItem";
6
6
  class UIMenuSeparatorItem extends UIMenuItem {
@@ -1,6 +1,6 @@
1
1
  import { Color } from "../../../common/utils/Color";
2
- import { BadgeStyle } from "fivem/enums/BadgeStyle";
3
- import { LiteEvent } from "fivem/utils/LiteEvent";
2
+ import { BadgeStyle } from "../../../enums/BadgeStyle";
3
+ import { LiteEvent } from "../../../utils/LiteEvent";
4
4
  import { UIMenuItem } from "./UIMenuItem";
5
5
  export declare class UIMenuSliderItem extends UIMenuItem {
6
6
  readonly sliderChanged: LiteEvent;
@@ -1,12 +1,12 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../common/utils/Color";
4
- import { BadgeStyle } from "fivem/enums/BadgeStyle";
5
- import { Rectangle } from "fivem/ui/Rectangle";
6
- import { Sprite } from "fivem/ui/Sprite";
7
- import { LiteEvent } from "fivem/utils/LiteEvent";
8
- import { Point } from "fivem/utils/Point";
9
- import { Size } from "fivem/utils/Size";
4
+ import { BadgeStyle } from "../../../enums/BadgeStyle";
5
+ import { Rectangle } from "../../../ui/Rectangle";
6
+ import { Sprite } from "../../../ui/Sprite";
7
+ import { LiteEvent } from "../../../utils/LiteEvent";
8
+ import { Point } from "../../../utils/Point";
9
+ import { Size } from "../../../utils/Size";
10
10
  import { Menu } from "../Menu";
11
11
  import { UIMenuItem } from "./UIMenuItem";
12
12
  class UIMenuSliderItem extends UIMenuItem {
@@ -1,5 +1,5 @@
1
- import type { Rectangle } from "fivem/ui/Rectangle";
2
- import { Sprite } from "fivem/ui/Sprite";
1
+ import type { Rectangle } from "../../../../ui/Rectangle";
2
+ import { Sprite } from "../../../../ui/Sprite";
3
3
  import { Menu } from "../../Menu";
4
4
  import type { UIMenuItem } from "../UIMenuItem";
5
5
  export declare abstract class AbstractUIMenuPanel {
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Sprite } from "fivem/ui/Sprite";
4
- import { Crypto } from "fivem/utils/Crypto";
3
+ import { Sprite } from "../../../../ui/Sprite";
4
+ import { Crypto } from "../../../../utils/Crypto";
5
5
  import { Menu } from "../../Menu";
6
6
  class AbstractUIMenuPanel {
7
7
  static {
@@ -1,5 +1,5 @@
1
1
  import { Color } from "../../../../common/utils/Color";
2
- import { Sprite } from "fivem/ui/Sprite";
2
+ import { Sprite } from "../../../../ui/Sprite";
3
3
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
4
4
  export declare class UIMenuColorPanel extends AbstractUIMenuPanel {
5
5
  protected readonly background: Sprite;
@@ -1,15 +1,15 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../../common/utils/Color";
4
- import { Alignment } from "fivem/enums/Alignment";
5
- import { Control } from "fivem/enums/Control";
6
- import { Font } from "fivem/enums/Font";
7
- import { Game } from "fivem/Game";
8
- import { Rectangle } from "fivem/ui/Rectangle";
9
- import { Sprite } from "fivem/ui/Sprite";
10
- import { Text } from "fivem/ui/Text";
11
- import { Point } from "fivem/utils/Point";
12
- import { Size } from "fivem/utils/Size";
4
+ import { Alignment } from "../../../../enums/Alignment";
5
+ import { Control } from "../../../../enums/Control";
6
+ import { Font } from "../../../../enums/Font";
7
+ import { Game } from "../../../../Game";
8
+ import { Rectangle } from "../../../../ui/Rectangle";
9
+ import { Sprite } from "../../../../ui/Sprite";
10
+ import { Text } from "../../../../ui/Text";
11
+ import { Point } from "../../../../utils/Point";
12
+ import { Size } from "../../../../utils/Size";
13
13
  import { Menu } from "../../Menu";
14
14
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
15
15
  class UIMenuColorPanel extends AbstractUIMenuPanel {
@@ -1,5 +1,5 @@
1
- import { Sprite } from "fivem/ui/Sprite";
2
- import { Point } from "fivem/utils/Point";
1
+ import { Sprite } from "../../../../ui/Sprite";
2
+ import { Point } from "../../../../utils/Point";
3
3
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
4
4
  export declare class UIMenuGridPanel extends AbstractUIMenuPanel {
5
5
  protected readonly background: Sprite;
@@ -1,11 +1,11 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Control } from "fivem/enums/Control";
4
- import { Game } from "fivem/Game";
5
- import { Sprite } from "fivem/ui/Sprite";
6
- import { Text } from "fivem/ui/Text";
7
- import { Point } from "fivem/utils/Point";
8
- import { Size } from "fivem/utils/Size";
3
+ import { Control } from "../../../../enums/Control";
4
+ import { Game } from "../../../../Game";
5
+ import { Sprite } from "../../../../ui/Sprite";
6
+ import { Text } from "../../../../ui/Text";
7
+ import { Point } from "../../../../utils/Point";
8
+ import { Size } from "../../../../utils/Size";
9
9
  import { Menu } from "../../Menu";
10
10
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
11
11
  import { Delay } from "../../../../common/utils/Delay";
@@ -1,4 +1,4 @@
1
- import { Sprite } from "fivem/ui/Sprite";
1
+ import { Sprite } from "../../../../ui/Sprite";
2
2
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
3
3
  export declare class UIMenuPercentagePanel extends AbstractUIMenuPanel {
4
4
  protected readonly background: Sprite;
@@ -1,15 +1,15 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../../common/utils/Color";
4
- import { Alignment } from "fivem/enums/Alignment";
5
- import { Control } from "fivem/enums/Control";
6
- import { Font } from "fivem/enums/Font";
7
- import { Game } from "fivem/Game";
8
- import { Rectangle } from "fivem/ui/Rectangle";
9
- import { Sprite } from "fivem/ui/Sprite";
10
- import { Text } from "fivem/ui/Text";
11
- import { Point } from "fivem/utils/Point";
12
- import { Size } from "fivem/utils/Size";
4
+ import { Alignment } from "../../../../enums/Alignment";
5
+ import { Control } from "../../../../enums/Control";
6
+ import { Font } from "../../../../enums/Font";
7
+ import { Game } from "../../../../Game";
8
+ import { Rectangle } from "../../../../ui/Rectangle";
9
+ import { Sprite } from "../../../../ui/Sprite";
10
+ import { Text } from "../../../../ui/Text";
11
+ import { Point } from "../../../../utils/Point";
12
+ import { Size } from "../../../../utils/Size";
13
13
  import { Menu } from "../../Menu";
14
14
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
15
15
  import { Delay } from "../../../../common/utils/Delay";
@@ -1,4 +1,4 @@
1
- import { Rectangle } from "fivem/ui/Rectangle";
1
+ import { Rectangle } from "../../../../ui/Rectangle";
2
2
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
3
3
  import type { UIMenuStatisticsPanelItem } from "./UIMenuStatisticsPanelItem";
4
4
  export declare class UIMenuStatisticsPanel extends AbstractUIMenuPanel {
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../../common/utils/Color";
4
- import { Rectangle } from "fivem/ui/Rectangle";
5
- import { Point } from "fivem/utils/Point";
6
- import { Size } from "fivem/utils/Size";
4
+ import { Rectangle } from "../../../../ui/Rectangle";
5
+ import { Point } from "../../../../utils/Point";
6
+ import { Size } from "../../../../utils/Size";
7
7
  import { Menu } from "../../Menu";
8
8
  import { AbstractUIMenuPanel } from "./AbstractUIMenuPanel";
9
9
  class UIMenuStatisticsPanel extends AbstractUIMenuPanel {
@@ -1,5 +1,5 @@
1
- import { Rectangle } from "fivem/ui/Rectangle";
2
- import { Text } from "fivem/ui/Text";
1
+ import { Rectangle } from "../../../../ui/Rectangle";
2
+ import { Text } from "../../../../ui/Text";
3
3
  export declare class UIMenuStatisticsPanelItem {
4
4
  readonly id: string;
5
5
  readonly text: Text;
@@ -1,13 +1,13 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { Color } from "../../../../common/utils/Color";
4
- import { Alignment } from "fivem/enums/Alignment";
5
- import { Font } from "fivem/enums/Font";
6
- import { Rectangle } from "fivem/ui/Rectangle";
7
- import { Text } from "fivem/ui/Text";
8
- import { Crypto } from "fivem/utils/Crypto";
9
- import { Point } from "fivem/utils/Point";
10
- import { Size } from "fivem/utils/Size";
4
+ import { Alignment } from "../../../../enums/Alignment";
5
+ import { Font } from "../../../../enums/Font";
6
+ import { Rectangle } from "../../../../ui/Rectangle";
7
+ import { Text } from "../../../../ui/Text";
8
+ import { Crypto } from "../../../../utils/Crypto";
9
+ import { Point } from "../../../../utils/Point";
10
+ import { Size } from "../../../../utils/Size";
11
11
  class UIMenuStatisticsPanelItem {
12
12
  static {
13
13
  __name(this, "UIMenuStatisticsPanelItem");
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Crypto } from "fivem/utils/Crypto";
3
+ import { Crypto } from "../../../utils/Crypto";
4
4
  class ListItem {
5
5
  static {
6
6
  __name(this, "ListItem");
package/utils/String.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Font } from "fivem/enums/Font";
1
+ import { Font } from "../enums/Font";
2
2
  export declare abstract class _String {
3
3
  static stringToArray(input: string): string[];
4
4
  static measureStringWidthNoConvert(input: string, font?: Font, scale?: number): number;
package/utils/String.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Font } from "fivem/enums/Font";
4
- import { Screen } from "fivem/ui/Screen";
5
- import { Text } from "fivem/ui/Text";
3
+ import { Font } from "../enums/Font";
4
+ import { Screen } from "../ui/Screen";
5
+ import { Text } from "../ui/Text";
6
6
  import { Maths } from "./Maths";
7
7
  class _String {
8
8
  static {
@@ -1,4 +1,4 @@
1
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
1
+ import type { WeaponHash } from "../hashes/WeaponHash";
2
2
  /**
3
3
  * DlcWeaponData
4
4
  * refer1: https://github.com/citizenfx/fivem/blob/master/code/client/clrcore/External/DlcWeaponStructs.cs#L10
@@ -1,8 +1,8 @@
1
- import { WeaponHash, type AmmoType } from "fivem/hashes/WeaponHash";
2
- import { Model } from "fivem/Model";
3
- import type { Ped } from "fivem/models/Ped";
4
- import { WeaponComponentCollection } from "fivem/weaponComponent/WeaponComponentCollection";
5
- import type { WeaponComponentHash } from "fivem/weaponComponent/WeaponComponentHash";
1
+ import { WeaponHash, type AmmoType } from "../hashes/WeaponHash";
2
+ import { Model } from "../Model";
3
+ import type { Ped } from "../models/Ped";
4
+ import { WeaponComponentCollection } from "../weaponComponent/WeaponComponentCollection";
5
+ import type { WeaponComponentHash } from "../weaponComponent/WeaponComponentHash";
6
6
  import type { WeaponGroup } from "./WeaponGroup";
7
7
  import { WeaponHudStats } from "./WeaponHudStats";
8
8
  import type { WeaponLivery } from "./WeaponLivery";
package/weapon/Weapon.js CHANGED
@@ -1,11 +1,11 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { enumValues } from "../common/utils/enumValues";
4
- import { Game } from "fivem/Game";
5
- import { WeaponHash } from "fivem/hashes/WeaponHash";
6
- import { Model } from "fivem/Model";
7
- import { WeaponComponentCollection } from "fivem/weaponComponent/WeaponComponentCollection";
8
- import { WeaponComponentHashesByWeaponHash } from "fivem/weaponComponent/WeaponComponentHashesByWeaponHash";
4
+ import { Game } from "../Game";
5
+ import { WeaponHash } from "../hashes/WeaponHash";
6
+ import { Model } from "../Model";
7
+ import { WeaponComponentCollection } from "../weaponComponent/WeaponComponentCollection";
8
+ import { WeaponComponentHashesByWeaponHash } from "../weaponComponent/WeaponComponentHashesByWeaponHash";
9
9
  import { Mk2WeaponHash } from "./Mk2WeaponHash";
10
10
  import { WeaponDisplayNameByHash } from "./WeaponDisplayNameByHash";
11
11
  import { WeaponHudStats } from "./WeaponHudStats";
@@ -1,4 +1,4 @@
1
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
1
+ import type { WeaponHash } from "../hashes/WeaponHash";
2
2
  /**
3
3
  * weapon asset
4
4
  *
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Game } from "fivem/Game";
3
+ import { Game } from "../Game";
4
4
  import { Weapon } from "./Weapon";
5
5
  class WeaponAsset {
6
6
  static {
@@ -1,6 +1,6 @@
1
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
2
- import type { Ped } from "fivem/models/Ped";
3
- import { Prop } from "fivem/models/Prop";
1
+ import type { WeaponHash } from "../hashes/WeaponHash";
2
+ import type { Ped } from "../models/Ped";
3
+ import { Prop } from "../models/Prop";
4
4
  import { Weapon } from "./Weapon";
5
5
  /**
6
6
  * ped weapons
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Prop } from "fivem/models/Prop";
3
+ import { Prop } from "../models/Prop";
4
4
  import { Weapon } from "./Weapon";
5
5
  class WeaponCollection {
6
6
  static {
@@ -1,4 +1,4 @@
1
- import { WeaponHash } from "fivem/hashes/WeaponHash";
1
+ import { WeaponHash } from "../hashes/WeaponHash";
2
2
  /***
3
3
  * Mapping of WeaponHash -> DisplayName(Label)
4
4
  *
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { WeaponHash } from "fivem/hashes/WeaponHash";
3
+ import { WeaponHash } from "../hashes/WeaponHash";
4
4
  import { DlcWeaponData } from "./DlcWeaponData";
5
5
  const WeaponDisplayNameByHash = /* @__PURE__ */ new Map([
6
6
  [WeaponHash.Pistol, "WT_PIST"],
@@ -1,4 +1,4 @@
1
- import { WeaponHash } from "fivem/hashes/WeaponHash";
1
+ import { WeaponHash } from "../hashes/WeaponHash";
2
2
  /***
3
3
  * WeaponHudStats
4
4
  * refer1: https://github.com/citizenfx/fivem/blob/master/code/client/clrcore/External/Game.cs#L900
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { enumValues } from "../common/utils/enumValues";
4
4
  import { getUInt32FromUint8Array } from "../common/utils/getUInt32FromUint8Array";
5
- import { WeaponHash } from "fivem/hashes/WeaponHash";
5
+ import { WeaponHash } from "../hashes/WeaponHash";
6
6
  const WeaponHudStats = /* @__PURE__ */ new Map();
7
7
  function initializeOnce() {
8
8
  let isInitialized = false;
@@ -1,7 +1,7 @@
1
1
  import { WeaponComponent } from "./WeaponComponent";
2
2
  import { WeaponComponentHash } from "./WeaponComponentHash";
3
3
  import { ComponentAttachmentPoint } from "./ComponentAttachmentPoint";
4
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
4
+ import type { WeaponHash } from "../hashes/WeaponHash";
5
5
  export declare class InvalidWeaponComponent extends WeaponComponent {
6
6
  constructor();
7
7
  get Active(): boolean;
@@ -1,8 +1,8 @@
1
1
  import { ComponentAttachmentPoint } from "./ComponentAttachmentPoint";
2
2
  import { WeaponComponentHudStats } from "./WeaponComponentHudStats";
3
- import type { WeaponHash } from "fivem/hashes/WeaponHash";
4
- import type { Ped } from "fivem/models/Ped";
5
- import type { Weapon } from "fivem/weapon/Weapon";
3
+ import type { WeaponHash } from "../hashes/WeaponHash";
4
+ import type { Ped } from "../models/Ped";
5
+ import type { Weapon } from "../weapon/Weapon";
6
6
  import { WeaponComponentHash } from "./WeaponComponentHash";
7
7
  /**
8
8
  * ped weapon component on weapon
@@ -1,7 +1,7 @@
1
1
  import type { WeaponComponentHash } from "./WeaponComponentHash";
2
2
  import { WeaponComponent } from "./WeaponComponent";
3
- import type { Ped } from "fivem/models/Ped";
4
- import type { Weapon } from "fivem/weapon/Weapon";
3
+ import type { Ped } from "../models/Ped";
4
+ import type { Weapon } from "../weapon/Weapon";
5
5
  /**
6
6
  * ped weapon components on weapon
7
7
  *
@@ -1,4 +1,4 @@
1
- import { WeaponHash } from "fivem/hashes/WeaponHash";
1
+ import { WeaponHash } from "../hashes/WeaponHash";
2
2
  import { WeaponComponentHash } from "./WeaponComponentHash";
3
3
  /**
4
4
  * Mapping of WeaponHash -> WeaponComponentHashes
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { WeaponHash } from "fivem/hashes/WeaponHash";
3
+ import { WeaponHash } from "../hashes/WeaponHash";
4
4
  import { WeaponComponentHash } from "./WeaponComponentHash";
5
5
  import { getUInt32FromUint8Array } from "../common/utils/getUInt32FromUint8Array";
6
6
  const WeaponComponentHashesByWeaponHash = /* @__PURE__ */ new Map([