Guest User

Untitled

a guest
Apr 26th, 2021
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | None | 0 0
  1. // admin ranks
  2. DC_CRAFTSYSTEM.Config.adminRanks = {"superadmin"}
  3. // Donator groups
  4. DC_CRAFTSYSTEM.Config.donatorGroups = {"vip"}
  5. // Default language
  6. DC_CRAFTSYSTEM.Config.langKey = "en"
  7. // Item find radius about player
  8. DC_CRAFTSYSTEM.itemDistance = 200
  9. // Show item/element class with name ? Example: M4 (entity_m4)
  10. DC_CRAFTSYSTEM.showClass = false
  11. // Open menu only from workbench ?
  12. DC_CRAFTSYSTEM.onlyWorkbench = false
  13. // The number of seconds that will decrease when pressing buttons on the workbench (in sec.)
  14. DC_CRAFTSYSTEM.bonusCraftTime = 2
  15. // Boost craft speed interval
  16. DC_CRAFTSYSTEM.bonusCraftTimeInterval = 3
  17. // Slowing down the player when crafting (in %)
  18. DC_CRAFTSYSTEM.slowPercent = 30
  19. // Open menu key
  20. DC_CRAFTSYSTEM.OpenKey = KEY_F7
  21. // Chat commands for open menu
  22. DC_CRAFTSYSTEM.OpenCmds = {"!craft", "/craft"}
  23. // Craft boost speed craft button click sounds
  24. DC_CRAFTSYSTEM.BoostSounds = {
  25.     "physics/wood/wood_solid_impact_hard1.wav",
  26.     "physics/wood/wood_solid_impact_hard2.wav",
  27.     "physics/wood/wood_solid_impact_hard3.wav"
  28. }
  29.  
  30. // Images Format: ['unical image name'] = "url to image"
  31. DC_CRAFTSYSTEM.Images = {
  32.     ['default.png'] = "https://i.imgur.com/pYMrNua.png",
  33.     ['addcategory.png'] = "https://i.imgur.com/pCqPdp7.png",
  34.     ['vip.png'] = "https://i.imgur.com/Lma7sH3.png",
  35.     ['time.png'] = "https://i.imgur.com/5vr0uTx.png",
  36.     ['craftprogress.png'] = "https://i.imgur.com/xVodYuf.png",
  37.     ['tools.png'] = "https://i.imgur.com/mRwVWKb.png",
  38. }
  39.  
  40. // For custom playtime module
  41. DC_CRAFTSYSTEM.CustomTime = function(ply)
  42.     -- return ply:GetUTimeTotalTime() -- Example of utime(ulx) module
  43.     return nil
  44. end  
  45.  
  46. if SERVER then return end
  47.  
  48. // Colors
  49. DC_CRAFTSYSTEM.Colors = {
  50.     // Main menu
  51.     ['background'] = Color(20,20,20),
  52.     ['backgroundGradient'] = Color(30, 30, 30,25),
  53.     ['menuTitle'] = Color(40, 40, 40),
  54.     ['menuBottom'] = Color(40, 40, 40),
  55.     // Categorises Menu
  56.     ['categoryBackground'] = Color(40, 40, 40),
  57.     ['categoryBackgroundHovered'] = Color(19, 66, 74),
  58.     // Utility
  59.     ['closeBtnBackground'] = Color(150,0,0,100),
  60.     ['closeBtnHover'] = Color(150,30,30,200),
  61.     ['textColor'] = Color(140,140,140),
  62.     ['textColorTitle'] = Color(160,160,160),
  63.     ['categoryIconColor'] = Color(200,200,200),
  64.     ['btnBackground'] = Color(19, 66, 74),
  65.     ['btnBackgroundHover'] = Color(29, 76, 84),
  66.     ['canCraftBackground'] = Color(0, 100, 0,30),
  67.     ['cantCraftBackground'] = Color(100, 0, 0,30),
  68. }
Advertisement
Add Comment
Please, Sign In to add comment