A simple taser cartridge script, fully compatible with QBCore. Supports multiple taser cartridges in one taser, plays an animation on reload, shows QBCore notifications informing the player of the current state of their taser (out of ammo, already loaded, etc).
Preview: Watch myTasers preview | Streamable
Purchase: 3.99€ + Tebex fees
Features:
- Tasers now have a limited amount of cartridges, set in the config file.
- Taser cartridges are now an item that is required to reload the taser.
- Reloading the cartridge plays an animation, as seen in the showcase.
- Configurable variables include: max amount of loaded cartridges, reload speed, item ID for the taser cartridges, notifications toggle, animations toggle, and more!
- Language support: English, Brazilian Portuguese, German, Polish, Swedish, Hungarian and Slovak! (you can add your own language support too, a tutorial is included) (translated by native speakers)
Performance:
- 0.00ms idle while the taser is not equipped
- 0.01ms-0.02ms idle with a loaded taser equipped
- 0.02ms with an empty taser equipped
Requirements:
- qb-core (up-to-date + dependencies)
- qb-inventory (or equivalent (+ dependencies)) OR ox_inventory (+ dependencies)
Protected by FiveM Asset Escrow
Accessible files: config.lua, locales (language files), fxmanifest.lua
Warning: Does not include a way to acquire the taser cartridge item in-game. You’ll have to add it to a shop or spawn it in yourself.
14/06/2023 - Update 1.1.0
- Now compatible with ox_inventory!
14/07/2023 - Update 1.2.0
- Fixed a bug introduced in 1.1.0 that allowed the user to reload their taser despite it already being full or not in hand
- Fixed minor security flaws
- Cleaned up obsolete legacy code resulting in smaller bundle size
11/11/2023 - Update 1.2.1
- Added
Config.PerformanceMode
which, when set to false, will fix a rare issue where you can shoot your taser despite having no ammunition if you shoot the taser right after sliding over an obstacle (like a vehicle).
01/02/2024 - Update 1.3.0
- Added
Config.TaserModel
. It allows you to change which weapon model to check for, allowing the script to work with tasers that have a custom weapon meta.
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | ~120 (excluding language files) |
Requirements | As listed above |
Support | Yes |