> For the complete documentation index, see [llms.txt](https://tru-development.gitbook.io/tru-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tru-development.gitbook.io/tru-development-docs/tru-lootcases/usage-and-integrations.md). Agents can also search and read this documentation through its [MCP server](https://tru-development.gitbook.io/tru-development-docs/~gitbook/mcp).

# Usage and Integrations

Documentation / Tru-LootCases

## Usage and Integrations

Use a case from your inventory. The client export is `useCase`; the supplied ox\_inventory snippets use `tru-lootcases:client:useCase`. The test command `/lootcase common_case` is disabled by default (`Config.AllowCommandTesting = false`). Keep it disabled on production servers.

[Preview video](https://www.youtube.com/watch?v=xKlzgcq4YbY)

Included knife assets are credited to [Paulo Safky](https://github.com/paulosafky/s_csgo_knives); respect the original license.

### In-game verification <a href="#in-game-verification" id="in-game-verification"></a>

Give a test player a common case, open it, confirm one case is consumed and the reward is received. Repeat with each case type.

### Integration guidance <a href="#integration-guidance" id="integration-guidance"></a>

Use valid inventory item identifiers and test with a nearly full inventory. Keep command testing disabled in production. Keep custom integration changes separate from protected resource logic. When calling an export, use the actual running resource name.

### Reward acceptance testing <a href="#reward-acceptance-testing" id="reward-acceptance-testing"></a>

Use a case from the inventory and verify that the case count decreases and the awarded item or money matches the result. Repeat with a nearly full inventory and record how the resource handles the claim. Test each case independently after changing its reward table. Do not infer that a rare reward is broken simply because it does not appear in a small number of openings.
