Admin CMD
Admins can manage weapon access directly in-game with easy-to-use commands backed by an interactive UI via ox_lib.
Add your license identifiers inside Config.CommandAccess. Example:
Config.CommandAccess. Example:Config.CommandAccess = {
'license:066c3b68325d67ca52665b7141d7f96ed6623c6b',
}Command: /wlist
/wlistWhitelist a blacklisted weapon for a specific player or a job group.
Usage:
When you type /wlist, an ox_lib input dialog will pop up:
Target Type – Select either:
Player ID: Add weapon access to a specific playerJob Name: Whitelist a job (e.g.police,army)
Player ID or Job Name – Input the actual value (e.g.,
3orpolice)Weapon – Dropdown of blacklisted weapons (e.g.
WEAPON_SMG,WEAPON_ASSAULTRIFLE)
Only users with the correct Ace permission group (e.g. admin) can use this command.
Command: /wlremove
/wlremoveRevoke a previously whitelisted weapon from a player or job.
Behavior:
Choose to remove by
Player IDorJob NameSelect the weapon to remove, or choose
All Weaponsto clear the entire whitelistIf the weapon was not found, it tells you. If removed, it confirms.
Designed to prevent accidental or fake removals — accurate and secure.
Last updated