@citizenfx/client 2.0.16636-1 → 2.0.16973-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 +113 -0
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -634,6 +634,22 @@ If failed to add, returns -1 (make sure you don't pass -1 to REMOVE_EXTRA_CALMIN
|
|
|
634
634
|
*/
|
|
635
635
|
declare function AddCurrentRise(xLow: number, yLow: number, xHigh: number, yHigh: number, height: number): number;
|
|
636
636
|
|
|
637
|
+
/**
|
|
638
|
+
* Adds new health config.
|
|
639
|
+
* @param configName Name of health config. Cannot be default game health config name.
|
|
640
|
+
* @param defaultHealth Default health value.
|
|
641
|
+
* @param defaultArmor Default armor value.
|
|
642
|
+
* @param fatiguedHealthThreshold Fatigued health threshold value.
|
|
643
|
+
* @param injuredHealthThreshold Injured health threshold value.
|
|
644
|
+
* @param dyingHealthThreshold Dying health threshold value.
|
|
645
|
+
* @param hurtHealthThreshold Hurt health threshold value.
|
|
646
|
+
* @param dogTakedownThreshold Dog takedown threshold value.
|
|
647
|
+
* @param writheFromBulletThreshold Writhe from bulled threshold value.
|
|
648
|
+
* @param meleeCardinalFatalAttack Melee cardinal fatal attack check value.
|
|
649
|
+
* @param invincible Invincible value.
|
|
650
|
+
*/
|
|
651
|
+
declare function AddHealthConfig(configName: string, defaultHealth: number, defaultArmor: number, defaultEndurance: number, fatiguedHealthThreshold: number, injuredHealthThreshold: number, dyingHealthThreshold: number, hurtHealthThreshold: number, dogTakedownThreshold: number, writheFromBulletThreshold: number, meleeCardinalFatalAttack: boolean, invincible: boolean): void;
|
|
652
|
+
|
|
637
653
|
/**
|
|
638
654
|
* Returns the index of the newly created hospital spawn point.
|
|
639
655
|
* p3 might be radius?
|
|
@@ -15838,6 +15854,12 @@ declare function GetMakeupRgbColor(makeupColorIndex: number): [number, number, n
|
|
|
15838
15854
|
*/
|
|
15839
15855
|
declare function GetPedMaxHealth(ped: number): number;
|
|
15840
15856
|
|
|
15857
|
+
/**
|
|
15858
|
+
* Gets a ped model's health config.
|
|
15859
|
+
* @param modelHash Ped's model.
|
|
15860
|
+
*/
|
|
15861
|
+
declare function GetPedModelHealthConfig(modelHash: string | number): number;
|
|
15862
|
+
|
|
15841
15863
|
/**
|
|
15842
15864
|
* Gets a ped model's personality type.
|
|
15843
15865
|
* @param modelHash Ped's model.
|
|
@@ -41588,6 +41610,12 @@ declare function RemoveFromItemset(p0: number, p1: number): void;
|
|
|
41588
41610
|
*/
|
|
41589
41611
|
declare function RemoveGroup(groupId: number): void;
|
|
41590
41612
|
|
|
41613
|
+
/**
|
|
41614
|
+
* Removes health config.
|
|
41615
|
+
* @param configName Removes config name. Cannot be default game health config name.
|
|
41616
|
+
*/
|
|
41617
|
+
declare function RemoveHealthConfig(configName: string): void;
|
|
41618
|
+
|
|
41591
41619
|
/**
|
|
41592
41620
|
* IPL list can be found [here](https://gist.github.com/4mmonium/4c8a076b5f712a7cc64666003009a2e7).
|
|
41593
41621
|
*/
|
|
@@ -48095,6 +48123,83 @@ declare function SetHeadBlendPaletteColor(ped: number, r: number, g: number, b:
|
|
|
48095
48123
|
*/
|
|
48096
48124
|
declare function N_0xcc9682b8951c5229(ped: number, r: number, g: number, b: number, id: number): void;
|
|
48097
48125
|
|
|
48126
|
+
/**
|
|
48127
|
+
* Sets default armor value for specific health config.
|
|
48128
|
+
* @param configName Name of health config.
|
|
48129
|
+
* @param newValue Value
|
|
48130
|
+
*/
|
|
48131
|
+
declare function SetHealthConfigDefaultArmor(configName: string, newValue: number): void;
|
|
48132
|
+
|
|
48133
|
+
/**
|
|
48134
|
+
* Sets default endurance value for specific health config.
|
|
48135
|
+
* @param configName Name of health config.
|
|
48136
|
+
* @param newValue Value
|
|
48137
|
+
*/
|
|
48138
|
+
declare function SetHealthConfigDefaultEndurance(configName: string, newValue: number): void;
|
|
48139
|
+
|
|
48140
|
+
/**
|
|
48141
|
+
* Sets default health value for specific health config.
|
|
48142
|
+
* @param configName Name of health config.
|
|
48143
|
+
* @param newValue Value
|
|
48144
|
+
*/
|
|
48145
|
+
declare function SetHealthConfigDefaultHealth(configName: string, newValue: number): void;
|
|
48146
|
+
|
|
48147
|
+
/**
|
|
48148
|
+
* Sets default dog takedown threshold value for specific health config.
|
|
48149
|
+
* @param configName Name of health config.
|
|
48150
|
+
* @param newValue Value
|
|
48151
|
+
*/
|
|
48152
|
+
declare function SetHealthConfigDogTakedownThreshold(configName: string, newValue: number): void;
|
|
48153
|
+
|
|
48154
|
+
/**
|
|
48155
|
+
* Sets default dying health threshold value for specific health config.
|
|
48156
|
+
* @param configName Name of health config.
|
|
48157
|
+
* @param newValue Value
|
|
48158
|
+
*/
|
|
48159
|
+
declare function SetHealthConfigDyingThreshold(configName: string, newValue: number): void;
|
|
48160
|
+
|
|
48161
|
+
/**
|
|
48162
|
+
* Sets default fatigued health threshold value for specific health config.
|
|
48163
|
+
* @param configName Name of health config.
|
|
48164
|
+
* @param newValue Value
|
|
48165
|
+
*/
|
|
48166
|
+
declare function SetHealthConfigFatiguedThreshold(configName: string, newValue: number): void;
|
|
48167
|
+
|
|
48168
|
+
/**
|
|
48169
|
+
* Sets default hurt health threshold value for specific health config.
|
|
48170
|
+
* @param configName Name of health config.
|
|
48171
|
+
* @param newValue Value
|
|
48172
|
+
*/
|
|
48173
|
+
declare function SetHealthConfigHurtThreshold(configName: string, newValue: number): void;
|
|
48174
|
+
|
|
48175
|
+
/**
|
|
48176
|
+
* Sets default injured health threshold value for specific health config.
|
|
48177
|
+
* @param configName Name of health config.
|
|
48178
|
+
* @param newValue Value
|
|
48179
|
+
*/
|
|
48180
|
+
declare function SetHealthConfigInjuredThreshold(configName: string, newValue: number): void;
|
|
48181
|
+
|
|
48182
|
+
/**
|
|
48183
|
+
* Sets default invincible value for specific health config.
|
|
48184
|
+
* @param configName Name of health config.
|
|
48185
|
+
* @param newValue Value
|
|
48186
|
+
*/
|
|
48187
|
+
declare function SetHealthConfigInvincible(configName: string, newValue: boolean): void;
|
|
48188
|
+
|
|
48189
|
+
/**
|
|
48190
|
+
* Sets default melee cardinal fatal attack value for specific health config.
|
|
48191
|
+
* @param configName Name of health config.
|
|
48192
|
+
* @param newValue Value
|
|
48193
|
+
*/
|
|
48194
|
+
declare function SetHealthConfigMeleeFatalAttack(configName: string, newValue: boolean): void;
|
|
48195
|
+
|
|
48196
|
+
/**
|
|
48197
|
+
* Sets default writhe from bullet threshold value for specific health config.
|
|
48198
|
+
* @param configName Name of health config.
|
|
48199
|
+
* @param newValue Value
|
|
48200
|
+
*/
|
|
48201
|
+
declare function SetHealthConfigWritheFromBulletThreshold(configName: string, newValue: number): void;
|
|
48202
|
+
|
|
48098
48203
|
/**
|
|
48099
48204
|
* SET_HEALTH_HUD_DISPLAY_VALUES
|
|
48100
48205
|
*/
|
|
@@ -51845,6 +51950,14 @@ declare function SetPedMinGroundTimeForStungun(ped: number, minTimeInMs: number)
|
|
|
51845
51950
|
*/
|
|
51846
51951
|
declare function SetPedMinMoveBlendRatio(ped: number, value: number): void;
|
|
51847
51952
|
|
|
51953
|
+
/**
|
|
51954
|
+
* Sets a ped model's health config.
|
|
51955
|
+
* Takes effect only after setting player model with `SET_PLAYER_MODEL`.
|
|
51956
|
+
* @param modelHash Ped's model.
|
|
51957
|
+
* @param configName Name of health config.
|
|
51958
|
+
*/
|
|
51959
|
+
declare function SetPedModelHealthConfig(modelHash: string | number, configName: string): void;
|
|
51960
|
+
|
|
51848
51961
|
/**
|
|
51849
51962
|
* SET_PED_MODEL_IS_SUPPRESSED
|
|
51850
51963
|
*/
|