Usage
Applying a Blindfold
Inventory Usage (ESX/QB): A player uses the
blindfold
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.
Removing a Blindfold
A player (or another player) can use the
scissors
item to remove the blindfold.If
RS.RemoveScissorsAfterUse = true
, 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).
Locale-Specific Warnings
If no player is nearby, it displays
RS.Locales[RS.Language].warning
(e.g., βThere are no players nearby!β in English).You can easily extend or add new locales in
RS.Locales
.
Framework Detection
The script calls
getFramework()
to see if ESX or QBCore is running. If neither is found, you may see an error in the console indicating no compatible framework.
Last updated