@nativewrappers/fivem 0.0.82 → 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.
- package/Events.js +1 -1
- package/index.d.ts +166 -0
- package/index.js +166 -166
- package/models/BaseEntity.d.ts +5 -5
- package/models/BaseEntity.js +3 -3
- package/models/Ped.d.ts +10 -10
- package/models/Ped.js +6 -6
- package/models/PedBone.d.ts +1 -1
- package/models/Player.d.ts +1 -1
- package/models/Player.js +2 -2
- package/models/Vehicle.d.ts +4 -4
- package/models/Vehicle.js +3 -3
- package/models/VehicleDoor.d.ts +1 -1
- package/models/VehicleDoorCollection.d.ts +1 -1
- package/models/VehicleDoorCollection.js +1 -1
- package/models/VehicleMod.d.ts +1 -1
- package/models/VehicleModCollection.d.ts +1 -1
- package/models/VehicleModCollection.js +1 -1
- package/models/VehicleToggleMod.d.ts +1 -1
- package/models/VehicleWheelCollection.d.ts +1 -1
- package/models/VehicleWheelCollection.js +1 -1
- package/models/VehicleWindow.d.ts +1 -1
- package/models/VehicleWindowCollection.d.ts +1 -1
- package/models/VehicleWindowCollection.js +1 -1
- package/package.json +2 -1
- package/ui/Container.d.ts +2 -2
- package/ui/Container.js +1 -1
- package/ui/Effects.d.ts +1 -1
- package/ui/Hud.d.ts +3 -3
- package/ui/Hud.js +1 -1
- package/ui/LoadingPrompt.d.ts +1 -1
- package/ui/LoadingPrompt.js +1 -1
- package/ui/Rectangle.d.ts +2 -2
- package/ui/Rectangle.js +2 -2
- package/ui/Screen.d.ts +3 -3
- package/ui/Screen.js +4 -4
- package/ui/Sprite.d.ts +2 -2
- package/ui/Sprite.js +2 -2
- package/ui/Text.d.ts +4 -4
- package/ui/Text.js +4 -4
- package/ui/Timerbar.js +3 -3
- package/ui/interfaces/IButton.d.ts +1 -1
- package/ui/interfaces/IDrawable.d.ts +2 -2
- package/ui/menu/Menu.d.ts +5 -5
- package/ui/menu/Menu.js +13 -13
- package/ui/menu/MenuSettings.d.ts +1 -1
- package/ui/menu/MenuSettings.js +2 -2
- package/ui/menu/items/UIMenuCheckboxItem.d.ts +2 -2
- package/ui/menu/items/UIMenuCheckboxItem.js +5 -5
- package/ui/menu/items/UIMenuItem.d.ts +7 -7
- package/ui/menu/items/UIMenuItem.js +11 -11
- package/ui/menu/items/UIMenuListItem.d.ts +1 -1
- package/ui/menu/items/UIMenuListItem.js +8 -8
- package/ui/menu/items/UIMenuSeparatorItem.js +1 -1
- package/ui/menu/items/UIMenuSliderItem.d.ts +2 -2
- package/ui/menu/items/UIMenuSliderItem.js +6 -6
- package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +2 -2
- package/ui/menu/items/panels/AbstractUIMenuPanel.js +2 -2
- package/ui/menu/items/panels/UIMenuColorPanel.d.ts +1 -1
- package/ui/menu/items/panels/UIMenuColorPanel.js +9 -9
- package/ui/menu/items/panels/UIMenuGridPanel.d.ts +2 -2
- package/ui/menu/items/panels/UIMenuGridPanel.js +6 -6
- package/ui/menu/items/panels/UIMenuPercentagePanel.d.ts +1 -1
- package/ui/menu/items/panels/UIMenuPercentagePanel.js +9 -9
- package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +1 -1
- package/ui/menu/items/panels/UIMenuStatisticsPanel.js +3 -3
- package/ui/menu/items/panels/UIMenuStatisticsPanelItem.d.ts +2 -2
- package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +7 -7
- package/ui/menu/modules/ListItem.js +1 -1
- package/utils/String.d.ts +1 -1
- package/utils/String.js +3 -3
- package/weapon/DlcWeaponData.d.ts +1 -1
- package/weapon/Weapon.d.ts +5 -5
- package/weapon/Weapon.js +5 -5
- package/weapon/WeaponAsset.d.ts +1 -1
- package/weapon/WeaponAsset.js +1 -1
- package/weapon/WeaponCollection.d.ts +3 -3
- package/weapon/WeaponCollection.js +1 -1
- package/weapon/WeaponDisplayNameByHash.d.ts +1 -1
- package/weapon/WeaponDisplayNameByHash.js +1 -1
- package/weapon/WeaponHudStats.d.ts +1 -1
- package/weapon/WeaponHudStats.js +1 -1
- package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
- package/weaponComponent/WeaponComponent.d.ts +3 -3
- package/weaponComponent/WeaponComponentCollection.d.ts +2 -2
- package/weaponComponent/WeaponComponentHashesByWeaponHash.d.ts +1 -1
- package/weaponComponent/WeaponComponentHashesByWeaponHash.js +1 -1
|
@@ -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 "
|
|
5
|
-
import { Control } from "
|
|
6
|
-
import { Font } from "
|
|
7
|
-
import { Game } from "
|
|
8
|
-
import { Rectangle } from "
|
|
9
|
-
import { Sprite } from "
|
|
10
|
-
import { Text } from "
|
|
11
|
-
import { Point } from "
|
|
12
|
-
import { Size } from "
|
|
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 "
|
|
2
|
-
import { Point } from "
|
|
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 "
|
|
4
|
-
import { Game } from "
|
|
5
|
-
import { Sprite } from "
|
|
6
|
-
import { Text } from "
|
|
7
|
-
import { Point } from "
|
|
8
|
-
import { Size } from "
|
|
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,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 "
|
|
5
|
-
import { Control } from "
|
|
6
|
-
import { Font } from "
|
|
7
|
-
import { Game } from "
|
|
8
|
-
import { Rectangle } from "
|
|
9
|
-
import { Sprite } from "
|
|
10
|
-
import { Text } from "
|
|
11
|
-
import { Point } from "
|
|
12
|
-
import { Size } from "
|
|
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 "
|
|
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 "
|
|
5
|
-
import { Point } from "
|
|
6
|
-
import { Size } from "
|
|
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 "
|
|
2
|
-
import { Text } from "
|
|
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 "
|
|
5
|
-
import { Font } from "
|
|
6
|
-
import { Rectangle } from "
|
|
7
|
-
import { Text } from "
|
|
8
|
-
import { Crypto } from "
|
|
9
|
-
import { Point } from "
|
|
10
|
-
import { Size } from "
|
|
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 "
|
|
3
|
+
import { Crypto } from "../../../utils/Crypto";
|
|
4
4
|
class ListItem {
|
|
5
5
|
static {
|
|
6
6
|
__name(this, "ListItem");
|
package/utils/String.d.ts
CHANGED
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 "
|
|
4
|
-
import { Screen } from "
|
|
5
|
-
import { Text } from "
|
|
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 {
|
package/weapon/Weapon.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WeaponHash, type AmmoType } from "
|
|
2
|
-
import { Model } from "
|
|
3
|
-
import type { Ped } from "
|
|
4
|
-
import { WeaponComponentCollection } from "
|
|
5
|
-
import type { WeaponComponentHash } from "
|
|
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 "
|
|
5
|
-
import { WeaponHash } from "
|
|
6
|
-
import { Model } from "
|
|
7
|
-
import { WeaponComponentCollection } from "
|
|
8
|
-
import { WeaponComponentHashesByWeaponHash } from "
|
|
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";
|
package/weapon/WeaponAsset.d.ts
CHANGED
package/weapon/WeaponAsset.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 { Game } from "
|
|
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 "
|
|
2
|
-
import type { Ped } from "
|
|
3
|
-
import { Prop } from "
|
|
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 "
|
|
3
|
+
import { Prop } from "../models/Prop";
|
|
4
4
|
import { Weapon } from "./Weapon";
|
|
5
5
|
class WeaponCollection {
|
|
6
6
|
static {
|
|
@@ -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 "
|
|
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"],
|
package/weapon/WeaponHudStats.js
CHANGED
|
@@ -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 "
|
|
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 "
|
|
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 "
|
|
4
|
-
import type { Ped } from "
|
|
5
|
-
import type { Weapon } from "
|
|
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 "
|
|
4
|
-
import type { Weapon } from "
|
|
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,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 "
|
|
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([
|