@cybermp-community/client-types 2.5.5 → 2.5.6

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.
@@ -184,6 +184,11 @@ declare module '../game.d.ts' {
184
184
  */
185
185
  onGameLoaded(callback: () => void): void;
186
186
 
187
+ /**
188
+ * Event when the game is started. Fires only once.
189
+ */
190
+ onceGameLoaded(callback: () => void): void;
191
+
187
192
  /**
188
193
  * Event when tweaks is loaded.
189
194
  */
@@ -76,4 +76,10 @@ export interface MpNetwork {
76
76
  * @returns Network ID of the player.
77
77
  */
78
78
  getPlayerId(gameId: number): number;
79
+
80
+ /**
81
+ * Returns the local player's network ID without a spawned player entity.
82
+ * @returns Network ID of the local player.
83
+ */
84
+ getLocalPlayerId(): number;
79
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cybermp-community/client-types",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "TypeScript type definitions for the CyberMP client-side environment.",
5
5
  "license": "CC BY-SA 4.0",
6
6
  "author": {