@nativewrappers/common 0.0.120 → 0.0.121
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/GlobalData.d.ts +2 -0
- package/GlobalData.js +2 -0
- package/package.json +1 -1
package/GlobalData.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export declare class GlobalData {
|
|
|
3
3
|
static GameName: string;
|
|
4
4
|
static GameBuild: number;
|
|
5
5
|
static IS_SERVER: boolean;
|
|
6
|
+
static IS_REDM: boolean;
|
|
7
|
+
static IS_FIVEM: boolean;
|
|
6
8
|
static IS_CLIENT: boolean;
|
|
7
9
|
static NetworkTick: number | null;
|
|
8
10
|
static NetworkedTicks: any[];
|
package/GlobalData.js
CHANGED
|
@@ -8,6 +8,8 @@ class GlobalData {
|
|
|
8
8
|
static GameName = GetGameName();
|
|
9
9
|
static GameBuild = GetGameBuildNumber();
|
|
10
10
|
static IS_SERVER = IsDuplicityVersion();
|
|
11
|
+
static IS_REDM = GetGameName() === "redm";
|
|
12
|
+
static IS_FIVEM = GetGameName() === "fivem";
|
|
11
13
|
static IS_CLIENT = !GlobalData.IS_SERVER;
|
|
12
14
|
static NetworkTick = null;
|
|
13
15
|
static NetworkedTicks = [];
|