@citizenfx/client 2.0.6121-1 → 2.0.6129-1

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.
@@ -724,7 +724,8 @@ declare function AddShockingEventForEntity(eventType: number, entity: number, du
724
724
  * * **reserved**: Currently unused.
725
725
  * * **replicated**: Whether the set is meant to be replicated.
726
726
  * At this time, the change handler can't opt to reject changes.
727
- * If bagName refers to an entity, use [GET_ENTITY_FROM_STATE_BAG_NAME](?\_0x4BDF1867) to get the entity handle
727
+ * If bagName refers to an entity, use [GET_ENTITY_FROM_STATE_BAG_NAME](?\_0x4BDF1868) to get the entity handle
728
+ * If bagName refers to a player, use [GET_PLAYER_FROM_STATE_BAG_NAME](?\_0xA56135E0) to get the player handle
728
729
  * @param keyFilter The key to check for, or null for no filter.
729
730
  * @param bagFilter The bag ID to check for such as `entity:65535`, or null for no filter.
730
731
  * @param handler The handler function.
@@ -10993,6 +10994,13 @@ declare function N_0x56105e599cab0efa(player: number): number;
10993
10994
 
10994
10995
  declare function GetPlayerFromServerId(serverId: number): number;
10995
10996
 
10997
+ /**
10998
+ * On the server this will return the players source, on the client it will return the player handle.
10999
+ * @param bagName An internal state bag ID from the argument to a state bag change handler.
11000
+ * @return The player handle or 0 if the state bag name did not refer to a player, or the player does not exist.
11001
+ */
11002
+ declare function GetPlayerFromStateBagName(bagName: string): number;
11003
+
10996
11004
  /**
10997
11005
  * Returns the group ID the player is member of.
10998
11006
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.6121-1",
3
+ "version": "2.0.6129-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {