---
name: "getObjectDLC"
type: command
status: ok
groups: ["DLC"]
arma3_since: "1.36"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getObjectDLC
revid: 369364
updated: 2024-09-03T18:43:08Z
---

# getObjectDLC

*Command · DLC · Arma 3 v1.36*

Locality: arguments **global**

## Description

Returns appID of the DLC the object belongs to or [nil](../commands/nil.md) if object is vanilla.

## Syntax

```sqf
getObjectDLC obj
```

**Parameters:**

- `obj`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md) (or [Nothing](../topics/Nothing.md) if vanilla item)

## Examples

### Example 1

```sqf
_appID = getObjectDLC cursorTarget;
if (!isNil "_appID") then {
    hint format ["This object belongs to DLC with id: %1", _appID];
} else {
    hint "This object is vanilla";
};
```

### Example 2

```sqf
_akm = createSimpleObject ["A3\Weapons_F_Exp\Rifles\AKM\AKM_F.p3d",getPosASL player];
getObjectDLC _akm;    // 395180
```

## See also

[getDLCs](../commands/getDLCs.md) · [getPersonUsedDLCs](../commands/getPersonUsedDLCs.md) · [getMissionDLCs](../commands/getMissionDLCs.md) · [getDLCAssetsUsageByName](../commands/getDLCAssetsUsageByName.md) · [getDLCAssetsUsage](../commands/getDLCAssetsUsage.md) · [getAssetDLCInfo](../commands/getAssetDLCInfo.md)

<sub>Source: [BI Community Wiki — getObjectDLC](https://community.bistudio.com/wiki/getObjectDLC) (revision 369364).</sub>
