@citizenfx/client 2.0.4641-1 → 2.0.4664-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 +32 -0
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -668,6 +668,26 @@ declare function AddShockingEventAtPosition(eventType: number, x: number, y: num
|
|
|
668
668
|
*/
|
|
669
669
|
declare function AddShockingEventForEntity(eventType: number, entity: number, duration: number): number;
|
|
670
670
|
|
|
671
|
+
/**
|
|
672
|
+
* Adds a handler for changes to a state bag.
|
|
673
|
+
* The function called expects to match the following signature:
|
|
674
|
+
* ```ts
|
|
675
|
+
* function StateBagChangeHandler(bagName: string, key: string, value: any, reserved: number, replicated: boolean);
|
|
676
|
+
* ```
|
|
677
|
+
* * **bagName**: The internal bag ID for the state bag which changed. This is usually `player:Source`, `entity:NetID`
|
|
678
|
+
* or `localEntity:Handle`.
|
|
679
|
+
* * **key**: The changed key.
|
|
680
|
+
* * **value**: The new value stored at key. The old value is still stored in the state bag at the time this callback executes.
|
|
681
|
+
* * **reserved**: Currently unused.
|
|
682
|
+
* * **replicated**: Whether the set is meant to be replicated.
|
|
683
|
+
* At this time, the change handler can't opt to reject changes.
|
|
684
|
+
* @param keyFilter The key to check for, or null.
|
|
685
|
+
* @param bagFilter The bag ID to check for, or null.
|
|
686
|
+
* @param handler The handler function.
|
|
687
|
+
* @return A cookie to remove the change handler.
|
|
688
|
+
*/
|
|
689
|
+
declare function AddStateBagChangeHandler(keyFilter: string, bagFilter: string, handler: Function): number;
|
|
690
|
+
|
|
671
691
|
/**
|
|
672
692
|
* See description of [`ADD_STUNT_JUMP_ANGLED`](#\_0xBBE5D803A5360CBF) for detailed info. The only difference really is this one does not have the radius (or angle, not sure) floats parameters for entry and landing zones.
|
|
673
693
|
* @param x1 Jump entry left far bottom corner coordinate X.
|
|
@@ -6119,6 +6139,11 @@ declare function EndTextCommandThefeedPostVersusTu(ch1TXD: string, ch1TXN: strin
|
|
|
6119
6139
|
*/
|
|
6120
6140
|
declare function N_0xb6871b0555b02996(ch1TXD: string, ch1TXN: string, val1: number, ch2TXD: string, ch2TXN: string, val2: number): number;
|
|
6121
6141
|
|
|
6142
|
+
/**
|
|
6143
|
+
* Internal function for ensuring an entity has a state bag.
|
|
6144
|
+
*/
|
|
6145
|
+
declare function EnsureEntityStateBag(entity: number): void;
|
|
6146
|
+
|
|
6122
6147
|
/**
|
|
6123
6148
|
* Enters cursor mode, suppressing mouse movement to the game and displaying a mouse cursor instead. This function supports
|
|
6124
6149
|
* SDK infrastructure and is not intended to be used directly from your code.
|
|
@@ -25760,6 +25785,13 @@ declare function RemoveShockingEvent(event: number): boolean;
|
|
|
25760
25785
|
|
|
25761
25786
|
declare function RemoveShockingEventSpawnBlockingAreas(): void;
|
|
25762
25787
|
|
|
25788
|
+
/**
|
|
25789
|
+
* **Experimental**: This native may be altered or removed in future versions of CitizenFX without warning.
|
|
25790
|
+
* Removes a handler for changes to a state bag.
|
|
25791
|
+
* @param cookie The cookie.
|
|
25792
|
+
*/
|
|
25793
|
+
declare function RemoveStateBagChangeHandler(cookie: number): void;
|
|
25794
|
+
|
|
25763
25795
|
/**
|
|
25764
25796
|
* Appears to remove stealth kill action from memory
|
|
25765
25797
|
*/
|