@citizenfx/client 2.0.12255-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.
@@ -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.
@@ -38292,6 +38309,12 @@ declare function N_0xd7c10c4a637992c9(): void;
38292
38309
  */
38293
38310
  declare function LoadSpDlcMaps(): void;
38294
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
+
38295
38318
  /**
38296
38319
  * OPEN_BOMB_BAY_DOORS
38297
38320
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.12255-1",
3
+ "version": "2.0.12461-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {