@nativewrappers/fivem 0.0.90 → 0.0.93
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/common/decors/Events.js +4 -2
- package/models/BaseEntity.js +1 -1
- package/models/Player.js +1 -1
- package/package.json +1 -1
package/common/decors/Events.js
CHANGED
|
@@ -123,11 +123,13 @@ function ConVar(name, is_floating_point, deserialize) {
|
|
|
123
123
|
}
|
|
124
124
|
} else if (default_type === "boolean") {
|
|
125
125
|
con_var_type = 3 /* Boolean */;
|
|
126
|
-
} else if (
|
|
126
|
+
} else if (default_type === "string") {
|
|
127
127
|
con_var_type = 0 /* String */;
|
|
128
128
|
}
|
|
129
129
|
if (!deserialize && con_var_type === null) {
|
|
130
|
-
throw new Error(
|
|
130
|
+
throw new Error(
|
|
131
|
+
`Failed to determine what to use to deserialize '${name}' was for var had type '${default_type}' which can't be deserialized without providing your own deserialize function.`
|
|
132
|
+
);
|
|
131
133
|
}
|
|
132
134
|
if (con_var_type === null) {
|
|
133
135
|
con_var_type = 0 /* String */;
|
package/models/BaseEntity.js
CHANGED
|
@@ -3,7 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
3
3
|
import { Quaternion } from "../common/utils/Quaternion";
|
|
4
4
|
import { Vector3 } from "../common/utils/Vector";
|
|
5
5
|
import { Model } from "../Model";
|
|
6
|
-
import cfx from "../cfx";
|
|
6
|
+
import cfx, {} from "../cfx";
|
|
7
7
|
import { ForceType } from "../enums/ForceType";
|
|
8
8
|
import { Blip } from "../Blip";
|
|
9
9
|
class BaseEntity {
|
package/models/Player.js
CHANGED
|
@@ -4,7 +4,7 @@ import { ClassTypes } from "../common/utils/ClassTypes";
|
|
|
4
4
|
import { Color } from "../common/utils/Color";
|
|
5
5
|
import { Model } from "../Model";
|
|
6
6
|
import { GetEntityClassFromId } from "../utils/GetEntityFromEntityIds";
|
|
7
|
-
import cfx from "../cfx";
|
|
7
|
+
import cfx, {} from "../cfx";
|
|
8
8
|
import { Ped } from "./Ped";
|
|
9
9
|
class Player {
|
|
10
10
|
static {
|