@citizenfx/client 2.0.7510-1 → 2.0.7515-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/index.d.ts +2 -0
- package/natives_universal.d.ts +36 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -83,10 +83,12 @@ type CitizenImmediate = Omit<CitizenTimer, 'refresh'>;
|
|
|
83
83
|
declare var Citizen: CitizenInterface;
|
|
84
84
|
|
|
85
85
|
declare function addRawEventListener(eventName: string, callback: Function): void
|
|
86
|
+
declare function setMaxRawEventListeners(max: number): void
|
|
86
87
|
|
|
87
88
|
declare function addEventListener(eventName: string, callback: Function, netSafe?: boolean): void
|
|
88
89
|
declare function on(eventName: string, callback: Function): void
|
|
89
90
|
declare function AddEventHandler(eventName: string, callback: Function): void
|
|
91
|
+
declare function setMaxEventListeners(max: number): void
|
|
90
92
|
|
|
91
93
|
declare function addNetEventListener(eventName: string, callback: Function): void
|
|
92
94
|
declare function onNet(eventName: string, callback: Function): void
|
package/natives_universal.d.ts
CHANGED
|
@@ -41438,41 +41438,50 @@ declare function N_0x90b6da738a9a25da(range: number): void;
|
|
|
41438
41438
|
declare function SetSomeVehicleDensityMultiplierThisFrame(range: number): void;
|
|
41439
41439
|
|
|
41440
41440
|
/**
|
|
41441
|
-
*
|
|
41442
|
-
* gtaforums.com/topic/795622-audio-for-mods/
|
|
41443
|
-
* All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/FTeAj4yZ
|
|
41444
|
-
* Yes
|
|
41441
|
+
* Sets the specified ped to use a specific voice different to the one associated with their model.
|
|
41445
41442
|
*/
|
|
41446
|
-
declare function SetAmbientVoiceName(ped: number,
|
|
41443
|
+
declare function SetAmbientVoiceName(ped: number, voiceName: string): void;
|
|
41447
41444
|
|
|
41448
41445
|
/**
|
|
41449
|
-
*
|
|
41446
|
+
* Sets the specified ped to use a specific voice different to the one associated with their model.
|
|
41450
41447
|
*/
|
|
41451
41448
|
declare function SetAmbientVoiceNameHash(ped: number, hash: string | number): void;
|
|
41452
41449
|
/**
|
|
41453
|
-
*
|
|
41450
|
+
* Sets the specified ped to use a specific voice different to the one associated with their model.
|
|
41454
41451
|
*/
|
|
41455
41452
|
declare function N_0x9a53ded9921de990(ped: number, hash: string | number): void;
|
|
41453
|
+
/**
|
|
41454
|
+
* Sets the specified ped to use a specific voice different to the one associated with their model.
|
|
41455
|
+
*/
|
|
41456
|
+
declare function SetAmbientVoiceNameHash(ped: number, hash: string | number): void;
|
|
41456
41457
|
|
|
41457
41458
|
/**
|
|
41458
41459
|
* SET_AMBIENT_ZONE_LIST_STATE
|
|
41460
|
+
* @param enabled Enables/disables a list of ambient zones for the duration of this script
|
|
41461
|
+
* @param forceUpdate Set to true to force a zone to become disabled even if its currently active, default behaviour is to only change state when the player leaves the zone.
|
|
41459
41462
|
*/
|
|
41460
|
-
declare function SetAmbientZoneListState(
|
|
41463
|
+
declare function SetAmbientZoneListState(zoneListName: string, enabled: boolean, forceUpdate: boolean): void;
|
|
41461
41464
|
|
|
41462
41465
|
/**
|
|
41463
41466
|
* SET_AMBIENT_ZONE_LIST_STATE_PERSISTENT
|
|
41467
|
+
* @param enabled Enables/disables a list of ambient zones persistently
|
|
41468
|
+
* @param forceUpdate Set to true to force a zone to become disabled even if its currently active, default behaviour is to only change state when the player leaves the zone.
|
|
41464
41469
|
*/
|
|
41465
|
-
declare function SetAmbientZoneListStatePersistent(ambientZone: string,
|
|
41470
|
+
declare function SetAmbientZoneListStatePersistent(ambientZone: string, enabled: boolean, forceUpdate: boolean): void;
|
|
41466
41471
|
|
|
41467
41472
|
/**
|
|
41468
41473
|
* SET_AMBIENT_ZONE_STATE
|
|
41474
|
+
* @param enabled Enables/disables an ambient zone for the duration of this script
|
|
41475
|
+
* @param forceUpdate Set to true to force a zone to become disabled even if its currently active, default behaviour is to only change state when the player leaves the zone.
|
|
41469
41476
|
*/
|
|
41470
|
-
declare function SetAmbientZoneState(zoneName: string,
|
|
41477
|
+
declare function SetAmbientZoneState(zoneName: string, enabled: boolean, forceUpdate: boolean): void;
|
|
41471
41478
|
|
|
41472
41479
|
/**
|
|
41473
41480
|
* SET_AMBIENT_ZONE_STATE_PERSISTENT
|
|
41481
|
+
* @param enabled Enables/disables an ambient zone for the duration of this script
|
|
41482
|
+
* @param forceUpdate Set to true to force a zone to become disabled even if its currently active, default behaviour is to only change state when the player leaves the zone.
|
|
41474
41483
|
*/
|
|
41475
|
-
declare function SetAmbientZoneStatePersistent(
|
|
41484
|
+
declare function SetAmbientZoneStatePersistent(zoneName: string, enabled: boolean, forceUpdate: boolean): void;
|
|
41476
41485
|
|
|
41477
41486
|
/**
|
|
41478
41487
|
* SET_AMMO_IN_CLIP
|
|
@@ -41508,7 +41517,15 @@ declare function SetAnimRate(p0: number, p1: number, p2: number, p3: boolean): v
|
|
|
41508
41517
|
declare function SetAnimWeight(p0: number, p1: number, p2: number, p3: number, p4: boolean): void;
|
|
41509
41518
|
|
|
41510
41519
|
/**
|
|
41511
|
-
*
|
|
41520
|
+
* cpp
|
|
41521
|
+
* enum eAudAnimalMood {
|
|
41522
|
+
* AUD_ANIMAL_MOOD_ANGRY,
|
|
41523
|
+
* AUD_ANIMAL_MOOD_PLAYFUL,
|
|
41524
|
+
* AUD_ANIMAL_MOOD_NUM_MOODS
|
|
41525
|
+
* }
|
|
41526
|
+
* ## Parameters
|
|
41527
|
+
* * **animal**:
|
|
41528
|
+
* * **mood**: Refer to eAudAnimalMood
|
|
41512
41529
|
*/
|
|
41513
41530
|
declare function SetAnimalMood(animal: number, mood: number): void;
|
|
41514
41531
|
|
|
@@ -41536,6 +41553,8 @@ declare function SetBlackout(state: boolean): void;
|
|
|
41536
41553
|
declare function SetArtificialLightsStateAffectsVehicles(toggle: boolean): void;
|
|
41537
41554
|
|
|
41538
41555
|
/**
|
|
41556
|
+
* Generic interface to toggle audio functionality, with auto-reset on script termination and support for multiple script threads
|
|
41557
|
+
* ```
|
|
41539
41558
|
* Possible flag names:
|
|
41540
41559
|
* "ActivateSwitchWheelAudio"
|
|
41541
41560
|
* "AllowAmbientSpeechInSlowMo"
|
|
@@ -41642,13 +41661,17 @@ declare function SetArtificialLightsStateAffectsVehicles(toggle: boolean): void;
|
|
|
41642
41661
|
* ID: 61 | Hash: 0x1F7F6423
|
|
41643
41662
|
* ID: 62 | Hash: 0xE24C3AA6
|
|
41644
41663
|
* ID: 63 | Hash: 0xBFFDD2B7
|
|
41664
|
+
* ```
|
|
41645
41665
|
*/
|
|
41646
41666
|
declare function SetAudioFlag(flagName: string, toggle: boolean): void;
|
|
41647
41667
|
|
|
41648
41668
|
/**
|
|
41649
41669
|
* SET_AUDIO_SCENE_VARIABLE
|
|
41670
|
+
* @param scene name of the scene
|
|
41671
|
+
* @param variableName name of the variable to add/change
|
|
41672
|
+
* @param value value to set the variable to
|
|
41650
41673
|
*/
|
|
41651
|
-
declare function SetAudioSceneVariable(scene: string,
|
|
41674
|
+
declare function SetAudioSceneVariable(scene: string, variableName: string, value: number): void;
|
|
41652
41675
|
|
|
41653
41676
|
/**
|
|
41654
41677
|
* Set a delay in milliseconds for the audio to be cleaned up when the script finishes.
|