@citizenfx/client 2.0.17591-1 → 2.0.17715-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 +67 -5
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -12131,6 +12131,20 @@ declare function GetFakeWantedLevel(): number;
|
|
|
12131
12131
|
*/
|
|
12132
12132
|
declare function N_0x4c9296cbcd1b971e(): number;
|
|
12133
12133
|
|
|
12134
|
+
/**
|
|
12135
|
+
* A getter for [SET_FALL_DAMAGE_LAND_ON_FOOT_MULTIPLIER](#\_0x164A08C9).
|
|
12136
|
+
* @return Returns the fall damage multiplier applied when a ped lands **on foot** from a fall below the kill fall height threshold (i.e., when the fall does not cause instant death).
|
|
12137
|
+
The default value is `3.0`.
|
|
12138
|
+
*/
|
|
12139
|
+
declare function GetFallDamageLandOnFootMultiplier(): number;
|
|
12140
|
+
|
|
12141
|
+
/**
|
|
12142
|
+
* A getter for [SET_FALL_DAMAGE_MULTIPLIER](#\_0xF2E1A531).
|
|
12143
|
+
* @return Returns the fall damage multiplier applied to all peds when calculating fall damage from falls **below the kill fall height threshold** (i.e., when the fall does not cause instant death).
|
|
12144
|
+
The default value is `7.0`.
|
|
12145
|
+
*/
|
|
12146
|
+
declare function GetFallDamageMultiplier(): number;
|
|
12147
|
+
|
|
12134
12148
|
/**
|
|
12135
12149
|
* Gets a localized string literal from a label name. This is used to get the filename of the audio conversation associated with the provided label name.
|
|
12136
12150
|
* @param labelName The label name for which the audio conversation filename is requested.
|
|
@@ -13308,6 +13322,13 @@ declare function GetJackTarget(ped: number): number;
|
|
|
13308
13322
|
*/
|
|
13309
13323
|
declare function GetKeyForEntityInRoom(entity: number): number;
|
|
13310
13324
|
|
|
13325
|
+
/**
|
|
13326
|
+
* A getter for [SET_KILL_FALL_HEIGHT](#\_0x7E8D83E4).
|
|
13327
|
+
* @return Returns the height from which non-player peds will instantly die due to fall damage.\
|
|
13328
|
+
The default value is `10.0`.
|
|
13329
|
+
*/
|
|
13330
|
+
declare function GetKillFallHeight(): number;
|
|
13331
|
+
|
|
13311
13332
|
/**
|
|
13312
13333
|
* ```
|
|
13313
13334
|
* Landing gear states:
|
|
@@ -15624,24 +15645,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
|
|
|
15624
15645
|
declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
|
|
15625
15646
|
|
|
15626
15647
|
/**
|
|
15627
|
-
* A getter for [
|
|
15648
|
+
* A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
|
|
15628
15649
|
* @param ped The target ped
|
|
15629
15650
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
15630
15651
|
*/
|
|
15631
15652
|
declare function GetPedEyeColor(ped: number): number;
|
|
15653
|
+
|
|
15632
15654
|
/**
|
|
15633
15655
|
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
15634
15656
|
* @param ped The target ped
|
|
15635
15657
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
15636
15658
|
*/
|
|
15637
|
-
declare function
|
|
15638
|
-
|
|
15659
|
+
declare function GetPedEyeColor(ped: number): number;
|
|
15639
15660
|
/**
|
|
15640
|
-
* A getter for [
|
|
15661
|
+
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
15641
15662
|
* @param ped The target ped
|
|
15642
15663
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
15643
15664
|
*/
|
|
15644
|
-
declare function
|
|
15665
|
+
declare function N_0x76bba2cee66d47e9(ped: number): number;
|
|
15645
15666
|
|
|
15646
15667
|
/**
|
|
15647
15668
|
* A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
|
|
@@ -16293,6 +16314,13 @@ declare function GetPlayerInvincible(player: number): boolean;
|
|
|
16293
16314
|
*/
|
|
16294
16315
|
declare function GetPlayerInvincible_2(player: number): boolean;
|
|
16295
16316
|
|
|
16317
|
+
/**
|
|
16318
|
+
* A getter for [SET_PLAYER_KILL_FALL_HEIGHT](#\_0xAEF2C6A4).
|
|
16319
|
+
* @return Returns the height from which the player will instantly die due to fall damage.\
|
|
16320
|
+
The default value is `15.0`.
|
|
16321
|
+
*/
|
|
16322
|
+
declare function GetPlayerKillFallHeight(): number;
|
|
16323
|
+
|
|
16296
16324
|
/**
|
|
16297
16325
|
* GET_PLAYER_MAX_ARMOUR
|
|
16298
16326
|
*/
|
|
@@ -16363,6 +16391,7 @@ declare function GetPlayerParachuteTintIndex(player: number, tintIndex?: number)
|
|
|
16363
16391
|
|
|
16364
16392
|
/**
|
|
16365
16393
|
* Gets the ped for a specified player index.
|
|
16394
|
+
* Note: For performance reasons, usage of [`PLAYER_PED_ID`](#\_0xD80958FC74E988A6) is recommended over the use of `GetPlayerPed(-1)` when wanting to acquire your local player ped. For more information, please refer to [this](https://forum.cfx.re/t/question-difference-between-getplayerped-1-and-playerpedid/539437/2) forum post.
|
|
16366
16395
|
* @param playerId The player index, or -1 to get the local player ped.
|
|
16367
16396
|
* @return The specified player's ped, or 0 if invalid.
|
|
16368
16397
|
*/
|
|
@@ -45367,6 +45396,15 @@ declare function SetCanPedSelectWeapon(ped: number, weaponHash: string | number,
|
|
|
45367
45396
|
*/
|
|
45368
45397
|
declare function SetCanResprayVehicle(vehicle: number, state: boolean): void;
|
|
45369
45398
|
|
|
45399
|
+
/**
|
|
45400
|
+
* SET_CAR_BOOT_OPEN
|
|
45401
|
+
*/
|
|
45402
|
+
declare function SetCarBootOpen(vehicle: number): void;
|
|
45403
|
+
/**
|
|
45404
|
+
* SET_CAR_BOOT_OPEN
|
|
45405
|
+
*/
|
|
45406
|
+
declare function N_0xfc40cbf7b90ca77c(vehicle: number): void;
|
|
45407
|
+
|
|
45370
45408
|
/**
|
|
45371
45409
|
* Something to do with "high speed bump severity"?
|
|
45372
45410
|
* if (!sub_87a46("SET_CAR_HIGH_SPEED_BUMP_SEVERITY_MULTIPLIER")) {
|
|
@@ -47304,6 +47342,18 @@ declare function SetPlayerBlipPositionThisFrame(x: number, y: number): void;
|
|
|
47304
47342
|
*/
|
|
47305
47343
|
declare function SetFakeWantedLevel(fakeWantedLevel: number): void;
|
|
47306
47344
|
|
|
47345
|
+
/**
|
|
47346
|
+
* A setter for [GET_FALL_DAMAGE_LAND_ON_FOOT_MULTIPLIER](#\_0x3C8A1C92).
|
|
47347
|
+
* @param multiplier fall damage multiplier to apply when a ped lands on foot from a fall below the kill fall height threshold (i.e., when the fall does not cause instant death). Default value is `3.0`.
|
|
47348
|
+
*/
|
|
47349
|
+
declare function SetFallDamageLandOnFootMultiplier(multiplier: number): void;
|
|
47350
|
+
|
|
47351
|
+
/**
|
|
47352
|
+
* A setter for [GET_FALL_DAMAGE_MULTIPLIER](#\_0x2D6A0A83).
|
|
47353
|
+
* @param multiplier fall damage multiplier applied to all peds when calculating fall damage from falls below the kill fall height threshold (i.e., when the fall does not cause instant death). Default value is `7.0`.
|
|
47354
|
+
*/
|
|
47355
|
+
declare function SetFallDamageMultiplier(multiplier: number): void;
|
|
47356
|
+
|
|
47307
47357
|
/**
|
|
47308
47358
|
* SET_FAR_DRAW_VEHICLES
|
|
47309
47359
|
*/
|
|
@@ -48733,6 +48783,12 @@ declare function SetIslandHopperEnabled(islandName: string, toggle: boolean): vo
|
|
|
48733
48783
|
*/
|
|
48734
48784
|
declare function SetKeyMappingHideResources(hide: boolean): void;
|
|
48735
48785
|
|
|
48786
|
+
/**
|
|
48787
|
+
* A setter for [GET_KILL_FALL_HEIGHT](#\_0x884C8B5A).
|
|
48788
|
+
* @param height height from which the non-player peds will instantly die from fall damage. Default value is `10.0`.
|
|
48789
|
+
*/
|
|
48790
|
+
declare function SetKillFallHeight(height: number): void;
|
|
48791
|
+
|
|
48736
48792
|
/**
|
|
48737
48793
|
* SET_LAST_DRIVEN_VEHICLE
|
|
48738
48794
|
*/
|
|
@@ -53336,6 +53392,12 @@ declare function N_0x808519373fd336a3(toggle: boolean): void;
|
|
|
53336
53392
|
*/
|
|
53337
53393
|
declare function SetDirectorMode(toggle: boolean): void;
|
|
53338
53394
|
|
|
53395
|
+
/**
|
|
53396
|
+
* A setter for [GET_PLAYER_KILL_FALL_HEIGHT](#\_0x13BC2C63).
|
|
53397
|
+
* @param height height from which the player peds will instantly die from fall damage. Default value is `15.0`.
|
|
53398
|
+
*/
|
|
53399
|
+
declare function SetPlayerKillFallHeight(height: number): void;
|
|
53400
|
+
|
|
53339
53401
|
/**
|
|
53340
53402
|
* SET_PLAYER_LEAVE_PED_BEHIND
|
|
53341
53403
|
*/
|