@citizenfx/client 2.0.7114-1 → 2.0.7129-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 +70 -35
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -3956,6 +3956,17 @@ declare function N_0xdbbc7a2432524127(vehicle: number): void;
|
|
|
3956
3956
|
*/
|
|
3957
3957
|
declare function ClearVehicleXenonLightsCustomColor(vehicle: number): void;
|
|
3958
3958
|
|
|
3959
|
+
/**
|
|
3960
|
+
* Clears the active weather type after a specific amount of time determined by `transitionTimeInMs`.
|
|
3961
|
+
* @param transitionTimeInMs Transition time in milliseconds.
|
|
3962
|
+
*/
|
|
3963
|
+
declare function ClearWeatherTypeNowPersistNetwork(transitionTimeInMs: number): void;
|
|
3964
|
+
/**
|
|
3965
|
+
* Clears the active weather type after a specific amount of time determined by `transitionTimeInMs`.
|
|
3966
|
+
* @param transitionTimeInMs Transition time in milliseconds.
|
|
3967
|
+
*/
|
|
3968
|
+
declare function N_0x0cf97f497fe7d048(transitionTimeInMs: number): void;
|
|
3969
|
+
|
|
3959
3970
|
/**
|
|
3960
3971
|
* CLEAR_WEATHER_TYPE_PERSIST
|
|
3961
3972
|
*/
|
|
@@ -5556,7 +5567,8 @@ declare function DeleteCheckpoint(checkpoint: number): void;
|
|
|
5556
5567
|
declare function DeleteChildRope(ropeId: number): void;
|
|
5557
5568
|
|
|
5558
5569
|
/**
|
|
5559
|
-
*
|
|
5570
|
+
* Delete the specified entity, and invalidate the passed handle (i.e., the in/out argument).
|
|
5571
|
+
* You might want to check if the entity exists before with [DOES_ENTITY_EXIST](#\_0x7239B21A38F536BA).
|
|
5560
5572
|
* @param entity The entity to delete.
|
|
5561
5573
|
*/
|
|
5562
5574
|
declare function DeleteEntity(entity: number): void;
|
|
@@ -16924,17 +16936,6 @@ declare function GetVehicleDirtLevel(vehicle: number): number;
|
|
|
16924
16936
|
*/
|
|
16925
16937
|
declare function GetVehicleDoorAngleRatio(vehicle: number, doorIndex: number): number;
|
|
16926
16938
|
|
|
16927
|
-
/**
|
|
16928
|
-
* See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
|
|
16929
|
-
* Returns vehicle door destroy type previously set with \_SET_VEHICLE_DOOR_DESTROY_TYPE
|
|
16930
|
-
*/
|
|
16931
|
-
declare function GetVehicleDoorDestroyType(vehicle: number, doorIndex: number): number;
|
|
16932
|
-
/**
|
|
16933
|
-
* See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
|
|
16934
|
-
* Returns vehicle door destroy type previously set with \_SET_VEHICLE_DOOR_DESTROY_TYPE
|
|
16935
|
-
*/
|
|
16936
|
-
declare function N_0xca4ac3eaae46ec7b(vehicle: number, doorIndex: number): number;
|
|
16937
|
-
|
|
16938
16939
|
/**
|
|
16939
16940
|
* enum VehicleLockStatus = {
|
|
16940
16941
|
* None = 0,
|
|
@@ -17162,6 +17163,22 @@ declare function GetVehicleIndexFromEntityIndex(entity: number): number;
|
|
|
17162
17163
|
*/
|
|
17163
17164
|
declare function GetVehicleIndicatorLights(vehicle: number): number;
|
|
17164
17165
|
|
|
17166
|
+
/**
|
|
17167
|
+
* See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
|
|
17168
|
+
* @return Returns vehicle door lock state previously set with [`SET_VEHICLE_INDIVIDUAL_DOORS_LOCKED`](#\_0xBE70724027F85BCD)
|
|
17169
|
+
*/
|
|
17170
|
+
declare function GetVehicleIndividualDoorLockStatus(vehicle: number, doorIndex: number): number;
|
|
17171
|
+
/**
|
|
17172
|
+
* See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
|
|
17173
|
+
* @return Returns vehicle door lock state previously set with [`SET_VEHICLE_INDIVIDUAL_DOORS_LOCKED`](#\_0xBE70724027F85BCD)
|
|
17174
|
+
*/
|
|
17175
|
+
declare function N_0xca4ac3eaae46ec7b(vehicle: number, doorIndex: number): number;
|
|
17176
|
+
/**
|
|
17177
|
+
* See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
|
|
17178
|
+
* @return Returns vehicle door lock state previously set with [`SET_VEHICLE_INDIVIDUAL_DOORS_LOCKED`](#\_0xBE70724027F85BCD)
|
|
17179
|
+
*/
|
|
17180
|
+
declare function GetVehicleDoorDestroyType(vehicle: number, doorIndex: number): number;
|
|
17181
|
+
|
|
17165
17182
|
/**
|
|
17166
17183
|
* _GET_VEHICLE_INTERIOR_COLOR
|
|
17167
17184
|
*/
|
|
@@ -24134,14 +24151,6 @@ declare function N_0x0cf54f20de43879c(p0: number): void;
|
|
|
24134
24151
|
*/
|
|
24135
24152
|
declare function N_0x0cf6cc51aa18f0f8(p0: number, p1: number, p2: number): number;
|
|
24136
24153
|
|
|
24137
|
-
/**
|
|
24138
|
-
* 0 as param = weird black and green screen
|
|
24139
|
-
* 0.1 - 0.99 = Prevent rain effect from falling (still sound and effects on puddles) and prevent puddles from increase/decrease, seems than it prevent any weather change too
|
|
24140
|
-
* 1 and more = "Unfreeze" rain puddles but clear weather too
|
|
24141
|
-
* When 'freezing' is enabled, it seem to also freeze value getted with GetRainLevel
|
|
24142
|
-
*/
|
|
24143
|
-
declare function N_0x0cf97f497fe7d048(p0: number): void;
|
|
24144
|
-
|
|
24145
24154
|
/**
|
|
24146
24155
|
* 0x0D01D20616FC73FB
|
|
24147
24156
|
*/
|
|
@@ -41919,7 +41928,9 @@ declare function N_0x2c654b4943bddf7c(camera: number, p1: number): void;
|
|
|
41919
41928
|
declare function SetCamDofPlanes(cam: number, p1: number, p2: number, p3: number, p4: number): void;
|
|
41920
41929
|
|
|
41921
41930
|
/**
|
|
41922
|
-
*
|
|
41931
|
+
* Specifies how much the DoF effect should be applied (Set using [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), etc.)
|
|
41932
|
+
* @param cam The camera handle
|
|
41933
|
+
* @param dofStrength Depth of Field strength (between 0.0 and 1.0)
|
|
41923
41934
|
*/
|
|
41924
41935
|
declare function SetCamDofStrength(cam: number, dofStrength: number): void;
|
|
41925
41936
|
|
|
@@ -41936,7 +41947,11 @@ declare function SetCamEffect(p0: number): void;
|
|
|
41936
41947
|
declare function SetCamFarClip(cam: number, farClip: number): void;
|
|
41937
41948
|
|
|
41938
41949
|
/**
|
|
41939
|
-
*
|
|
41950
|
+
* 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.
|
|
41951
|
+
* ### Usage Example
|
|
41952
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
41953
|
+
* @param cam The camera handle
|
|
41954
|
+
* @param farDOF Distance in in standard units
|
|
41940
41955
|
*/
|
|
41941
41956
|
declare function SetCamFarDof(cam: number, farDOF: number): void;
|
|
41942
41957
|
|
|
@@ -41967,7 +41982,11 @@ declare function SetCamMotionBlurStrength(cam: number, strength: number): void;
|
|
|
41967
41982
|
declare function SetCamNearClip(cam: number, nearClip: number): void;
|
|
41968
41983
|
|
|
41969
41984
|
/**
|
|
41970
|
-
*
|
|
41985
|
+
* 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.
|
|
41986
|
+
* ### Usage Example
|
|
41987
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
41988
|
+
* @param cam The camera handle
|
|
41989
|
+
* @param nearDOF Distance in in standard units
|
|
41971
41990
|
*/
|
|
41972
41991
|
declare function SetCamNearDof(cam: number, nearDOF: number): void;
|
|
41973
41992
|
|
|
@@ -42118,7 +42137,11 @@ declare function SetCamSplineSmoothingStyle(cam: number, smoothingStyle: number)
|
|
|
42118
42137
|
declare function N_0xd1b0f412f109ea5d(cam: number, smoothingStyle: number): void;
|
|
42119
42138
|
|
|
42120
42139
|
/**
|
|
42121
|
-
*
|
|
42140
|
+
* 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.
|
|
42141
|
+
* ### Usage Example
|
|
42142
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
42143
|
+
* @param cam The camera handle
|
|
42144
|
+
* @param toggle Boolean if the camera should use a shallow depth of field or not
|
|
42122
42145
|
*/
|
|
42123
42146
|
declare function SetCamUseShallowDofMode(cam: number, toggle: boolean): void;
|
|
42124
42147
|
|
|
@@ -44891,17 +44914,26 @@ declare function SetMinimapBlockWaypoint(toggle: boolean): void;
|
|
|
44891
44914
|
declare function SetMinimapClipType(_type: number): void;
|
|
44892
44915
|
|
|
44893
44916
|
/**
|
|
44894
|
-
* This native is used to colorize certain map components like the army base
|
|
44895
|
-
*
|
|
44896
|
-
*
|
|
44897
|
-
*
|
|
44898
|
-
*
|
|
44899
|
-
*
|
|
44900
|
-
*
|
|
44901
|
-
*
|
|
44917
|
+
* This native is used to colorize/toggle certain map components like the army base.
|
|
44918
|
+
* Component IDs 6 through 14 are used by the freemode event King of the Castle in GTA Online.
|
|
44919
|
+
* ### An incomplete list of component IDs:
|
|
44920
|
+
* * **0**: Los Santos International Airport yellow runway markers
|
|
44921
|
+
* * **1**: Sandy Shores Airfield yellow runway markers
|
|
44922
|
+
* * **2**: McKenzie Field yellow runway markers
|
|
44923
|
+
* * **6**: Vespucci Beach lifeguard building
|
|
44924
|
+
* * **7**: Top level zone of Alien Camp (Hippy Camp)
|
|
44925
|
+
* * **8**: Paleto Bay fire station drill tower
|
|
44926
|
+
* * **9** Land Act Dam tower
|
|
44927
|
+
* * **10** Pala Springs Aerial Tramway
|
|
44928
|
+
* * **11** Galileo Observatory power unit
|
|
44929
|
+
* * **12** Small zone (empty "interior") near Central Los Santos Medical Center
|
|
44930
|
+
* * **13** Richman Mansion grotto
|
|
44931
|
+
* * **14** 2 Alien Camp (Hippy Camp) circles
|
|
44932
|
+
* * **15** Fort Zancudo
|
|
44902
44933
|
* @param componentID The component ID to change.
|
|
44903
|
-
* @param toggle True to enable
|
|
44904
|
-
* @param hudColor The hudcolor index.
|
|
44934
|
+
* @param toggle True to enable/colorize, false to disable.
|
|
44935
|
+
* @param hudColor The hudcolor index, the list of hud colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/).
|
|
44936
|
+
* @return Hardcoded to always return 1 (int)
|
|
44905
44937
|
*/
|
|
44906
44938
|
declare function SetMinimapComponent(componentID: number, toggle: boolean, hudColor: number): number;
|
|
44907
44939
|
|
|
@@ -50646,7 +50678,10 @@ declare function SetUnkFloatN_0x104ForSubmarineVehicleTask(vehicle: number, valu
|
|
|
50646
50678
|
declare function SetUnkGlobalBoolRelatedToDamage(value: boolean): void;
|
|
50647
50679
|
|
|
50648
50680
|
/**
|
|
50649
|
-
*
|
|
50681
|
+
* Needs to be called every tick to make the active camera use a high depth of field.\
|
|
50682
|
+
* 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.
|
|
50683
|
+
* ### Usage Example
|
|
50684
|
+
* A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
|
|
50650
50685
|
*/
|
|
50651
50686
|
declare function SetUseHiDof(): void;
|
|
50652
50687
|
|