Advertisement
Lukyspore

sh_config.lua

May 16th, 2024 (edited)
1,371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.06 KB | None | 0 0
  1. LDT_Closetter = LDT_Closetter or {}
  2. LDT_Closetter.Config = LDT_Closetter.Config or {}
  3.  
  4. LDT_Closetter.Config.Language = "en" -- Currently there are en, fr, pl, de, tr, sp, it and ru translations available.
  5.  
  6. LDT_Closetter.Config.AdminRanks = {
  7.     ["superadmin"] = true,
  8.     ["admin"] = true
  9. } -- These are the ranks that can spawn new closets. You can add more ranks if you want to.
  10.   -- These ranks will also have access to all of the blocked bodygroups and skins.
  11.  
  12. LDT_Closetter.Config.ContextMenuRanks = {
  13.     ["superadmin"] = true,
  14.     ["admin"] = true
  15. } -- These are the ranks that can open the closet from the context menu. You can add more ranks if you want to.
  16.  
  17. LDT_Closetter.Config.ContextMenuJobs = {
  18.     ["Admin Job"] = true,
  19. } -- These are the ranks that can open the closet from the context menu. You can add more ranks if you want to.
  20.  
  21. LDT_Closetter.Config.OpenFromContextMenuOverride = true -- If this is set to true anyone can open the closet from the context menu.
  22.  
  23. -- If this is set to true, then players can open the closetter menu using chat commands.
  24. -- THE PERMISSIONS FOR CONTEXT MENU AND COMMANDS ARE SHARED!
  25. LDT_Closetter.Config.EnableOpeningClosetterUsingCommand = true
  26. LDT_Closetter.Config.OpenClosetterCommand = '!closetter'
  27.  
  28.  
  29. --[[ 📌 WHITELIST SYSTEM
  30. To whitelist only certain bodygroups or skins you need to modify your DarkRP jobs.
  31. Here is an example of how to block bodygroups and skins for a template job:
  32.  
  33. Example:
  34. TEAM_TEMPLATE = DarkRP.createJob("TEMPLATE JOB", {
  35.     color = Color(20, 150, 20, 255),
  36.     model = {
  37.         // SOME PLAYERMODELS
  38.     },
  39.     description = "",
  40.     weapons = {},
  41.     command = "TEMPLATEJOB",
  42.     max = 0,
  43.     salary = GAMEMODE.Config.normalsalary,
  44.     admin = 0,
  45.     vote = false,
  46.     hasLicense = false,
  47.     candemote = false,
  48.     category = "Citizens",
  49.  
  50.  
  51.     !! This is the part that you need to add to block bodygroups and skins !!
  52.     If you don't add this part, the player will be able to change skins freely.
  53.     skins = { 0, 1, 2 }, -- This is the list of skins that the player can use.
  54.  
  55.     If a bodygroup is not listed here or your do not add this part, the player will be able to change it freely.
  56.     bodygroups = { -- This is the list of bodygroups that the player can use.
  57.         ["Head"] = { 0, 3 }, -- This is the bodygroup name and the list of allowed values.
  58.         ["Body"] = { 0, 1, 2 }, -- This is the bodygroup name and the list of allowed values.
  59.     }
  60. })
  61. --]]
  62.  
  63.  
  64. --[[ 📌 USERGROUP WHITELIST SYSTEM
  65. This feature lets you restrict specific skins and bodygroups based on a player's usergroup (e.g., vip, admin).
  66. It works alongside the default whitelist but has higher priority.
  67.  
  68. 🔒 Priority Explanation:
  69. If a skin or bodygroup is allowed in the default whitelist AND in the userGroupWhitelist,
  70. only players in the specified usergroup(s) will be able to use it.
  71. Other players will be restricted from using those options.
  72.  
  73. Example:
  74. TEAM_TEMPLATE = DarkRP.createJob("TEMPLATE JOB", {
  75.     color = Color(20, 150, 20, 255),
  76.     model = {
  77.         // SOME PLAYERMODELS
  78.     },
  79.     description = "",
  80.     weapons = {},
  81.     command = "TEMPLATEJOB",
  82.     max = 0,
  83.     salary = GAMEMODE.Config.normalsalary,
  84.     admin = 0,
  85.     vote = false,
  86.     hasLicense = false,
  87.     candemote = false,
  88.     category = "Citizens",
  89.    
  90.     -- This is the part that you need to add to block bodygroups and skins using usergroups!!
  91.     userGroupWhitelist = {
  92.         ['vip'] = { -- This is the usergroup name
  93.             skins = { 0, 1, 2 }, -- Only VIPs can use these skins
  94.             bodygroups = {
  95.                 ["Helmet"] = { 1, 2 } -- Only VIPs can use Helmet values 1 and 2
  96.             }
  97.         }
  98.     }
  99. })
  100. --]]
  101.  
  102.  
  103. LDT_Closetter.Config.ConvertOldClosetterLocations = {
  104.     ["superadmin"] = true
  105. } -- These are the ranks that can run the command to convert the Arizard's Bodygroupr locations to this system. You can add more ranks if you want to.
  106.  
  107. -- The chat command to convert the Arizard's Bodygroupr locations to this system is "!closetter convert locations".
  108.  
  109. LDT_Closetter.Config.CanClosetBreak = true -- If this is set to false, the closets will not break when they reach 0 health.
  110. LDT_Closetter.Config.ClosetHealth = 100 -- This is the health of the closet.
  111.  
  112. LDT_Closetter.Config.EnableRandomize = true -- If this is set to true, the randomize button will be displayed and enabled.
  113. LDT_Closetter.Config.EnableCloning = true -- If this is set to true, the clone from other users feature will be displayed and enabled.
  114.  
  115. LDT_Closetter.Config.AdminMenuCommand = "!admin_closetter" -- This is the chat command to open the admin menu.
  116.  
  117. LDT_Closetter.Config.ClosetModel = "models/props_c17/FurnitureDresser001a.mdl" -- This is the model of the closet.
  118. LDT_Closetter.Config.ClosetGroundOffset = 39 -- This is the offset of the closet from the ground. This is used to make the closet sit on the ground properly. Beacuse each model has different sizes, this value may need to be adjusted.
  119.  
  120.  
  121. -- These are the colors for every element of the UI. Feel free to change them to your liking.
  122. LDT_Closetter.Config.Red = Color(228, 58, 7)
  123. LDT_Closetter.Config.RedHover = Color(255, 63, 5)
  124. LDT_Closetter.Config.White = Color(255,255,255)
  125. LDT_Closetter.Config.Grey = Color(47, 54, 64)
  126. LDT_Closetter.Config.GreyHover = Color(57, 65, 77)
  127. LDT_Closetter.Config.GreySecond = Color(31, 34, 41)
  128. LDT_Closetter.Config.GreyTrans = Color(32, 33, 36, 200)
  129. LDT_Closetter.Config.Blue = Color(0, 151, 230)
  130. LDT_Closetter.Config.BlueSecond = Color(2, 161, 247)
  131. LDT_Closetter.Config.ToolBlock = Color(0, 0, 0,220)
  132. LDT_Closetter.Config.Black = Color(0, 0, 0)
  133. LDT_Closetter.Config.BlackEntity = Color(0, 0, 0, 95)
  134.  
  135. -- These are the materials for every element of the UI. Feel free to change them to your liking.
  136. LDT_Closetter.Materials = LDT_Closetter.Materials or {}
  137. LDT_Closetter.Materials.ToolBG = Material("LDT_Closetter/display_bg_small.png", "ignorez")
  138. LDT_Closetter.Materials.XIcon = Material("LDT_Closetter/x.png", "noclamp smooth")
  139. LDT_Closetter.Materials.TrashCan = Material("LDT_Closetter/trash-can.png", "noclamp smooth")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement