@nativewrappers/server 0.0.106 → 0.0.107
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/Player.d.ts +1 -1
- package/entities/Player.js +4 -4
- package/package.json +1 -1
package/entities/Player.d.ts
CHANGED
package/entities/Player.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import cfx from "../cfx";
|
|
4
3
|
import { ClassTypes } from "../common/utils/ClassTypes";
|
|
5
|
-
import { Ped } from "./Ped";
|
|
6
|
-
import { cleanPlayerName } from "../common/utils/cleanPlayerName";
|
|
7
4
|
import { Vector3 } from "../common/utils/Vector";
|
|
5
|
+
import { cleanPlayerName } from "../common/utils/cleanPlayerName";
|
|
6
|
+
import cfx from "../cfx";
|
|
7
|
+
import { Ped } from "./Ped";
|
|
8
8
|
class Player {
|
|
9
9
|
constructor(source) {
|
|
10
10
|
this.source = source;
|
|
@@ -24,7 +24,7 @@ class Player {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
get Exists() {
|
|
27
|
-
return this.source !== 0;
|
|
27
|
+
return this.source !== 0 && DoesPlayerExist(this.source);
|
|
28
28
|
}
|
|
29
29
|
get Source() {
|
|
30
30
|
return this.source;
|