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

# Redeem Code

{% embed url="<https://youtu.be/oULLEoSvDlY?si=FAyiAI98FsG2lv-1>" %}

## **About**

* [PURCHASE LINK](https://sqrl-scripts.tebex.io/package/6304468). This script allows admins and owners to generate codes that give players a set amount of items, cars, and money when redeemed. The codes are automatically generated in the game so there is no need to wait for the server to restart.

## Use Cases

* Server giveaways, raffles, or lotteries
* Supporters of voting rewards
* Quickly giving back lost items, cash, or cars
* Server monetization
* Rewarding players for good roleplay
* Server events or contests

## Information

* Codes are stored in a JSON file
* All code is open and NOT escrowed
* Uses permission perms
* Allows for a set amount of cars, items, and cash to be given as long as the player can hold enough of the specified object
* Config option to use code once or multiple times per character
* Config option for the maximum amount of times a code can be used in general
* Codes are case-sensitive when redeeming

## Compatibility

Technically all inventories and notify are compatible since the script is NOT escrowed but here are a few common resources that come with built-in compatibility

1. Core
   1. QBCore
   2. QBox
2. Inventory
   1. QBCore
   2. Ox\_inventory
3. Notify
   1. OBCore
   2. Ox\_Lib
   3. OkOk


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sqrlsdocs.gitbook.io/sqrl-scripts/scripts/redeem-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
