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: myTasers preview
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
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | ~120 (excluding language files) |
| Requirements | As listed above |
| Support | Yes |
