> For the complete documentation index, see [llms.txt](https://5scripts-1.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://5scripts-1.gitbook.io/docs/assets/5s_luckywheel/standalone.md).

# Standalone

5s\_luckywheel runs on any framework, or standalone. It touches the bridge in three small spots:

* **Identity:** `getIdentifier`, works out of the box on standalone.
* **Money:** `getMoney`, `removeMoney`, `addMoney`, only when bets are paid in cash.
* **Inventory:** `getItemCount`, `removeItem`, `addItem`, only when bets are paid in items.

{% hint style="info" %}
Shared mechanism: [5s\_lib > Standalone & Custom Frameworks](/docs/assets/5s_lib/standalone.md).
{% endhint %}

## Pick your currency

`Config.requiredItemToPlay.type` decides what the wheel charges and pays out:

* `"item"` uses an inventory item (no framework money needed). Set a supported inventory in `5s_lib/config.lua`, or fill the standalone stubs (`getItemCount`, `removeItem`, `addItem`). This is the simplest standalone path.
* `"money"` uses cash. On the standalone framework the money functions are stubs (they warn and do nothing), so implement them in the standalone bridge file first:

```lua
-- 5s_lib/resource/bridge/framework/standalone/server.lua
frameworkObj.getMoney    = function(source) return exports.my_economy:get(source) end
frameworkObj.addMoney    = function(source, amount) exports.my_economy:add(source, amount) end
frameworkObj.removeMoney = function(source, amount) exports.my_economy:remove(source, amount) end
```

Identity needs no setup, so the only choice is item bets (easiest) or cash bets (implement money).
