# C_UIFileAsset: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_UIFileAsset

## Functions

### C_UIFileAsset.GetFileID

```lua
assetFileID = C_UIFileAsset.GetFileID(asset)
```

Returns the numeric file ID associated with a file asset.

Arguments:
- `asset`: FileAsset

Returns:
- `assetFileID`: fileID, may be nil. The file ID corresponding to the given asset. If the asset is already a file ID, it is returned unchanged; otherwise returns nil if the file path is not known to the client.

### C_UIFileAsset.IsKnownFile

```lua
isValid = C_UIFileAsset.IsKnownFile(asset)
```

Determines whether a file asset is known to the client, either as a shipped asset or a locally existing loose file.

Arguments:
- `asset`: FileAsset

Returns:
- `isValid`: bool. True if the asset is shipped with the client or refers to a known loose file. Existence or openability of loose files is not verified.

### C_UIFileAsset.IsLooseFile

```lua
isLooseFile = C_UIFileAsset.IsLooseFile(asset)
```

Determines whether a file asset refers to a known loose (local) file.

Arguments:
- `asset`: FileAsset

Returns:
- `isLooseFile`: bool. True if the asset refers to a loose file known to the client.

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
