Description
Returns DLC information about given object or model.
Syntax
Syntax 1
getAssetDLCInfo asset
Parameters:
Returns: Array with [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName]
- isDlc: Boolean - the asset belongs to a DLC
- isOwned: Boolean
- isInstalled: Boolean
- isAvailable: Boolean
- appID: String - actual steam item ID or "0" for none or "-1" for unknown
- DLCName: String - actual DLC name or ""
Syntax 2
getAssetDLCInfo [class, config]
Parameters:
class: String - class name of the assetconfig: Config - (Optional, defaultconfigFile >> "CfgVehicles") config in which to search
Returns: Array with [isDlc, isOwned, isInstalled, isAvailable, appID, DLCName]
- isDlc: Boolean - the asset belongs to a DLC
- isOwned: Boolean
- isInstalled: Boolean
- isAvailable: Boolean
- appID: String - actual steam item ID or "0" for none or "-1" for unknown
- DLCName: String - actual DLC name or ""
Examples
Example 1
getAssetDLCInfo player;
Example 2
getAssetDLCInfo "a3\Weapons_F_Enoch\Rifles\MSBS\MSBS65_F";
Example 3
getAssetDLCInfo ["C_Van_01_transport_F"];
Example 4
getAssetDLCInfo ["arifle_AK12_F", configFile >> "CfgWeapons"];
See also
getDLCs · getObjectDLC · getPersonUsedDLCs · getMissionDLCs · getDLCAssetsUsageByName · getDLCAssetsUsage