A FiveM resource for managing weapons licenses in your server, built for QBCore.
- Purchase a weapons license as an item.
- Purchase a weapons license as metadata.
- Fully integrated with QBCore's player and inventory systems.
- Configurable prices and options.
- PolyZone-based interaction zone.
- Debugging options for development.
Ensure you have the following resources installed:
Copy the qb-weapons-license
folder to your resources
directory.
Add the following lines to your server.cfg
:
ensure qb-core
ensure PolyZone
ensure qb-menu
ensure qb-weapons-license
Open config.lua
to set your custom prices and toggle debug mode:
Config.LicensePrice = 100 -- Price for metadata license
Config.LicenseItemPrice = 50 -- Price for item license
Config.Debug = true -- Enable/disable debug mode
- Players can interact with the zone at the configured location to purchase a license.
- Default location is
vector3(156.5225, -915.8291, 30.1466)
.
/testmenu
: Opens the license menu for testing.
- Metadata License:
- Adds a "weapons" metadata field to the player's licenses.
- Item License:
- Adds a physical "weaponlicense" item to the player's inventory.
- Set
Config.Debug = true
inconfig.lua
. - Use the console logs to track client and server interactions:
[DEBUG][Client]:
for client-side events.[DEBUG][Server]:
for server-side events.