@citizenfx/client 2.0.12208-1 → 2.0.12461-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 +35 -0
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -15625,6 +15625,23 @@ declare function GetPedParachuteState(ped: number): number;
|
|
|
15625
15625
|
*/
|
|
15626
15626
|
declare function GetPedParachuteTintIndex(ped: number, outTintIndex?: number): number;
|
|
15627
15627
|
|
|
15628
|
+
/**
|
|
15629
|
+
* An analogue to [GET_PED_PROP_INDEX](#\_0x898CC20EA75BACD8) that returns collection local prop index (inside [GET_PED_PROP_COLLECTION_NAME](#\_0x6B5653E4) collection) instead of the global prop index.
|
|
15630
|
+
* @param ped The target ped
|
|
15631
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
15632
|
+
* @return Local drawable index of the drawable that is currently used in the given ped and component, or -1 if the ped does not have a prop at the specified anchor point
|
|
15633
|
+
*/
|
|
15634
|
+
declare function GetPedPropCollectionLocalIndex(ped: number, anchorPoint: number): number;
|
|
15635
|
+
|
|
15636
|
+
/**
|
|
15637
|
+
* An analogue to [GET_PED_PROP_INDEX](#\_0x898CC20EA75BACD8) that returns collection name instead of the global drawable index.
|
|
15638
|
+
* Should be used together with [GET_PED_PROP_COLLECTION_LOCAL_INDEX](#\_0xCD420AD1).
|
|
15639
|
+
* @param ped The target ped
|
|
15640
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
15641
|
+
* @return Collection name to which the current prop used in the given ped and anchor point belongs to. Returns null if Ped is not found, does not have a prop at the specified anchor point, or if the index is out of bounds.
|
|
15642
|
+
*/
|
|
15643
|
+
declare function GetPedPropCollectionName(ped: number, anchorPoint: number): string;
|
|
15644
|
+
|
|
15628
15645
|
/**
|
|
15629
15646
|
* Returns global prop index based on the local one. Is it a reverse to [GET_PED_COLLECTION_NAME_FROM_PROP](#\_0x8ED0C17) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP](#\_0xFBDB885F) natives.
|
|
15630
15647
|
* Props are stored inside collections. Each collection usually corresponds to a certain DCL or the base game.
|
|
@@ -19592,6 +19609,12 @@ declare function GetVehicleXenonLightsColour(vehicle: number): number;
|
|
|
19592
19609
|
*/
|
|
19593
19610
|
declare function GetVehicleXenonLightsCustomColor(vehicle: number): [boolean, number, number, number];
|
|
19594
19611
|
|
|
19612
|
+
/**
|
|
19613
|
+
* A getter for [SET_VEHICLE_XMAS_SNOW_FACTOR](#\_80cc4c9e).
|
|
19614
|
+
* @return Returns the grip factor for the vehicles wheels during xmas weather. default value is 0.2.
|
|
19615
|
+
*/
|
|
19616
|
+
declare function GetVehicleXmasSnowFactor(): number;
|
|
19617
|
+
|
|
19595
19618
|
/**
|
|
19596
19619
|
* NativeDB Introduced: v2372
|
|
19597
19620
|
*/
|
|
@@ -38286,6 +38309,12 @@ declare function N_0xd7c10c4a637992c9(): void;
|
|
|
38286
38309
|
*/
|
|
38287
38310
|
declare function LoadSpDlcMaps(): void;
|
|
38288
38311
|
|
|
38312
|
+
/**
|
|
38313
|
+
* Toggles a check that prevents attaching (networked) entities to remotely owned peds. This is disabled by default.
|
|
38314
|
+
* @param enable Whether to enable sanitization.
|
|
38315
|
+
*/
|
|
38316
|
+
declare function OnesyncEnableRemoteAttachmentSanitization(enable: boolean): void;
|
|
38317
|
+
|
|
38289
38318
|
/**
|
|
38290
38319
|
* OPEN_BOMB_BAY_DOORS
|
|
38291
38320
|
*/
|
|
@@ -56617,6 +56646,12 @@ declare function SetVehicleXenonLightsColour(vehicle: number, color: number): vo
|
|
|
56617
56646
|
*/
|
|
56618
56647
|
declare function SetVehicleXenonLightsCustomColor(vehicle: number, red: number, green: number, blue: number): void;
|
|
56619
56648
|
|
|
56649
|
+
/**
|
|
56650
|
+
* SET_VEHICLE_XMAS_SNOW_FACTOR
|
|
56651
|
+
* @param gripFactor amount of grip strength vehicle wheels have when xmas weather is active, 1.0 being normal weather grip. 0.2 is the default.
|
|
56652
|
+
*/
|
|
56653
|
+
declare function SetVehicleXmasSnowFactor(gripFactor: number): void;
|
|
56654
|
+
|
|
56620
56655
|
/**
|
|
56621
56656
|
* Overrides a floating point value from `visualsettings.dat` temporarily.
|
|
56622
56657
|
* @param name The name of the value to set, such as `pedLight.color.red`.
|