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

# Usage

1. **Applying a Blindfold**
   * **Inventory Usage (ESX/QB):** A player uses the <mark style="color:red;">`blindfold`</mark> item near another player. The script checks proximity; if close enough, it applies a vision-limiting effect.
   * **Messages & Animations (Optional):** If your script triggers an animation or progress bar, players see “You are using a blindfold...” while the effect applies.
2. **Removing a Blindfold**
   * A player (or another player) can use the <mark style="color:red;">`scissors`</mark> item to remove the blindfold.
   * If <mark style="color:red;">`RS.RemoveScissorsAfterUse = true`</mark>, the item disappears from inventory upon use.
   * The script can also automatically remove the blindfold after a certain condition or time (if you’ve coded that).
3. **Locale-Specific Warnings**
   * If no player is nearby, it displays <mark style="color:red;">`RS.Locales[RS.Language].warning`</mark> (e.g., “There are no players nearby!” in English).
   * You can easily extend or add new locales in <mark style="color:red;">`RS.Locales`</mark>.
4. **Framework Detection**
   * The script calls <mark style="color:red;">`getFramework()`</mark> to see if ESX or QBCore is running. If neither is found, you may see an error in the console indicating no compatible framework.
