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

# Installation

1. Drop the `s0u_lottery` folder into your server's `resources` directory.
2. Add `ensure s0u_lottery` to your `server.cfg` **after** your framework resource.
3. Import `s0u_lottery.sql` into your database.
4. Add ace permissions to `server.cfg` (see Permissions).
5. Configure `config.lua` to match your server setup.
6. If using `Config.TicketLotteryType = 'item'`, register the item in your inventory (see Inventory Setup).
7. Restart your server.
8. Enjoy the script!
