@citizenfx/client 2.0.6117-1 → 2.0.6124-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.
- package/natives_universal.d.ts +18 -2
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -724,8 +724,10 @@ 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
|
-
*
|
|
728
|
-
*
|
|
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
|
|
729
|
+
* @param keyFilter The key to check for, or null for no filter.
|
|
730
|
+
* @param bagFilter The bag ID to check for such as `entity:65535`, or null for no filter.
|
|
729
731
|
* @param handler The handler function.
|
|
730
732
|
* @return A cookie to remove the change handler.
|
|
731
733
|
*/
|
|
@@ -8087,6 +8089,13 @@ declare function GetEntityForwardX(entity: number): number;
|
|
|
8087
8089
|
*/
|
|
8088
8090
|
declare function GetEntityForwardY(entity: number): number;
|
|
8089
8091
|
|
|
8092
|
+
/**
|
|
8093
|
+
* Returns the entity handle for the specified state bag name. For use with [ADD_STATE_BAG_CHANGE_HANDLER](?\_0x5BA35AAF).
|
|
8094
|
+
* @param bagName An internal state bag ID from the argument to a state bag change handler.
|
|
8095
|
+
* @return The entity handle or 0 if the state bag name did not refer to an entity, or the entity does not exist.
|
|
8096
|
+
*/
|
|
8097
|
+
declare function GetEntityFromStateBagName(bagName: string): number;
|
|
8098
|
+
|
|
8090
8099
|
/**
|
|
8091
8100
|
* Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
|
|
8092
8101
|
* @param entity The entity to get the heading from.
|
|
@@ -10985,6 +10994,13 @@ declare function N_0x56105e599cab0efa(player: number): number;
|
|
|
10985
10994
|
|
|
10986
10995
|
declare function GetPlayerFromServerId(serverId: number): number;
|
|
10987
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
|
+
|
|
10988
11004
|
/**
|
|
10989
11005
|
* Returns the group ID the player is member of.
|
|
10990
11006
|
*/
|