Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. --[[
  2. Added a function to grant perm weapons PLAYER:GrantPermWeapon(CatID, WepID)
  3. CatID is the table index and WepID is the weapons index
  4.  
  5. Config changes:
  6. Added index numbers to config (makes it easier to read CatID and WepID)
  7. ]]
  8.  
  9. PermItemsConfig = PermItemsConfig or {}
  10.  
  11. //Chatcommands to open the menu
  12. PermItemsConfig.MenuChatCommands = {"!permweapons","!permentities","!permmenu"}
  13.  
  14. //Who can access admin commands etc
  15. PermItemsConfig.AdminAccessCustomCheck = function(Player) return Player:IsSuperAdmin() end
  16.  
  17. --[[
  18.  
  19. "darkrpwallet" = DarkRP cash
  20. "ps1" = Pointshop 1
  21. "pcurrency" = Inbuilt currency system
  22.  
  23. ]]
  24. PermItemsConfig.Currency = "darkrpwallet"
  25. PermItemsConfig.CurrencyName = "Cash"
  26. //Used for $,?,? for example
  27. PermItemsConfig.CurrencySymbol = "$"
  28. //NPC model
  29. PermItemsConfig.NPCModel = "models/player/Group01/Female_01.mdl"
  30. //Text above NPC
  31. PermItemsConfig.NPCText = "Permanent Weapons/Entities"
  32.  
  33. //If chatcommand should be disabled or not
  34. PermItemsConfig.AllowMenuCMD = true
  35.  
  36. //Allow selling of weapons/Entities
  37. PermItemsConfig.AllowSelling = true
  38. //How much % of the original price should be given when sold?
  39. PermItemsConfig.SellRate = .50
  40.  
  41. //Disable perm entities
  42. PermItemsConfig.EnableEntities = true
  43.  
  44. //Grants weapons on spawn/change team etc if set to true, set to false if you want spawned only through menu
  45. PermItemsConfig.GrantLoadout = true
  46. //Make it return false for the conditions that shouldnt allow opening it and true for those who should
  47. //For example, this allows only admins to open the menu
  48. --[[
  49. if Player:IsAdmin() then
  50. return true
  51. else
  52. return false
  53. end
  54. ]]
  55. PermItemsConfig.OpenMenuCheck = function(Player) return true end
  56. //Font for the menus
  57. PermItemsConfig.Font = "Trebuchet18"
  58.  
  59. //For changing colors on the menus
  60. PermItemsConfig.FrameColor = Color(200,200,200,200)
  61. PermItemsConfig.FrameOutline = Color(0,0,0,255)
  62. PermItemsConfig.HeaderColor = Color(50,50,50,200)
  63. PermItemsConfig.ColorBoxes = Color(150,150,150,200)
  64. PermItemsConfig.ColorBoxesOutlines = Color(50,50,50,200)
  65. PermItemsConfig.ButtonColor = Color(0,0,0,200)
  66. PermItemsConfig.ButtonColorHovering = Color(75,75,75,200)
  67. PermItemsConfig.ButtonColorPressed = Color(125,125,125,200)
  68.  
  69. --{Category Name, {Ent Class, Description, Cost, Model, Name}}
  70. --NOTE: ONLY ADD MODEL AND NAME if it requires overriding, for example if SWEP uses base name+model
  71. --An example of a weapon that requires the model+name to be overridden
  72. --{"weapon_vape", "A classic vape", 300, "models/swamponions/vape.mdl", "Vape"},
  73. PermItemsConfig.WeaponsList = {
  74. [1] = {"Assault Rifles", {
  75. [1] = {"weapon_ak472", "A powerful beast.", 300},
  76. [2] = {"weapon_m42", "A classic weapon within the military.", 250},
  77. [3] = {"cw_g4p_m16a2", "A three burst assault rifle.", 300000},
  78. }
  79. },
  80. [2] = {"Submachine Guns", {
  81. [1] = {"weapon_mp52", "Common within SWAT teams.", 250},
  82. [2] = {"weapon_mac102", "Used by gangsters.", 200}
  83. }
  84. },
  85. [3] = {"Sniper Rifles", {
  86. [1] = {"ls_sniper", "Deadly but silent.", 500}
  87. }
  88. },
  89. [4] = {"Shotguns", {
  90. [1] = {"weapon_pumpshotgun2", "A classic shotgun.", 350}
  91. }
  92. },
  93. [5] = {"Pistols", {
  94. [1] = {"weapon_deagle2", "One of the most powerful pistols.", 200},
  95. [2] = {"weapon_p2282", "Aim, point and fire.", 150},
  96. [3] = {"weapon_fiveseven2", "A quick and deadly sidearm.", 150},
  97. [4] = {"weapon_glock2", "Kind of weak, but cheap.", 50}
  98. }
  99. }
  100. }
  101. --{Category Name, {Ent Class, Model Path, Name, Description, Price, Spawnlimit}}
  102. PermItemsConfig.EntitiesList = {
  103. [1] = {"Money Printers", {
  104. [1] = {"money_printer", "models/props_c17/consolebox01a.mdl", "Money Printer", "A basic money printer", 300,1}
  105. }
  106. },
  107.  
  108. [2] = {"General", {
  109. [1] = {"gunlab", "models/props_c17/TrapPropeller_Engine.mdl", "Gun Lab", "A basic Gun lab.", 200,1},
  110. [2] = {"drug_lab", "models/props_lab/crematorcase.mdl", "Drug Lab", "A basic drug production.", 250, 1},
  111. [3] = {"microwave", "models/props/cs_office/microwave.mdl","Microwave", "It produces food.", 150, 1}
  112. }
  113. }
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement