@citizenfx/client 2.0.9551-1 → 2.0.9572-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 +214 -5
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -13840,6 +13840,44 @@ declare function GetNumberOfFreeStacksOfThisSize(stackSize: number): number;
|
|
|
13840
13840
|
*/
|
|
13841
13841
|
declare function GetFreeStackSlotsCount(stackSize: number): number;
|
|
13842
13842
|
|
|
13843
|
+
/**
|
|
13844
|
+
* An analogue of [GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS](#\_0x27561561732A7842) that returns number of drawable variations inside a single collection instead of the total number across all collections.
|
|
13845
|
+
* @param ped The target ped
|
|
13846
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
13847
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
13848
|
+
* @return Number of drawables available in the given collection. Returns 0 if ped or collection does not exist.
|
|
13849
|
+
*/
|
|
13850
|
+
declare function GetNumberOfPedCollectionDrawableVariations(ped: number, componentId: number, collection: string): number;
|
|
13851
|
+
|
|
13852
|
+
/**
|
|
13853
|
+
* An analogue of [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47) that returns number of prop variations inside a single collection instead of the total number across all collections.
|
|
13854
|
+
* @param ped The target ped
|
|
13855
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
13856
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
13857
|
+
* @return Number of props available in the given collection. Returns 0 if ped or collection does not exist.
|
|
13858
|
+
*/
|
|
13859
|
+
declare function GetNumberOfPedCollectionPropDrawableVariations(ped: number, anchorPoint: number, collection: string): number;
|
|
13860
|
+
|
|
13861
|
+
/**
|
|
13862
|
+
* An alternative to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171) that uses local collection indexing instead of the global one.
|
|
13863
|
+
* @param ped The target ped
|
|
13864
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
13865
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
13866
|
+
* @param propIndex Local prop index inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_PROP_DRAWABLE_VARIATIONS](#\_0x3B6A13E1).
|
|
13867
|
+
* @return Number of texture variations available for the given prop. Returns 0 if ped or collection does not exist or index is out of bounds.
|
|
13868
|
+
*/
|
|
13869
|
+
declare function GetNumberOfPedCollectionPropTextureVariations(ped: number, anchorPoint: number, collection: string, propIndex: number): number;
|
|
13870
|
+
|
|
13871
|
+
/**
|
|
13872
|
+
* An alternative to [GET_NUMBER_OF_PED_TEXTURE_VARIATIONS](#\_0x8F7156A3142A6BAD) that uses local collection indexing instead of the global one.
|
|
13873
|
+
* @param ped The target ped
|
|
13874
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
13875
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
13876
|
+
* @param drawableId Local drawable Id inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271).
|
|
13877
|
+
* @return Number of texture variations available for the given drawable component. Returns 0 if ped or collection does not exist or index is out of bounds.
|
|
13878
|
+
*/
|
|
13879
|
+
declare function GetNumberOfPedCollectionTextureVariations(ped: number, componentId: number, collection: string, drawableId: number): number;
|
|
13880
|
+
|
|
13843
13881
|
/**
|
|
13844
13882
|
* GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS
|
|
13845
13883
|
* @param ped The ped handle.
|
|
@@ -14620,6 +14658,61 @@ declare function GetPedBoneIndex(ped: number, boneId: number): number;
|
|
|
14620
14658
|
*/
|
|
14621
14659
|
declare function GetPedCauseOfDeath(ped: number): number;
|
|
14622
14660
|
|
|
14661
|
+
/**
|
|
14662
|
+
* Gets local index inside a collection (which can be obtained using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0xD6BBA48B)) for the given global drawable ID. The collection name and index are used in functions like [SET_PED_COLLECTION_COMPONENT_VARIATION](#\_0x88711BBA).
|
|
14663
|
+
* @param ped The target ped
|
|
14664
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
14665
|
+
* @param drawableId Global drawable ID. Same as set in [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80). Global drawable ID points to drawables as if drawables from all collections for the given component are placed into one continuous array.
|
|
14666
|
+
* @return Local index inside a collection that the given global drawable ID corresponds to. Returns -1 if Ped is not found or the global index is out of bounds.
|
|
14667
|
+
*/
|
|
14668
|
+
declare function GetPedCollectionLocalIndexFromDrawable(ped: number, componentId: number, drawableId: number): number;
|
|
14669
|
+
|
|
14670
|
+
/**
|
|
14671
|
+
* Gets local index inside a collection (which can be obtained using [GET_PED_COLLECTION_NAME_FROM_PROP](#\_0x8ED0C17)) for the given global prop index. The collection name and index are used in functions like [SET_PED_COLLECTION_PROP_INDEX](#\_0x75240BCB).
|
|
14672
|
+
* @param ped The target ped
|
|
14673
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
14674
|
+
* @param propIndex Global prop index. Same as set by `drawableId` in [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F). Global prop index points to prop as if props from all collections for the given component are placed into one continuous array.
|
|
14675
|
+
* @return Local index inside a collection that the given global prop index corresponds to. Returns -1 if Ped is not found or the global index is out of bounds.
|
|
14676
|
+
*/
|
|
14677
|
+
declare function GetPedCollectionLocalIndexFromProp(ped: number, anchorPoint: number, propIndex: number): number;
|
|
14678
|
+
|
|
14679
|
+
/**
|
|
14680
|
+
* Returns name of collection under given index for the given Ped.
|
|
14681
|
+
* Collections are groups of drawable components or props available for the given Ped. Usually collection corresponds to a certain DLC or the base game. See [SET_PED_COLLECTION_COMPONENT_VARIATION](#\_0x88711BBA), [SET_PED_COLLECTION_PROP_INDEX](#\_0x75240BCB), [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271) etc natives for more details on how to work with collections.
|
|
14682
|
+
* `GET_PED_COLLECTION_NAME` can be used together with [GET_PED_COLLECTIONS_COUNT](#\_0x45946359) to list all collections attached to Ped.
|
|
14683
|
+
* @param ped The target ped
|
|
14684
|
+
* @param index The target collection index
|
|
14685
|
+
* @return Name of the collection with given index. Base game collection (always stored with index 0) is an empty string. Returns null if Ped is not found or index is out of bounds.
|
|
14686
|
+
*/
|
|
14687
|
+
declare function GetPedCollectionName(ped: number, index: number): string;
|
|
14688
|
+
|
|
14689
|
+
/**
|
|
14690
|
+
* Gets collection name for the given global drawable ID. Together with [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) is used to get collection and local index (inside the given collection) of the drawable. The collection name and index are used in functions like [SET_PED_COLLECTION_COMPONENT_VARIATION](#\_0x88711BBA).
|
|
14691
|
+
* @param ped The target ped
|
|
14692
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
14693
|
+
* @param drawableId Global drawable ID. Same as set in [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80). Global drawable ID points to drawables as if drawables from all collections for the given component are placed into one continuous array.
|
|
14694
|
+
* @return Name of the collection that the given global drawable ID corresponds to. Base game collection is an empty string. Returns null if Ped is not found or the global index is out of bounds.
|
|
14695
|
+
*/
|
|
14696
|
+
declare function GetPedCollectionNameFromDrawable(ped: number, componentId: number, drawableId: number): string;
|
|
14697
|
+
|
|
14698
|
+
/**
|
|
14699
|
+
* Gets collection name for the given global prop index. Together with [GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP](#\_0xFBDB885F) is used to get collection and local index (inside the given collection) of the prop. The collection name and index are used in functions like [SET_PED_COLLECTION_PROP_INDEX](#\_0x75240BCB).
|
|
14700
|
+
* @param ped The target ped
|
|
14701
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
14702
|
+
* @param propIndex Global prop index. Same as set by `drawableId` in [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F). Global prop index points to prop as if props from all collections for the given component are placed into one continuous array.
|
|
14703
|
+
* @return Name of the collection that the given global drawable ID corresponds to. Base game collection is an empty string. Returns null if Ped is not found or the global index is out of bounds.
|
|
14704
|
+
*/
|
|
14705
|
+
declare function GetPedCollectionNameFromProp(ped: number, anchorPoint: number, propIndex: number): string;
|
|
14706
|
+
|
|
14707
|
+
/**
|
|
14708
|
+
* Returns number of variation collections available for the given Ped.
|
|
14709
|
+
* Collections are groups of drawable components or props available for the given Ped. Usually collection corresponds to a certain DLC or the base game. See [SET_PED_COLLECTION_COMPONENT_VARIATION](#\_0x88711BBA), [SET_PED_COLLECTION_PROP_INDEX](#\_0x75240BCB), [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271) etc natives for more details on how to work with collections.
|
|
14710
|
+
* `GET_PED_COLLECTIONS_COUNT` can be used together with [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) to list all collections attached to Ped.
|
|
14711
|
+
* @param ped The target ped
|
|
14712
|
+
* @return Number of Ped variation collections. 0 if Ped is not found.
|
|
14713
|
+
*/
|
|
14714
|
+
declare function GetPedCollectionsCount(ped: number): number;
|
|
14715
|
+
|
|
14623
14716
|
/**
|
|
14624
14717
|
* GET_PED_COMBAT_MOVEMENT
|
|
14625
14718
|
*/
|
|
@@ -14717,6 +14810,18 @@ declare function GetPedDesiredMoveBlendRatio(ped: number): number;
|
|
|
14717
14810
|
*/
|
|
14718
14811
|
declare function GetPedDiesInWater(ped: number): boolean;
|
|
14719
14812
|
|
|
14813
|
+
/**
|
|
14814
|
+
* Returns global drawable index based on the local one. Is it a reverse to [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0xD6BBA48B) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) natives.
|
|
14815
|
+
* Drawables are stored inside collections. Each collection usually corresponds to a certain DCL or the base game.
|
|
14816
|
+
* If all drawables from all collections are placed into one continuous array - the global index will correspond to the index of drawable in such array. Local index is index of drawable in this array relative to the start of the given collection.
|
|
14817
|
+
* @param ped The target ped
|
|
14818
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
14819
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
14820
|
+
* @param drawableId Local drawable Id inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271).
|
|
14821
|
+
* @return Global drawable ID that corresponds to the given collection and local drawable index. Returns -1 if Ped or collection does not exist.
|
|
14822
|
+
*/
|
|
14823
|
+
declare function GetPedDrawableGlobalIndexFromCollection(ped: number, componentId: number, collection: string, drawableId: number): number;
|
|
14824
|
+
|
|
14720
14825
|
/**
|
|
14721
14826
|
* Ids
|
|
14722
14827
|
* 0 - Head
|
|
@@ -14734,6 +14839,23 @@ declare function GetPedDiesInWater(ped: number): boolean;
|
|
|
14734
14839
|
*/
|
|
14735
14840
|
declare function GetPedDrawableVariation(ped: number, componentId: number): number;
|
|
14736
14841
|
|
|
14842
|
+
/**
|
|
14843
|
+
* An analogue to [GET_PED_DRAWABLE_VARIATION](#\_0x67F3780DD425D4FC) that returns collection local drawable index (inside [GET_PED_DRAWABLE_VARIATION_COLLECTION_NAME](#\_0xBCE0AB63) collection) instead of the global drawable index.
|
|
14844
|
+
* @param ped The target ped
|
|
14845
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
14846
|
+
* @return Local drawable index of the drawable that is currently used in the given ped and component.
|
|
14847
|
+
*/
|
|
14848
|
+
declare function GetPedDrawableVariationCollectionLocalIndex(ped: number, componentId: number): number;
|
|
14849
|
+
|
|
14850
|
+
/**
|
|
14851
|
+
* An analogue to [GET_PED_DRAWABLE_VARIATION](#\_0x67F3780DD425D4FC) that returns collection name instead of the global drawable index.
|
|
14852
|
+
* Should be used together with [GET_PED_DRAWABLE_VARIATION_COLLECTION_LOCAL_INDEX](#\_0x9970386F).
|
|
14853
|
+
* @param ped The target ped
|
|
14854
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
14855
|
+
* @return Collection name to which the current drawable used in the given ped and component belongs to. Returns null if Ped is not found or index is out of bounds.
|
|
14856
|
+
*/
|
|
14857
|
+
declare function GetPedDrawableVariationCollectionName(ped: number, componentId: number): string;
|
|
14858
|
+
|
|
14737
14859
|
/**
|
|
14738
14860
|
* Use [`SetPedIlluminatedClothingGlowIntensity`](#\_0x4E90D746056E273D) to set the illuminated clothing glow intensity for a specific ped.
|
|
14739
14861
|
* @param ped The ped to get the glow intensity from.
|
|
@@ -14771,24 +14893,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
|
|
|
14771
14893
|
declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
|
|
14772
14894
|
|
|
14773
14895
|
/**
|
|
14774
|
-
* A getter for [
|
|
14896
|
+
* A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
|
|
14775
14897
|
* @param ped The target ped
|
|
14776
14898
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
14777
14899
|
*/
|
|
14778
14900
|
declare function GetPedEyeColor(ped: number): number;
|
|
14901
|
+
|
|
14779
14902
|
/**
|
|
14780
14903
|
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
14781
14904
|
* @param ped The target ped
|
|
14782
14905
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
14783
14906
|
*/
|
|
14784
|
-
declare function
|
|
14785
|
-
|
|
14907
|
+
declare function GetPedEyeColor(ped: number): number;
|
|
14786
14908
|
/**
|
|
14787
|
-
* A getter for [
|
|
14909
|
+
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
14788
14910
|
* @param ped The target ped
|
|
14789
14911
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
14790
14912
|
*/
|
|
14791
|
-
declare function
|
|
14913
|
+
declare function N_0x76bba2cee66d47e9(ped: number): number;
|
|
14792
14914
|
|
|
14793
14915
|
/**
|
|
14794
14916
|
* A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
|
|
@@ -15092,6 +15214,18 @@ declare function GetPedParachuteState(ped: number): number;
|
|
|
15092
15214
|
*/
|
|
15093
15215
|
declare function GetPedParachuteTintIndex(ped: number, outTintIndex?: number): number;
|
|
15094
15216
|
|
|
15217
|
+
/**
|
|
15218
|
+
* 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.
|
|
15219
|
+
* Props are stored inside collections. Each collection usually corresponds to a certain DCL or the base game.
|
|
15220
|
+
* If all props from all collections are placed into one continuous array - the global index will correspond to the index of the prop in such array. Local index is index of the prop in this array relative to the start of the given collection.
|
|
15221
|
+
* @param ped The target ped
|
|
15222
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
15223
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
15224
|
+
* @param propIndex Local prop index inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_PROP_DRAWABLE_VARIATIONS](#\_0x3B6A13E1).
|
|
15225
|
+
* @return Global prop index that corresponds to the given collection and local prop index. Returns -1 if Ped or collection does not exist.
|
|
15226
|
+
*/
|
|
15227
|
+
declare function GetPedPropGlobalIndexFromCollection(ped: number, anchorPoint: number, collection: string, propIndex: number): number;
|
|
15228
|
+
|
|
15095
15229
|
/**
|
|
15096
15230
|
* GET_PED_PROP_INDEX
|
|
15097
15231
|
* @param ped The ped handle.
|
|
@@ -22150,6 +22284,31 @@ declare function N_0x09e7eca981d9b210(colorID: number): boolean;
|
|
|
22150
22284
|
*/
|
|
22151
22285
|
declare function IsPedClimbing(ped: number): boolean;
|
|
22152
22286
|
|
|
22287
|
+
/**
|
|
22288
|
+
* An alternative to [IS_PED_COMPONENT_VARIATION_GEN9\_EXCLUSIVE](#\_0xC767B581) that uses local collection indexing instead of the global one.
|
|
22289
|
+
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
22290
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0xD6BBA48B) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) natives.
|
|
22291
|
+
* @param ped The target ped
|
|
22292
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
22293
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
22294
|
+
* @param drawableId Local drawable Id inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271).
|
|
22295
|
+
* @return Whether or not the ped component variation is a gen9 exclusive (stub assets).
|
|
22296
|
+
*/
|
|
22297
|
+
declare function IsPedCollectionComponentVariationGen9Exclusive(ped: number, componentId: number, collection: string, drawableId: number): boolean;
|
|
22298
|
+
|
|
22299
|
+
/**
|
|
22300
|
+
* An alternative to [IS_PED_COMPONENT_VARIATION_VALID](#\_0xE825F6B6CEA7671D) that uses local collection indexing instead of the global one.
|
|
22301
|
+
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
22302
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0xD6BBA48B) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) natives.
|
|
22303
|
+
* @param ped The target ped
|
|
22304
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
22305
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
22306
|
+
* @param drawableId Local drawable Id inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271).
|
|
22307
|
+
* @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_COLLECTION_TEXTURE_VARIATIONS](#\_0xD2C15D7).
|
|
22308
|
+
* @return Returns true if the component variation is valid. This may be useful for randomizing components using loops.
|
|
22309
|
+
*/
|
|
22310
|
+
declare function IsPedCollectionComponentVariationValid(ped: number, componentId: number, collection: string, drawableId: number, textureId: number): boolean;
|
|
22311
|
+
|
|
22153
22312
|
/**
|
|
22154
22313
|
* IS_PED_COMPONENT_VARIATION_GEN9_EXCLUSIVE
|
|
22155
22314
|
* @param ped The target ped.
|
|
@@ -47898,6 +48057,56 @@ declare function SetPedClothProne(p0: number, p1: number): void;
|
|
|
47898
48057
|
*/
|
|
47899
48058
|
declare function N_0x82a3d6d9cc2cb8e3(p0: number, p1: number): void;
|
|
47900
48059
|
|
|
48060
|
+
/**
|
|
48061
|
+
* An alternative to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80) that uses local collection indexing instead of the global one.
|
|
48062
|
+
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
48063
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0xD6BBA48B) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) natives.
|
|
48064
|
+
* @param ped The target ped
|
|
48065
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
48066
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
48067
|
+
* @param drawableId Local drawable Id inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271).
|
|
48068
|
+
* @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_COLLECTION_TEXTURE_VARIATIONS](#\_0xD2C15D7).
|
|
48069
|
+
* @param paletteId 0 to 3.
|
|
48070
|
+
*/
|
|
48071
|
+
declare function SetPedCollectionComponentVariation(ped: number, componentId: number, collection: string, drawableId: number, textureId: number, paletteId: number): void;
|
|
48072
|
+
|
|
48073
|
+
/**
|
|
48074
|
+
* An alternative to [SET_PED_PRELOAD_PROP_DATA](#\_0x2B16A3BFF1FBCE49) that uses local collection indexing instead of the global one.
|
|
48075
|
+
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
48076
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_PROP](#\_0x8ED0C17) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP](#\_0xFBDB885F) natives.
|
|
48077
|
+
* @param ped The target ped
|
|
48078
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
48079
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
48080
|
+
* @param propIndex Local prop index inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_PROP_DRAWABLE_VARIATIONS](#\_0x3B6A13E1).
|
|
48081
|
+
* @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_COLLECTION_PROP_TEXTURE_VARIATIONS](#\_0x75CAF9CC).
|
|
48082
|
+
*/
|
|
48083
|
+
declare function SetPedCollectionPreloadPropData(ped: number, anchorPoint: number, collection: string, propIndex: number, textureId: number): void;
|
|
48084
|
+
|
|
48085
|
+
/**
|
|
48086
|
+
* An alternative to [SET_PED_PRELOAD_VARIATION_DATA](#\_0x39D55A620FCB6A3A) that uses local collection indexing instead of the global one.
|
|
48087
|
+
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
48088
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_DRAWABLE](#\_0x5C612867) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_DRAWABLE](#\_0x94EB1FE4) natives.
|
|
48089
|
+
* @param ped The target ped
|
|
48090
|
+
* @param componentId One of the components from [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
|
|
48091
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
48092
|
+
* @param drawableId Local drawable Id inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS](#\_0x310D0271).
|
|
48093
|
+
* @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_COLLECTION_TEXTURE_VARIATIONS](#\_0xD2C15D7).
|
|
48094
|
+
*/
|
|
48095
|
+
declare function SetPedCollectionPreloadVariationData(ped: number, componentId: number, collection: string, drawableId: number, textureId: number): void;
|
|
48096
|
+
|
|
48097
|
+
/**
|
|
48098
|
+
* An alternative to [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F) that uses local collection indexing instead of the global one.
|
|
48099
|
+
* The local / collection relative indexing is useful because the global index may get shifted after Title Update. While local index will remain the same which simplifies migration to the newer game version.
|
|
48100
|
+
* Collection name and local index inside the collection can be obtained from the global index using [GET_PED_COLLECTION_NAME_FROM_PROP](#\_0x8ED0C17) and [GET_PED_COLLECTION_LOCAL_INDEX_FROM_PROP](#\_0xFBDB885F) natives.
|
|
48101
|
+
* @param ped The target ped
|
|
48102
|
+
* @param anchorPoint One of the anchor points from [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
|
|
48103
|
+
* @param collection Name of the collection. Empty string for the base game collection. See [GET_PED_COLLECTION_NAME](#\_0xFED5D83A) in order to list all available collections.
|
|
48104
|
+
* @param propIndex Local prop index inside the given collection. Refer to [GET_NUMBER_OF_PED_COLLECTION_PROP_DRAWABLE_VARIATIONS](#\_0x3B6A13E1).
|
|
48105
|
+
* @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_COLLECTION_PROP_TEXTURE_VARIATIONS](#\_0x75CAF9CC).
|
|
48106
|
+
* @param attach Attached or not.
|
|
48107
|
+
*/
|
|
48108
|
+
declare function SetPedCollectionPropIndex(ped: number, anchorPoint: number, collection: string, propIndex: number, textureId: number, attach: boolean): void;
|
|
48109
|
+
|
|
47901
48110
|
/**
|
|
47902
48111
|
* 100 would equal attack
|
|
47903
48112
|
* less then 50ish would mean run away
|