Pepperspray Script + Weapon
Add a realistic pepper spray weapon to your FiveM server. This standalone script applies a configurable paralysis effect...
Key Features
Works with ESX • QBCore • Qbox
Available in a bundle!
Save 30% when you purchase this package as part of the Pepperspray, Police Shield & Bodybag Bundle.
View bundleWhat's included:
- Full script files
- Configuration files
- Installation documentation
- Lifetime updates
- Discord support
Overview
Are you looking to introduce pepper spray to the arsenal of your police department, or add a new unique weapon to your server? Look no further! This script includes a new addon-weapon, which can be used just like any other existing weapon. The script detects whenever you hit another player with the pepper spray, and applies a configurable effect to the player which temporarily paralyses the target.
Features
- This is a standalone script and it does not require any other scripts in order to run. A job-check for esx and qbcore is included which checks if a player is police before applying the pepper spray effect.
- An addon-weapon by the name of
weapon_peppersprayis included in the files. - The pepper spray effect is configurable, as well as the total effect time.
- The maximum range and angle w.r.t. the target can be configured, at which a target can be pepper sprayed.
- Optimized to run at 0 ms when the script is idle, and a maximum of 0.03 ms when the pepper spray effect is applied.
- If you use skinchanger, you can add pieces of clothing which give you immunity to the pepper spray effect. Other scripts handling player skins can also be implemented, as the corresponding function is accessible.
- The normal version is encrypted, but key functions are still accessible via bridge code.
- CodeM-Inventory is known to not function properly with the pepper-spray, we cannot offer support in this case.
Installation
- Download the resource from portal.cfx.re (Assets > Granted Assets)
- Extract the files and move the resource folder to your server's resources directory
- Add to server.cfg by adding:
ensure gs_pepperspray - Restart your server to load the resource
- Configure (optional) by editing the config.lua file in the resource folder
Configuration
All scripts include easy-to-edit configuration files. Common settings include:
- Language/localization options
- Feature toggles
- Price and economy settings
- Notification preferences
Escrow vs Source: Which Should You Choose?
Escrow (Encrypted)
Best for server owners who want plug-and-play functionality.
- Protected code files
- Easy configuration via config files
- Same features as source version
Source (Unencrypted)
Best for developers who need full customization.
- 100% editable code
- Full customization freedom
- Same features as escrow version
Same features; editability differs.
What others say
"Very cool was just looking for this! Good price too!"
- Muwah