@citizenfx/client 2.0.6116-1 → 2.0.6121-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 +10 -2
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -724,8 +724,9 @@ 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
|
-
* @param
|
|
727
|
+
* If bagName refers to an entity, use [GET_ENTITY_FROM_STATE_BAG_NAME](?\_0x4BDF1867) to get the entity handle
|
|
728
|
+
* @param keyFilter The key to check for, or null for no filter.
|
|
729
|
+
* @param bagFilter The bag ID to check for such as `entity:65535`, or null for no filter.
|
|
729
730
|
* @param handler The handler function.
|
|
730
731
|
* @return A cookie to remove the change handler.
|
|
731
732
|
*/
|
|
@@ -8087,6 +8088,13 @@ declare function GetEntityForwardX(entity: number): number;
|
|
|
8087
8088
|
*/
|
|
8088
8089
|
declare function GetEntityForwardY(entity: number): number;
|
|
8089
8090
|
|
|
8091
|
+
/**
|
|
8092
|
+
* Returns the entity handle for the specified state bag name. For use with [ADD_STATE_BAG_CHANGE_HANDLER](?\_0x5BA35AAF).
|
|
8093
|
+
* @param bagName An internal state bag ID from the argument to a state bag change handler.
|
|
8094
|
+
* @return The entity handle or 0 if the state bag name did not refer to an entity, or the entity does not exist.
|
|
8095
|
+
*/
|
|
8096
|
+
declare function GetEntityFromStateBagName(bagName: string): number;
|
|
8097
|
+
|
|
8090
8098
|
/**
|
|
8091
8099
|
* Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
|
|
8092
8100
|
* @param entity The entity to get the heading from.
|