@nativewrappers/redm 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/entities/Entity.js +1 -1
- package/entities/Ped.js +1 -1
- package/entities/Player.js +1 -1
- package/entities/Vehicle.d.ts +1 -1
- package/entities/Vehicle.js +1 -1
- package/index.d.ts +52 -0
- package/index.js +52 -52
- package/package.json +2 -1
- package/world/createDraftVehicle.d.ts +2 -2
- package/world/createDraftVehicle.js +2 -2
- package/world/createPed.d.ts +2 -2
- package/world/createPed.js +1 -1
- package/world/createProp.d.ts +2 -2
- package/world/createProp.js +1 -1
- package/world/createVehicle.d.ts +2 -2
- package/world/createVehicle.js +1 -1
package/entities/Entity.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 { _N } from "
|
|
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 "
|
|
6
|
+
import { _N } from "../utils/Native";
|
|
7
7
|
class Ped extends BaseEntity {
|
|
8
8
|
static {
|
|
9
9
|
__name(this, "Ped");
|
package/entities/Player.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 { GameConstants } from "
|
|
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);
|
package/entities/Vehicle.d.ts
CHANGED
package/entities/Vehicle.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 { _N } from "
|
|
3
|
+
import { _N } from "../utils/Native";
|
|
4
4
|
import { BaseEntity } from "./BaseEntity";
|
|
5
5
|
class Vehicle extends BaseEntity {
|
|
6
6
|
static {
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export * from "./Attribute";
|
|
2
|
+
export * from "./Controls";
|
|
3
|
+
export * from "./Game";
|
|
4
|
+
export * from "./GameConstants";
|
|
5
|
+
export * from "./Model";
|
|
6
|
+
export * from "./RawControls";
|
|
7
|
+
export * from "./RelationshipGroup";
|
|
8
|
+
export * from "./Volume";
|
|
9
|
+
export * from "./world/createDraftVehicle";
|
|
10
|
+
export * from "./world/createPed";
|
|
11
|
+
export * from "./world/createProp";
|
|
12
|
+
export * from "./world/createVehicle";
|
|
13
|
+
export * from "./utils/Native";
|
|
14
|
+
export * from "./types/Throwable";
|
|
15
|
+
export * from "./interfaces/Dimensions";
|
|
16
|
+
export * from "./enums/Attributes";
|
|
17
|
+
export * from "./enums/Entity";
|
|
18
|
+
export * from "./enums/Keys";
|
|
19
|
+
export * from "./enums/Ped";
|
|
20
|
+
export * from "./enums/RawKeys";
|
|
21
|
+
export * from "./enums/Relationship";
|
|
22
|
+
export * from "./enums/VehicleSeat";
|
|
23
|
+
export * from "./entities/BaseEntity";
|
|
24
|
+
export * from "./entities/Entity";
|
|
25
|
+
export * from "./entities/Ped";
|
|
26
|
+
export * from "./entities/Pickup";
|
|
27
|
+
export * from "./entities/Player";
|
|
28
|
+
export * from "./entities/Prop";
|
|
29
|
+
export * from "./entities/Vehicle";
|
|
30
|
+
export * from "./definitions/Citizen.d";
|
|
31
|
+
export * from "./definitions/index.d";
|
|
32
|
+
export * from "./definitions/redm.d";
|
|
33
|
+
export * from "./common/Command";
|
|
34
|
+
export * from "./common/Convar";
|
|
35
|
+
export * from "./common/GlobalData";
|
|
36
|
+
export * from "./common/Kvp";
|
|
37
|
+
export * from "./common/Resource";
|
|
38
|
+
export * from "./common/types";
|
|
39
|
+
export * from "./common/utils/ClassTypes";
|
|
40
|
+
export * from "./common/utils/Color";
|
|
41
|
+
export * from "./common/utils/Delay";
|
|
42
|
+
export * from "./common/utils/Maths";
|
|
43
|
+
export * from "./common/utils/Point";
|
|
44
|
+
export * from "./common/utils/PointF";
|
|
45
|
+
export * from "./common/utils/Quaternion";
|
|
46
|
+
export * from "./common/utils/Vector";
|
|
47
|
+
export * from "./common/utils/cleanPlayerName";
|
|
48
|
+
export * from "./common/utils/enumValues";
|
|
49
|
+
export * from "./common/utils/getStringFromUInt8Array";
|
|
50
|
+
export * from "./common/utils/getUInt32FromUint8Array";
|
|
51
|
+
export * from "./common/net/NetworkedMap";
|
|
52
|
+
export * from "./common/decors/Events";
|
package/index.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
export * from "./Attribute
|
|
2
|
-
export * from "./Controls
|
|
3
|
-
export * from "./Game
|
|
4
|
-
export * from "./GameConstants
|
|
5
|
-
export * from "./Model
|
|
6
|
-
export * from "./RawControls
|
|
7
|
-
export * from "./RelationshipGroup
|
|
8
|
-
export * from "./Volume
|
|
9
|
-
export * from "./world/createDraftVehicle
|
|
10
|
-
export * from "./world/createPed
|
|
11
|
-
export * from "./world/createProp
|
|
12
|
-
export * from "./world/createVehicle
|
|
13
|
-
export * from "./utils/Native
|
|
14
|
-
export * from "./types/Throwable
|
|
15
|
-
export * from "./interfaces/Dimensions
|
|
16
|
-
export * from "./enums/Attributes
|
|
17
|
-
export * from "./enums/Entity
|
|
18
|
-
export * from "./enums/Keys
|
|
19
|
-
export * from "./enums/Ped
|
|
20
|
-
export * from "./enums/RawKeys
|
|
21
|
-
export * from "./enums/Relationship
|
|
22
|
-
export * from "./enums/VehicleSeat
|
|
23
|
-
export * from "./entities/BaseEntity
|
|
24
|
-
export * from "./entities/Entity
|
|
25
|
-
export * from "./entities/Ped
|
|
26
|
-
export * from "./entities/Pickup
|
|
27
|
-
export * from "./entities/Player
|
|
28
|
-
export * from "./entities/Prop
|
|
29
|
-
export * from "./entities/Vehicle
|
|
30
|
-
export * from "./definitions/Citizen.d
|
|
31
|
-
export * from "./definitions/index.d
|
|
32
|
-
export * from "./definitions/redm.d
|
|
33
|
-
export * from "./common/Command
|
|
34
|
-
export * from "./common/Convar
|
|
35
|
-
export * from "./common/GlobalData
|
|
36
|
-
export * from "./common/Kvp
|
|
37
|
-
export * from "./common/Resource
|
|
38
|
-
export * from "./common/types
|
|
39
|
-
export * from "./common/utils/ClassTypes
|
|
40
|
-
export * from "./common/utils/Color
|
|
41
|
-
export * from "./common/utils/Delay
|
|
42
|
-
export * from "./common/utils/Maths
|
|
43
|
-
export * from "./common/utils/Point
|
|
44
|
-
export * from "./common/utils/PointF
|
|
45
|
-
export * from "./common/utils/Quaternion
|
|
46
|
-
export * from "./common/utils/Vector
|
|
47
|
-
export * from "./common/utils/cleanPlayerName
|
|
48
|
-
export * from "./common/utils/enumValues
|
|
49
|
-
export * from "./common/utils/getStringFromUInt8Array
|
|
50
|
-
export * from "./common/utils/getUInt32FromUint8Array
|
|
51
|
-
export * from "./common/net/NetworkedMap
|
|
52
|
-
export * from "./common/decors/Events
|
|
1
|
+
export * from "./Attribute";
|
|
2
|
+
export * from "./Controls";
|
|
3
|
+
export * from "./Game";
|
|
4
|
+
export * from "./GameConstants";
|
|
5
|
+
export * from "./Model";
|
|
6
|
+
export * from "./RawControls";
|
|
7
|
+
export * from "./RelationshipGroup";
|
|
8
|
+
export * from "./Volume";
|
|
9
|
+
export * from "./world/createDraftVehicle";
|
|
10
|
+
export * from "./world/createPed";
|
|
11
|
+
export * from "./world/createProp";
|
|
12
|
+
export * from "./world/createVehicle";
|
|
13
|
+
export * from "./utils/Native";
|
|
14
|
+
export * from "./types/Throwable";
|
|
15
|
+
export * from "./interfaces/Dimensions";
|
|
16
|
+
export * from "./enums/Attributes";
|
|
17
|
+
export * from "./enums/Entity";
|
|
18
|
+
export * from "./enums/Keys";
|
|
19
|
+
export * from "./enums/Ped";
|
|
20
|
+
export * from "./enums/RawKeys";
|
|
21
|
+
export * from "./enums/Relationship";
|
|
22
|
+
export * from "./enums/VehicleSeat";
|
|
23
|
+
export * from "./entities/BaseEntity";
|
|
24
|
+
export * from "./entities/Entity";
|
|
25
|
+
export * from "./entities/Ped";
|
|
26
|
+
export * from "./entities/Pickup";
|
|
27
|
+
export * from "./entities/Player";
|
|
28
|
+
export * from "./entities/Prop";
|
|
29
|
+
export * from "./entities/Vehicle";
|
|
30
|
+
export * from "./definitions/Citizen.d";
|
|
31
|
+
export * from "./definitions/index.d";
|
|
32
|
+
export * from "./definitions/redm.d";
|
|
33
|
+
export * from "./common/Command";
|
|
34
|
+
export * from "./common/Convar";
|
|
35
|
+
export * from "./common/GlobalData";
|
|
36
|
+
export * from "./common/Kvp";
|
|
37
|
+
export * from "./common/Resource";
|
|
38
|
+
export * from "./common/types";
|
|
39
|
+
export * from "./common/utils/ClassTypes";
|
|
40
|
+
export * from "./common/utils/Color";
|
|
41
|
+
export * from "./common/utils/Delay";
|
|
42
|
+
export * from "./common/utils/Maths";
|
|
43
|
+
export * from "./common/utils/Point";
|
|
44
|
+
export * from "./common/utils/PointF";
|
|
45
|
+
export * from "./common/utils/Quaternion";
|
|
46
|
+
export * from "./common/utils/Vector";
|
|
47
|
+
export * from "./common/utils/cleanPlayerName";
|
|
48
|
+
export * from "./common/utils/enumValues";
|
|
49
|
+
export * from "./common/utils/getStringFromUInt8Array";
|
|
50
|
+
export * from "./common/utils/getUInt32FromUint8Array";
|
|
51
|
+
export * from "./common/net/NetworkedMap";
|
|
52
|
+
export * from "./common/decors/Events";
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.0.
|
|
11
|
+
"version": "0.0.84",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/nativewrappers/nativewrappers.git"
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"./**/*.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"exports": {
|
|
32
|
+
".": "./index.js",
|
|
32
33
|
"./*": "./*"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
-
import { Vehicle } from "
|
|
3
|
-
import type { Model } from "
|
|
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 "
|
|
4
|
-
import { _N } from "
|
|
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;
|
package/world/createPed.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
-
import { Ped } from "
|
|
3
|
-
import type { Model } from "
|
|
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
|
*/
|
package/world/createPed.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 { Ped } from "
|
|
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;
|
package/world/createProp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
-
import { Prop } from "
|
|
3
|
-
import type { Model } from "
|
|
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
|
*/
|
package/world/createProp.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 { Prop } from "
|
|
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;
|
package/world/createVehicle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Vector3 } from "../common/utils/Vector";
|
|
2
|
-
import { Vehicle } from "
|
|
3
|
-
import type { Model } from "
|
|
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
|
*/
|
package/world/createVehicle.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 { Vehicle } from "
|
|
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;
|