A FiveM resource for ESX that provides job-based weapon restrictions. Control which weapons are available to specific jobs with customizable settings and behavior.
- Job-based weapon permissions
- Configurable weapon restrictions
- Performance optimized with caching
- Customizable notification system
- Flexible configuration options
- es_extended (ESX)
- Download the resource
- Place it in your server's resources directory
- Add
ensure ali_jobweaponsto your server.cfg - Configure the weapons and jobs in
config.lua - Restart your server
Config.Settings = {
RemoveWeapon = true, -- Remove weapon when unauthorized
PreventFiring = true, -- Prevent initial weapon firing
NotifyPlayer = true, -- Show notification to player
CheckInterval = 200, -- Check interval when armed (ms)
IdleInterval = 1000 -- Check interval when idle (ms)
}Config.WeaponJobList = {
["WEAPON_PISTOL_MK2"] = {"police", "fib", "army"},
["WEAPON_SMG"] = {"police", "fib", "army"}
}Config.Notification = "Du hast keine Berechtigung, diese Waffe zu benutzen."- Configure the weapons and allowed jobs in
config.lua - Adjust settings to your preferences
- Any weapon not in the list will be available to all players
- Players with unauthorized weapons will have them removed automatically
- Efficient caching system for weapon permissions
- Optimized check intervals
- Minimal resource usage when idle
- Smart state tracking
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
For support, create an issue in the GitHub repository or contact the developer.
