@nativewrappers/redm 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.
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { _N } from "redm/utils/Native";
3
+ import { _N } from "../utils/Native";
4
4
  import { EntityType, ForceType } from "../enums/Entity";
5
5
  import { BaseEntity } from "./BaseEntity";
6
6
  class Entity extends BaseEntity {
package/entities/Ped.js CHANGED
@@ -3,7 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
3
3
  import { Attributes } from "../Attribute";
4
4
  import { BaseEntity } from "./BaseEntity";
5
5
  import { Vehicle } from "./Vehicle";
6
- import { _N } from "redm/utils/Native";
6
+ import { _N } from "../utils/Native";
7
7
  class Ped extends BaseEntity {
8
8
  static {
9
9
  __name(this, "Ped");
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { GameConstants } from "redm/GameConstants";
3
+ import { GameConstants } from "../GameConstants";
4
4
  import { _N } from "../utils/Native";
5
5
  const handleUpgrade = /* @__PURE__ */ __name((name, amount) => {
6
6
  const b1 = new ArrayBuffer(8 * 24);
@@ -1,4 +1,4 @@
1
- import type { VehicleSeat } from "redm/enums/VehicleSeat";
1
+ import type { VehicleSeat } from "../enums/VehicleSeat";
2
2
  import { BaseEntity } from "./BaseEntity";
3
3
  export declare class Vehicle extends BaseEntity {
4
4
  constructor(handle: number);
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { _N } from "redm/utils/Native";
3
+ import { _N } from "../utils/Native";
4
4
  import { BaseEntity } from "./BaseEntity";
5
5
  class Vehicle extends BaseEntity {
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"
@@ -1,6 +1,6 @@
1
1
  import type { Vector3 } from "../common/utils/Vector";
2
- import { Vehicle } from "redm/entities/Vehicle";
3
- import type { Model } from "redm/Model";
2
+ import { Vehicle } from "../entities/Vehicle";
3
+ import type { Model } from "../Model";
4
4
  /**
5
5
  * Creates a vehicle at the specified {@param spawnPos}, you don't need to request the model before this.
6
6
  */
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Vehicle } from "redm/entities/Vehicle";
4
- import { _N } from "redm/utils/Native";
3
+ import { Vehicle } from "../entities/Vehicle";
4
+ import { _N } from "../utils/Native";
5
5
  async function createDraftVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, draftAnimalPopGroup = 0, p9 = true) {
6
6
  if (!model.IsPed || !model.request(1e3)) {
7
7
  return null;
@@ -1,6 +1,6 @@
1
1
  import type { Vector3 } from "../common/utils/Vector";
2
- import { Ped } from "redm/entities/Ped";
3
- import type { Model } from "redm/Model";
2
+ import { Ped } from "../entities/Ped";
3
+ import type { Model } from "../Model";
4
4
  /**
5
5
  * Creates a ped at the specified {@param spawnPos}, you don't need to request the model before this.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Ped } from "redm/entities/Ped";
3
+ import { Ped } from "../entities/Ped";
4
4
  async function createPed(model, spawnPos, heading, isNetwork = false, bScriptHostPed = true, p7 = true, p8 = true) {
5
5
  if (!model.IsPed || !model.request(1e3)) {
6
6
  return null;
@@ -1,6 +1,6 @@
1
1
  import type { Vector3 } from "../common/utils/Vector";
2
- import { Prop } from "redm/entities/Prop";
3
- import type { Model } from "redm/Model";
2
+ import { Prop } from "../entities/Prop";
3
+ import type { Model } from "../Model";
4
4
  /**
5
5
  * Creates a ped at the specified {@param spawnPos}, you don't need to request the model before this.
6
6
  */
@@ -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 "redm/entities/Prop";
3
+ import { Prop } from "../entities/Prop";
4
4
  async function createProp(model, spawnPos, heading, isNetwork = false, bScriptHostProp = true, dynamic = true, p7 = true, p8 = true) {
5
5
  if (!model.IsProp || !model.request(1e3)) {
6
6
  return null;
@@ -1,6 +1,6 @@
1
1
  import type { Vector3 } from "../common/utils/Vector";
2
- import { Vehicle } from "redm/entities/Vehicle";
3
- import type { Model } from "redm/Model";
2
+ import { Vehicle } from "../entities/Vehicle";
3
+ import type { Model } from "../Model";
4
4
  /**
5
5
  * Creates a vehicle at the specified {@param spawnPos}, you don't need to request the model before this.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { Vehicle } from "redm/entities/Vehicle";
3
+ import { Vehicle } from "../entities/Vehicle";
4
4
  async function createVehicle(model, spawnPos, heading, isNetwork = false, bScriptHostVeh = true, bDontAutoCreateDraftAnimals = true, p8 = true) {
5
5
  if (!model.IsPed || !model.request(1e3)) {
6
6
  return null;