Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 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 = "Credit"
  26. //Used for $,?,? for example
  27. PermItemsConfig.CurrencySymbol = "[#7]"
  28. //NPC model
  29. PermItemsConfig.NPCModel = "models/hgn/swrp/swrp/droid_warbot.mdl"
  30. //Text above NPC
  31. PermItemsConfig.NPCText = "Weapon Skins"
  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 = 1
  40.  
  41. //Disable perm entities
  42. PermItemsConfig.EnableEntities = false
  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] = {"Explosive Expert"}, {
  75. [1] = {"tfa_swch_clonelauncher_2", "Rocket Launcher", 20000},
  76. [2] = {"weapon_swrc_det", "Detonators", 5000},
  77. }
  78. }
  79. [2] = {"Heavy Weapons Expert"}, {
  80. [1] = {"chaingun_servius", "Shoulder Mounted Minigun", 15000},
  81. [2] = {"tfa_dlt19_extended", "DLT-19", 12500},
  82. [3] = {"tfa_kotor_repeaten_1", "Repeating Blaster T1", 10000},
  83. }
  84. }
  85. [3] = {"Long Range Weapons Expert"}, {
  86. [1] = {"tfa_dlt20a_extended", "DLT-20A", 15000},
  87. [2] = {"tfa_scoutblaster_extended", "Scout Pistol", 10000},
  88. }
  89. }
  90. [4] = {"General Weapons"}, {
  91. [1] = {"tfa_sw_dc17dual", "Dual-DC-17", 5000},
  92. [2] = {"tfa_t21_extended", "T-21", 10000},
  93. [3] = {"tfa_umbaran_blue", "Umbaran Rifle", 12500},
  94. [4] = {"tfa_kotor_bp_5", "Standard Blaster Pistol", 500},
  95. [5] = {"tfa_kotor_rifle", "Standard Blaster Rifle", 500},
  96. }
  97. }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement