ImprovedDiscordPedPerms is a Discord based Ped restriction script. It is a rewrite of JaredScar’s original DiscordPedPerms - We have added inheritances for roles and also added t-notify integration, as well as more config options. This is a re-write of the original script. We simply forked it to credit Badger. We also made Improved Discord Weapon Perms
**ImprovedDiscordPedPerms** is a Discord based weapon restriction script. It is a forked rewrite of [JaredScar's original DiscordPedPerms](https://github.com/JaredScar/DiscordPedPerms) - We have added inheritances for roles and also added t-notify integration, as well as more config options. This is essentially a re-write of the original script. We also made [Improved Discord Weapon Perms](https://forum.cfx.re/t/free-improved-discord-weapon-perms-badgers-discord-weapon-perms-rewritten/4955553).
Requirement;
Download;
Configuration;
-
It should be noted that for
Config.Inheritances
, the roleNames and roleIDs should match up with the ones specified inConfig.WeaponRestrictions
. -
Also, inheritance only inherits the role groups listed. Inheriting
RoleName2
which inheritsRoleName1
would not be inherited forRoleName3
.
Config = {
RestrictedMessage = "~r~This PED model is restricted.",
InheritanceEnabled = true,
-- Set to true if you use the t-notify plugin for notifications.
usingTnotify = false,
defaultPED = "a_m_y_skater_01",
-- How often the script checks for restricted PEDs (in milliseconds)
updateTime = 2000
}
-- This Script uses the nicknames for roles listed in Badger_Discord_API.
Config.PEDRestrictions = {
--['RoleName or ID'] = {
-- "PED1",
-- "PED2",
-- "PED3",
-- "PED4"
--},
['RoleName1'] = {
""
},
['RoleName2'] = {
""
},
['RoleName3'] = {
"a_m_m_acult_01",
},
['RoleName4'] = {
""
}
}
-- Requires Config.InheritanceEnabled to be = true
Config.Inheritances = {
--['RoleName or ID'] = {'RoleName2', 'RoleName3', 'RoleName4'},
['RoleName1'] = {'RoleName2', 'RoleName3', 'RoleName4'},
['RoleName2'] = {'RoleName3', 'RoleName4'},
['RoleName3'] = {'RoleName4'},
['RoleName4'] = {}
}