@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.
@@ -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 (default_value === "string") {
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("You should provide a deserialize function if you want to convert this to an object type");
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 */;
@@ -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 {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "version": "0.0.90",
11
+ "version": "0.0.93",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/nativewrappers/nativewrappers.git"