@nativewrappers/redm 0.0.46 → 0.0.48

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.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { Ped, Player } from "./entities";
2
+ export declare class GameConstants {
3
+ static readonly PlayerId: number;
4
+ static readonly ServerId: number;
5
+ static readonly Player: Player;
6
+ }
7
+ export declare class Game {
8
+ static get PlayerPed(): Ped;
9
+ static get Player(): Player;
10
+ }
package/Game.js ADDED
@@ -0,0 +1,15 @@
1
+ import { Ped, Player } from "./entities";
2
+ // Constants that will never change throughout the lifetime of the player
3
+ export class GameConstants {
4
+ static PlayerId = PlayerId();
5
+ static ServerId = GetPlayerServerId(GameConstants.PlayerId);
6
+ static Player = new Player(GameConstants.PlayerId);
7
+ }
8
+ export class Game {
9
+ static get PlayerPed() {
10
+ return new Ped(PlayerPedId());
11
+ }
12
+ static get Player() {
13
+ return new Player(PlayerId());
14
+ }
15
+ }
package/index.d.ts CHANGED
@@ -2,5 +2,6 @@ export * from "./entities/index";
2
2
  export * from "./enums/index";
3
3
  export * from "./Volume";
4
4
  export * from "./Controls";
5
+ export * from "./Game";
5
6
  export * from "./RelationshipGroup";
6
7
  export * from "./Attribute";
package/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./entities/index";
2
2
  export * from "./enums/index";
3
3
  export * from "./Volume";
4
4
  export * from "./Controls";
5
+ export * from "./Game";
5
6
  export * from "./RelationshipGroup";
6
7
  export * from "./Attribute";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Remco Troost <d0p3t>",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "version": "0.0.46",
7
+ "version": "0.0.48",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/nativewrappers/fivem.git"
@@ -28,6 +28,6 @@
28
28
  ".": "./index.js"
29
29
  },
30
30
  "dependencies": {
31
- "@nativewrappers/common": "0.0.46"
31
+ "@nativewrappers/common": "0.0.48"
32
32
  }
33
33
  }