Weapon Licenses & Shooting Range
Docs to configure licenses and shooting range
Installation
1ΒΊ Add the xex_weaponlicense folder to your resources and initialize it in your server.cfg.
start xex_weaponlicense
2ΒΊ If you use ESX, you will need to add the licenses to your database:
Configuration
Make sure to select your framework in the configuration file.
Licenses
Activate or deactivate any of the licenses from the configuration file, configure its price, duration of the test, weapon used, number of targets. You can also choose whether or not to show blips on any of them.
Shooting Range
It is possible to enable or disable the firing range, just check the option enabled = false in the Config.WeaponPractisePoint setting.
Select if we need a license or if there is a cost to practice shooting. You can also choose the weapon and the number of targets or time to shoot.
Disarm player
There is a system to disarm the user in case he leaves through the door of the room. To configure it in another place, you simply have to mark where the door of the shooting area is. If the user is in the course of a test and passes through there it will end and the weapon will be removed.
This option can be disabled.
Troubleshooting
Since v2.24.2 of ox_inventory the ability to spawn weapons in the client without being in the inventory has been restricted. Until a better solution is devised, for granting weapons to work correctly the following line must be added to the Weapon.Disarm function:
Last updated