127 lines
3.0 KiB
Lua
127 lines
3.0 KiB
Lua
Config = {
|
|
WeaponRestrictedMessage = "~r~This Weapon is restricted",
|
|
ComponentRestrictedMessage = "~r~This Component is restricted",
|
|
InheritanceEnabled = false,
|
|
-- Set to true if you use the t-notify plugin for notifications.
|
|
usingTnotify = false,
|
|
-- How often the script checks for restricted weapons (in milliseconds)
|
|
updateTime = 2000,
|
|
-- Whether or not the script shows the name of the model being restricted. If true, it will append the weapon/component name to the end of the message.
|
|
showWeaponOrComponentName = true
|
|
}
|
|
|
|
--[[
|
|
Weapon components list: https://wiki.rage.mp/index.php?title=Weapons_Components
|
|
Weapon list: https://runtime.fivem.net/doc/natives/#_0xBF0FD6E56C964FCB
|
|
]]--
|
|
|
|
-- This Script uses the nicknames for roles listed in Badger_Discord_API.
|
|
Config.WeaponRestrictions = {
|
|
['EG | Helper'] = {
|
|
|
|
},
|
|
['EG | Staff'] = {
|
|
|
|
},
|
|
['EG | Sr. Staff'] = {
|
|
|
|
},
|
|
['EG | Moderator'] = {
|
|
|
|
},
|
|
['EG | Sr. Moderator'] = {
|
|
|
|
},
|
|
['EG | Admin'] = {
|
|
"WEAPON_PROXMINE",
|
|
"WEAPON_GRENADELAUNCHER",
|
|
"WEAPON_RPG",
|
|
"WEAPON_MINIGUN",
|
|
"WEAPON_FIREWORK",
|
|
"WEAPON_RAILGUN",
|
|
"WEAPON_HOMINGLAUNCHER",
|
|
"WEAPON_STICKYBOMB",
|
|
"WEAPON_COMPACTLAUNCHER",
|
|
"WEAPON_RAYPISTOL",
|
|
"WEAPON_RAYCARBINE",
|
|
"WEAPON_RAYMINIGUN",
|
|
"WEAPON_PIPEBOMB",
|
|
"WEAPON_SNOWLAUNCHER",
|
|
"WEAPON_COMBATSHOTGUN",
|
|
"WEAPON_AUTOSHOTGUN",
|
|
"WEAPON_HEAVYSHOTGUN",
|
|
"WEAPON_BULLPUPSHOTGUN",
|
|
"WEAPON_ASSAULTSHOTGUN",
|
|
"WEAPON_HEAVYSNIPER_MK2",
|
|
"WEAPON_MARKSMANRIFLE_MK2",
|
|
"WEAPON_PRECISIONRIFLE",
|
|
"WEAPON_MARKSMANRIFLE",
|
|
"WEAPON_MOLOTOV",
|
|
"WEAPON_GRENADE",
|
|
"WEAPON_BZGAS",
|
|
"WEAPON_APPISTOL",
|
|
"WEAPON_FLAREGUN",
|
|
"WEAPON_GADGETPISTOL",
|
|
"WEAPON_SNSPISTOL_MK2",
|
|
"WEAPON_PISTOLXM3",
|
|
"WEAPON_NAVYREVOLVER",
|
|
"WEAPON_SNSPISTOL",
|
|
"WEAPON_RAYPISTOL",
|
|
"WEAPON_PISTOL_MK2",
|
|
"WEAPON_REVOLVER",
|
|
"WEAPON_REVOLVER_MK2",
|
|
"WEAPON_MARKSMANPISTOL",
|
|
"WEAPON_DBSHOTGUN",
|
|
"WEAPON_DOUBLEACTION",
|
|
"WEAPON_TECPISTOL",
|
|
"WEAPON_SMG_MK2",
|
|
"WEAPON_ASSAULTSMG",
|
|
"WEAPON_MACHINEPISTOL",
|
|
"WEAPON_COMBATPDW",
|
|
"WEAPON_MINISMG",
|
|
"WEAPON_STONE_HATCHET",
|
|
"WEAPON_STUNROD",
|
|
"WEAPON_HACKINGDEVICE",
|
|
"WEAPON_ASSAULTRIFLE_MK2",
|
|
"WEAPON_BATTLERIFLE",
|
|
"WEAPON_BULLPUPRIFLE_MK2",
|
|
"WEAPON_SPECIALCARBINE_MK2",
|
|
"WEAPON_MILITARYRIFLE",
|
|
"WEAPON_BULLPUPRIFLE",
|
|
"WEAPON_ASSAULTRIFLE",
|
|
"WEAPON_SPECIALCARBINE",
|
|
"WEAPON_HEAVYRIFLE",
|
|
"WEAPON_TACTICALRIFLE",
|
|
"WEAPON_CARBINERIFLE_MK2",
|
|
"WEAPON_RAYCARBINE",
|
|
"WEAPON_COMBATMG",
|
|
"WEAPON_MG",
|
|
"WEAPON_COMBATMG_MK2",
|
|
"WEAPON_KNUCKLE",
|
|
"WEAPON_METALDETECTOR",
|
|
"WEAPON_APPISTOL",
|
|
|
|
|
|
},
|
|
['EG | Sr. Admin'] = {
|
|
|
|
},
|
|
['EG | Head of Staff'] = {
|
|
|
|
},
|
|
['EG | Server Developer'] = {
|
|
|
|
},
|
|
['EG | Owner'] = {
|
|
|
|
},
|
|
}
|
|
|
|
-- Requires Config.InheritanceEnabled to be = true
|
|
Config.Inheritances = {
|
|
--['RoleName or ID'] = {'RoleName2', 'RoleName3', 'RoleName4'},
|
|
['RoleName1'] = {'RoleName2', 'RoleName3', 'RoleName4'},
|
|
['RoleName2'] = {'RoleName3', 'RoleName4'},
|
|
['RoleName3'] = {'RoleName4'},
|
|
['RoleName4'] = {}
|
|
} |