@nativewrappers/server 0.0.79 → 0.0.81
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/Game.js +62 -0
- package/cfx/StateBagChangeHandler.js +0 -0
- package/cfx/index.d.ts +1 -1
- package/cfx/index.js +4 -0
- package/common/Command.js +111 -0
- package/common/Convar.js +58 -0
- package/common/GlobalData.js +16 -0
- package/common/Kvp.js +137 -0
- package/common/Resource.js +54 -0
- package/common/decors/Events.js +170 -0
- package/common/net/NetworkedMap.js +225 -0
- package/common/types.js +0 -0
- package/common/utils/ClassTypes.js +15 -0
- package/common/utils/Color.js +33 -0
- package/common/utils/Delay.d.ts +1 -0
- package/common/utils/Delay.js +6 -0
- package/common/utils/Maths.js +18 -0
- package/common/utils/Point.d.ts +9 -0
- package/common/utils/Point.js +36 -0
- package/common/utils/PointF.d.ts +1 -1
- package/common/utils/PointF.js +18 -0
- package/common/utils/Quaternion.d.ts +1 -1
- package/common/utils/Quaternion.js +33 -0
- package/common/utils/Vector.js +589 -0
- package/common/utils/cleanPlayerName.js +17 -0
- package/common/utils/enumValues.js +20 -0
- package/common/utils/getStringFromUInt8Array.js +6 -0
- package/common/utils/getUInt32FromUint8Array.js +6 -0
- package/entities/BaseEntity.d.ts +2 -3
- package/entities/BaseEntity.js +141 -0
- package/entities/Entity.js +20 -0
- package/entities/Ped.d.ts +1 -1
- package/entities/Ped.js +85 -0
- package/entities/Player.d.ts +1 -1
- package/entities/Player.js +143 -0
- package/entities/Prop.d.ts +1 -1
- package/entities/Prop.js +38 -0
- package/entities/Vehicle.d.ts +2 -2
- package/entities/Vehicle.js +181 -0
- package/enum/OrphanMode.js +9 -0
- package/enum/PopulationType.js +17 -0
- package/enum/VehicleLockStatus.js +13 -0
- package/enum/VehicleType.js +14 -0
- package/enum/eEntityType.js +9 -0
- package/package.json +2 -2
- package/type/Anticheat.js +0 -0
- package/type/Hash.js +0 -0
- package/common/index.d.ts +0 -8
- package/common/utils/Vector2.d.ts +0 -1
- package/common/utils/Vector3.d.ts +0 -1
- package/common/utils/Vector4.d.ts +0 -1
- package/common/utils/index.d.ts +0 -12
- package/entities/index.d.ts +0 -5
- package/enum/index.d.ts +0 -5
- package/index.d.ts +0 -7
- package/index.js +0 -2125
- package/utils/index.d.ts +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var VehicleType = /* @__PURE__ */ ((VehicleType2) => {
|
|
2
|
+
VehicleType2["Automobile"] = "automobile";
|
|
3
|
+
VehicleType2["Bike"] = "bike";
|
|
4
|
+
VehicleType2["Boat"] = "boat";
|
|
5
|
+
VehicleType2["Heli"] = "heli";
|
|
6
|
+
VehicleType2["Plane"] = "plane";
|
|
7
|
+
VehicleType2["Submarine"] = "submarine";
|
|
8
|
+
VehicleType2["Trailer"] = "trailer";
|
|
9
|
+
VehicleType2["Train"] = "train";
|
|
10
|
+
return VehicleType2;
|
|
11
|
+
})(VehicleType || {});
|
|
12
|
+
export {
|
|
13
|
+
VehicleType
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var eEntityType = /* @__PURE__ */ ((eEntityType2) => {
|
|
2
|
+
eEntityType2[eEntityType2["Ped"] = 1] = "Ped";
|
|
3
|
+
eEntityType2[eEntityType2["Automobile"] = 2] = "Automobile";
|
|
4
|
+
eEntityType2[eEntityType2["Prop"] = 3] = "Prop";
|
|
5
|
+
return eEntityType2;
|
|
6
|
+
})(eEntityType || {});
|
|
7
|
+
export {
|
|
8
|
+
eEntityType
|
|
9
|
+
};
|
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.81",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/nativewrappers/nativewrappers.git"
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"./**/*.d.ts"
|
|
30
30
|
],
|
|
31
31
|
"exports": {
|
|
32
|
-
"
|
|
32
|
+
"./*": "./*"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
File without changes
|
package/type/Hash.js
ADDED
|
File without changes
|
package/common/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Vector2 } from "./Vector";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Vector3 } from "./Vector";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Vector4 } from "./Vector";
|
package/common/utils/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./Vector2";
|
|
2
|
-
export * from "./Vector3";
|
|
3
|
-
export * from "./Vector4";
|
|
4
|
-
export * from "./PointF";
|
|
5
|
-
export * from "./Maths";
|
|
6
|
-
export * from "./Quaternion";
|
|
7
|
-
export * from "./Color";
|
|
8
|
-
export { cleanPlayerName } from "./cleanPlayerName";
|
|
9
|
-
export declare const Delay: (milliseconds: number) => Promise<void>;
|
|
10
|
-
export { enumValues } from "./enumValues";
|
|
11
|
-
export { getStringFromUInt8Array } from "./getStringFromUInt8Array";
|
|
12
|
-
export { getUInt32FromUint8Array } from "./getUInt32FromUint8Array";
|
package/entities/index.d.ts
DELETED
package/enum/index.d.ts
DELETED