@citizenfx/client 2.0.7113-1 → 2.0.7128-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 +46 -20
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -14054,24 +14054,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
|
|
|
14054
14054
|
declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
|
|
14055
14055
|
|
|
14056
14056
|
/**
|
|
14057
|
-
* A getter for [
|
|
14057
|
+
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
14058
14058
|
* @param ped The target ped
|
|
14059
14059
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
14060
14060
|
*/
|
|
14061
14061
|
declare function GetPedEyeColor(ped: number): number;
|
|
14062
|
-
|
|
14063
14062
|
/**
|
|
14064
14063
|
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
14065
14064
|
* @param ped The target ped
|
|
14066
14065
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
14067
14066
|
*/
|
|
14068
|
-
declare function
|
|
14067
|
+
declare function N_0x76bba2cee66d47e9(ped: number): number;
|
|
14068
|
+
|
|
14069
14069
|
/**
|
|
14070
|
-
* A getter for [
|
|
14070
|
+
* A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
|
|
14071
14071
|
* @param ped The target ped
|
|
14072
14072
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
14073
14073
|
*/
|
|
14074
|
-
declare function
|
|
14074
|
+
declare function GetPedEyeColor(ped: number): number;
|
|
14075
14075
|
|
|
14076
14076
|
/**
|
|
14077
14077
|
* A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
|
|
@@ -41919,7 +41919,9 @@ declare function N_0x2c654b4943bddf7c(camera: number, p1: number): void;
|
|
|
41919
41919
|
declare function SetCamDofPlanes(cam: number, p1: number, p2: number, p3: number, p4: number): void;
|
|
41920
41920
|
|
|
41921
41921
|
/**
|
|
41922
|
-
*
|
|
41922
|
+
* Specifies how much the DoF effect should be applied (Set using [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), etc.)
|
|
41923
|
+
* @param cam The camera handle
|
|
41924
|
+
* @param dofStrength Depth of Field strength (between 0.0 and 1.0)
|
|
41923
41925
|
*/
|
|
41924
41926
|
declare function SetCamDofStrength(cam: number, dofStrength: number): void;
|
|
41925
41927
|
|
|
@@ -41936,7 +41938,11 @@ declare function SetCamEffect(p0: number): void;
|
|
|
41936
41938
|
declare function SetCamFarClip(cam: number, farClip: number): void;
|
|
41937
41939
|
|
|
41938
41940
|
/**
|
|
41939
|
-
*
|
|
41941
|
+
* Specifies when the camera should stop being in focus. Can be used together with [`SET_USE_HI_DOF`](#\_0xA13B0222F3D94A94), [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#\_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897) and other DoF related natives.
|
|
41942
|
+
* ### Usage Example
|
|
41943
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
41944
|
+
* @param cam The camera handle
|
|
41945
|
+
* @param farDOF Distance in in standard units
|
|
41940
41946
|
*/
|
|
41941
41947
|
declare function SetCamFarDof(cam: number, farDOF: number): void;
|
|
41942
41948
|
|
|
@@ -41967,7 +41973,11 @@ declare function SetCamMotionBlurStrength(cam: number, strength: number): void;
|
|
|
41967
41973
|
declare function SetCamNearClip(cam: number, nearClip: number): void;
|
|
41968
41974
|
|
|
41969
41975
|
/**
|
|
41970
|
-
*
|
|
41976
|
+
* Specifies when the camera should start being in focus. Can be used together with [`SET_USE_HI_DOF`](#\_0xA13B0222F3D94A94), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#\_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897) and other DoF related natives.
|
|
41977
|
+
* ### Usage Example
|
|
41978
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
41979
|
+
* @param cam The camera handle
|
|
41980
|
+
* @param nearDOF Distance in in standard units
|
|
41971
41981
|
*/
|
|
41972
41982
|
declare function SetCamNearDof(cam: number, nearDOF: number): void;
|
|
41973
41983
|
|
|
@@ -42118,7 +42128,11 @@ declare function SetCamSplineSmoothingStyle(cam: number, smoothingStyle: number)
|
|
|
42118
42128
|
declare function N_0xd1b0f412f109ea5d(cam: number, smoothingStyle: number): void;
|
|
42119
42129
|
|
|
42120
42130
|
/**
|
|
42121
|
-
*
|
|
42131
|
+
* Enables or disables the usage of a shallow DOF. Needs to be set to true to use [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), etc. Doesn't need to be called every tick.
|
|
42132
|
+
* ### Usage Example
|
|
42133
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
42134
|
+
* @param cam The camera handle
|
|
42135
|
+
* @param toggle Boolean if the camera should use a shallow depth of field or not
|
|
42122
42136
|
*/
|
|
42123
42137
|
declare function SetCamUseShallowDofMode(cam: number, toggle: boolean): void;
|
|
42124
42138
|
|
|
@@ -44891,17 +44905,26 @@ declare function SetMinimapBlockWaypoint(toggle: boolean): void;
|
|
|
44891
44905
|
declare function SetMinimapClipType(_type: number): void;
|
|
44892
44906
|
|
|
44893
44907
|
/**
|
|
44894
|
-
* This native is used to colorize certain map components like the army base
|
|
44895
|
-
*
|
|
44896
|
-
*
|
|
44897
|
-
*
|
|
44898
|
-
*
|
|
44899
|
-
*
|
|
44900
|
-
*
|
|
44901
|
-
*
|
|
44908
|
+
* This native is used to colorize/toggle certain map components like the army base.
|
|
44909
|
+
* Component IDs 6 through 14 are used by the freemode event King of the Castle in GTA Online.
|
|
44910
|
+
* ### An incomplete list of component IDs:
|
|
44911
|
+
* * **0**: Los Santos International Airport yellow runway markers
|
|
44912
|
+
* * **1**: Sandy Shores Airfield yellow runway markers
|
|
44913
|
+
* * **2**: McKenzie Field yellow runway markers
|
|
44914
|
+
* * **6**: Vespucci Beach lifeguard building
|
|
44915
|
+
* * **7**: Top level zone of Alien Camp (Hippy Camp)
|
|
44916
|
+
* * **8**: Paleto Bay fire station drill tower
|
|
44917
|
+
* * **9** Land Act Dam tower
|
|
44918
|
+
* * **10** Pala Springs Aerial Tramway
|
|
44919
|
+
* * **11** Galileo Observatory power unit
|
|
44920
|
+
* * **12** Small zone (empty "interior") near Central Los Santos Medical Center
|
|
44921
|
+
* * **13** Richman Mansion grotto
|
|
44922
|
+
* * **14** 2 Alien Camp (Hippy Camp) circles
|
|
44923
|
+
* * **15** Fort Zancudo
|
|
44902
44924
|
* @param componentID The component ID to change.
|
|
44903
|
-
* @param toggle True to enable
|
|
44904
|
-
* @param hudColor The hudcolor index.
|
|
44925
|
+
* @param toggle True to enable/colorize, false to disable.
|
|
44926
|
+
* @param hudColor The hudcolor index, the list of hud colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/).
|
|
44927
|
+
* @return Hardcoded to always return 1 (int)
|
|
44905
44928
|
*/
|
|
44906
44929
|
declare function SetMinimapComponent(componentID: number, toggle: boolean, hudColor: number): number;
|
|
44907
44930
|
|
|
@@ -50646,7 +50669,10 @@ declare function SetUnkFloatN_0x104ForSubmarineVehicleTask(vehicle: number, valu
|
|
|
50646
50669
|
declare function SetUnkGlobalBoolRelatedToDamage(value: boolean): void;
|
|
50647
50670
|
|
|
50648
50671
|
/**
|
|
50649
|
-
*
|
|
50672
|
+
* Needs to be called every tick to make the active camera use a high depth of field.\
|
|
50673
|
+
* The DoF can be customized using [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#\_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897) and other DoF related natives.
|
|
50674
|
+
* ### Usage Example
|
|
50675
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
50650
50676
|
*/
|
|
50651
50677
|
declare function SetUseHiDof(): void;
|
|
50652
50678
|
|