editable files
Config.lua
Lua
Config = {}
-- qb for [QBCore & Qbox] & esx for [ESX Framework]
Config.Framework = 'esx' -- qb / esx
Config.ESXVersion = 'v1-final' -- legacy / 1.9 / v1-final
Config.Inventory = 'ox_inventory' -- qb-inventory or ox_inventory
Config.DiscordWebhook = "Your_Discord_WebhookURL" --- Discord Webhook URL
Config.Kick = false --- Want to kick player from server while using blacklist weapon
Config.WhitelistCommand = 'wlist'
Config.RemoveWhitelistCommand = 'wlremove'
--- license for commands accessing
Config.CommandAccess = {
'license:123456789000000', --- example license
}
-- Here is complete Lang section to update and use your own language.
Config.Lang = {
Notification = {
no_perm_title = 'No Permission',
noperm_desc = 'You do not have permission to use this command.',
no_player_title = 'Invalid Player',
no_player_desc = 'No player with ID ',
Identifier_error_title = 'Identifier Error',
Identifier_error_desc = 'Could not retrieve player identifier.',
Player_added_title = 'Added',
Player_added_desc = 'Weapon **%s** whitelisted for player ID %s',
Job_added_title = 'Added',
Job_added_desc = 'Weapon **%s** whitelisted for job **%s**',
Not_Found_title = 'Not Found',
Not_Found_desc = 'This player has no whitelisted weapons.',
WL_Cleared_title = 'Whitelist Cleared',
WL_Cleared_desc = 'All whitelisted weapons removed from player.',
Weapon_Removed = 'Weapon Removed',
Removed_wl_player = '** Was removed from player whitelist.',
Removed_all_wl_job = 'All whitelisted weapons removed from job.',
no_job_weapon = 'This job has no whitelisted weapons.',
Removed_wl_job = 'Was removed from job whitelist.',
},
Commands = {
WhitelistCommand_help = 'Whitelist a weapon for a player or job',
RemoveWhitelistCommand_help = 'Revoke a whitelisted weapon from a player or job',
},
Discord = {
Title = 'Weapon Whitelisted',
Details = '**Player ID %s tried using whitelisted weapon: %s. Weapon removed.**',
},
KickMessage = 'You used a whitelisted weapon. Contact discord for queries. https://discord.com/invite/qzsRX7sMjU', --- makesure you using your Discord invite link
Input_Menu = {
Remove_Title = 'Whitelist Removal',
Remove_Title2 = 'Target Type',
ID_Lable = 'Player ID',
Job_Lable = 'Job Name',
Weapon_Remove_Title = 'Weapon to Remove',
Weapon_Removed_option = 'All Weapons',
Remove_Whitelist = 'Remove Weapon Whitelist',
WL_Title = 'Whitelist Type',
WL_Title2 = 'Whitelist Type',
WL_Weapon = 'Whitelist a Weapon',
}
}weaponList.lua
Lua
Weapon = {}
--- weapon names must in capital letters
Weapon.WeaponHashes = {
[GetHashKey("WEAPON_PISTOL")] = "WEAPON_PISTOL",
[GetHashKey("WEAPON_COMBATPISTOL")] = "WEAPON_COMBATPISTOL",
[GetHashKey("WEAPON_ASSAULTRIFLE")] = "WEAPON_ASSAULTRIFLE",
[GetHashKey("WEAPON_SMG")] = "WEAPON_SMG",
[GetHashKey("WEAPON_MINISMG")] = "WEAPON_MINISMG",
[GetHashKey("WEAPON_PUMPSHOTGUN")] = "WEAPON_PUMPSHOTGUN",
[GetHashKey("WEAPON_KNIFE")] = "WEAPON_KNIFE",
-- Add more weapon hashes and names as needed
}data.lua (Editable but Dont edit it it can auto change by in game commands)
Lua
Data = {}
--- Dont touch this config file this will auto update on ingame command /wlist [Id/Job] [Weapon Name in Capital]
Data.BlacklistedWeapons = {
"WEAPON_PISTOL",
"WEAPON_ASSAULTRIFLE",
"WEAPON_SMG",
"WEAPON_MINISMG",
}
Data.WhitelistedPlayers = {
}
Data.WhitelistedJobs = {
}