GameFiles:getVariantComponent: Difference between revisions
(Created page with " {{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''componentHash:''' {{RageType|number}} *'''variantComponentIndex:''' {{RageType|number}} ===Return value=== *''' {{RageType|GetVariantComponentResult}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.files.getVariantComponent(componentHash, variantComponentIndex) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{GameFiles_functions...") |
No edit summary |
||
| Line 8: | Line 8: | ||
===Return value=== | ===Return value=== | ||
*''' {{RageType| | *''' {{RageType|object}} ''' { nameHash: number; enumValue: number; componentType: number; } | ||
==Syntax== | ==Syntax== | ||
Latest revision as of 10:37, 14 August 2024
Client-Side Function
JavaScript Syntax
Required Params
- componentHash: number
- variantComponentIndex: number
Return value
- object { nameHash: number; enumValue: number; componentType: number; }
Syntax
mp.game.files.getVariantComponent(componentHash, variantComponentIndex)
Example
//todo
See also
- mp.game.files.getNumTattooShopDlcItems
- mp.game.files.getTattooShopDlcItemData
- mp.game.files.initShopPedComponent
- mp.game.files.initShopPedProp
- mp.game.files.setupShopPedApparelQuery
- mp.game.files.setupShopPedApparelQueryTu
- mp.game.files.getShopPedQueryComponent
- mp.game.files.getShopPedComponent
- mp.game.files.getShopPedQueryProp
- mp.game.files.getShopPedProp
- mp.game.files.getHashNameForComponent
- mp.game.files.getHashNameForProp
- mp.game.files.getShopPedApparelVariantComponentCount
- mp.game.files.getShopPedApparelVariantPropCount
- mp.game.files.getVariantComponent
- mp.game.files.getVariantProp
- mp.game.files.getShopPedApparelForcedComponentCount
- mp.game.files.getShopPedApparelForcedPropCount
- mp.game.files.getForcedComponent
- mp.game.files.getForcedProp
- mp.game.files.doesShopPedApparelHaveRestrictionTag
- mp.game.files.setupShopPedOutfitQuery
- mp.game.files.getShopPedQueryOutfit
- mp.game.files.getShopPedOutfit
- mp.game.files.getShopPedOutfitLocate
- mp.game.files.getShopPedOutfitPropVariant
- mp.game.files.getShopPedOutfitComponentVariant
- mp.game.files.getNumDlcVehicles
- mp.game.files.getDlcVehicleModel
- mp.game.files.getDlcVehicleData
- mp.game.files.getDlcVehicleFlags
- mp.game.files.getNumDlcWeapons
- mp.game.files.getNumDlcWeaponsSp
- mp.game.files.getDlcWeaponData
- mp.game.files.getDlcWeaponDataSp
- mp.game.files.getNumDlcWeaponComponents
- mp.game.files.getNumDlcWeaponComponentsSp
- mp.game.files.getDlcWeaponComponentData
- mp.game.files.getDlcWeaponComponentDataSp
- mp.game.files.isContentItemLocked
- mp.game.files.isDlcVehicleMod
- mp.game.files.getDlcVehicleModLockHash
- mp.game.files.loadContentChangeSetGroup
- mp.game.files.unloadContentChangeSetGroup
- mp.game.files.getNumPropsFromOutfit
- mp.game.files.getNumForcedComponents
- mp.game.files.getPropFromOutfit
- mp.game.files.isDlcDataEmpty