Advertisement
wifiboost

Untitled

Nov 4th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. -- Pointshop 2 points
  2. -- Pointshop 2 items should drop
  3. -- Can pay with pointshop 2
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. ////////PLEASE READ THIS ITS IMPORTANT OR YOUR SERVER WILL BREAK!////////////
  7. /////////////////////////////////////////////////////////////////////////////
  8. //Each item now requires a unqie NUMBER id before anything else.
  9. //If you look at the examples below all items have an id before the item name now
  10. //Dont ever change an item ID or the item will be deleted from the ivnentory
  11. //Dont ever replace an ID either (Or the old items turn into the new ones)
  12.  
  13. --Dont edit this part
  14. if SERVER then
  15. AddCSLuaFile()
  16. AddCSLuaFile("uc2_subconfig.lua")
  17. end
  18. include("uc2_subconfig.lua")
  19.  
  20. --If set to true, when the player spawns it will give them all the permamanet weapons they have so they dont have to spawn it from the menu.
  21. BUC2.GivePermaWeaponsOnSpawn = true
  22.  
  23. --This will announce when ever someone unboxing something.
  24. BUC2.AnnounceUnboxings = true
  25.  
  26. BUC2.CanTradePermaWeapons = false --If this is true then user can trade permanent items. This can be used to abuse buy equiping then trading. (False is recomended)
  27. --Edit under here.
  28. BUC2.BuyItemsWithPoints = false --If this is false then it WILL use darkrp cash.
  29. BUC2.BuyItemsWithPoints2 = false --If this is false then it WILL use darkrp cash (Make sure only 1 is try at a time).
  30.  
  31. --If this is true then it will use point shop points rather than DarkRP cash.
  32.  
  33. BUC2.RanksThatCanGiveItems = { --This is the ranks that have access to give items using !unboxadmin
  34. "superadmin",
  35. }
  36.  
  37. BUC2.ShouldDropCratesAndKeys = true --If this is false then keys and crates wont drop to users
  38. BUC2.DropTimer = 25 --This is in minutes how long it will wait before dropping the next crate or key
  39. BUC2.DropsAreRankLimited = true --If this is true then items will only drop for people in the drop rank list below
  40. BUC2.DropRankList = { --This is a list of ulx ranks the items can drop for, If BUC2.DropsAreRankLimited is false then this wont be used.
  41. "donator1",
  42. "donator2",
  43. "admins",
  44. "superadmin",
  45. "mod",
  46. "vip"
  47. } --Add what ever ulx ranks you want to the list.
  48.  
  49.  
  50. --for bu_addCrate argument 1 is the main name, argument 2 is the description, argument 3 is the colour,
  51. --argument 4 is the only key that can open this crate, argument 5 is if it can randomly drop,
  52. --argument 6 is if you can buy it and argument 7 is the price
  53. bu_addCrate(1, "Money Crate" , "Contain cash" , Color(249,200,7,255) , "Universal Key" , false , true , 15000)
  54. --bu_addCrate(2, "Bayonet Crate" , "Contains a Perma Bayonet Knife" , Color(226,0,142,255 ) , "Universal Key" , false , true , 15000)
  55. --bu_addCrate(3, "Bowie Knife Crate" , "Contains a Perma Bowie Knife" , Color(98,251,62,255 ) , "Universal Key" , false , true , 15000)
  56. --bu_addCrate(4, "Butterfly Crate" , "Contains a Perma Butterfly Knife" , Color(54,11,232,255) , "Universal Key" , false , true , 15000)
  57. --bu_addCrate(5, "Falchion Crate" , "Contains a Perma Falchion Knife" , Color(54,166,18,255) , "Universal Key" , false , true , 15000)
  58. bu_addCrate(6, "Karambit Crate" , "Contains a Perma Karambit Knife" , Color(65,169,147,255) , "Universal Key" , false , true , 15000)
  59. --bu_addCrate(7, "M9 Bayonet Crate" , "Contains a Perma M9 Knife" , Color(219,107,243,255) , "Universal Key" , false , true , 15000)
  60. --bu_addCrate(8, "Gutknife Crate" , "Contains a Perma Gutknife Knife" , Color(75,132,248,255) , "Universal Key" , false , true , 15000)
  61. --bu_addCrate(9, "Shadow Dagger Crate" , "Contains a Perma Shadow Dagger Knife" , Color(75,132,248,255) , "Universal Key" , false , true , 15000)
  62. --bu_addCrate(10, "Huntsman Crate" , "Contains a Perma Huntsman Knife" , Color(75,132,248,255) , "Universal Key" , false , true , 15000)
  63.  
  64.  
  65.  
  66. --Huntsman Crate
  67. --for bu_addKeyargument 1 is the main name, argument 2 is the description, argument 3 is the colour,
  68. --argument 4 is if it can drop, argument 5 is if you can buy it and argument 6 is the price
  69.  
  70. bu_addKey(11,"Universal Key" , "Opens Knife crates" , Color(151,151,151,255) , false, true , 15000)
  71.  
  72.  
  73. --for bu_addWeaponthe first argument is the weapons name , the second argument is the description,
  74. --the third argument is the weapons classname like fas2_ak47 you find it by right clicking a weapon
  75. --and copying to clipboard, argument 4 is the model you want displayed you need the model directory for
  76. --this which you find by right clicking the prop version and copying to clipboard, argument 5 is the colour,
  77. --argument 6 is the name of the crate it is found in, argument 7 is the chance the user will get it and argument 8
  78. --dictates if the weapon is permanent or not
  79.  
  80.  
  81. --for bu_addMoney the first argument is the main name, the second argument is the description,
  82. --the third argument is the ammount of money the user recieves, the fourth argument is the colour,
  83. --the fifth argument is the name of the crate that holds it, the sixth argument is the chance it will appear
  84. bu_addMoney(12,"$10000 Cash" , "An instant $1000" , 10000 , Color(50,50,255) , "Money Crate", 100)
  85. bu_addMoney(13,"$15000 Cash" , "An instant $2000" , 15000 , Color(50,50,255) , "Money Crate", 100)
  86.  
  87.  
  88. bu_addMoney(14,"$20000 Cash" , "An instant $20000" , 20000 , Color(255,0,200) , "Money Crate", 10)
  89. bu_addMoney(15,"$25000 Cash" , "An instant $25000" , 25000 , Color(255,0,200) , "Money Crate", 10)
  90. bu_addMoney(16,"$30000 Cash" , "An instant $30000" , 30000 , Color(255,15,15) , "Money Crate", 5)
  91. bu_addMoney(17,"$35000 Cash" , "An instant $35000" , 35000 , Color(255,15,15) , "Money Crate", 5)
  92. bu_addMoney(18,"$100000 Cash" , "An instant $100000" , 100000 , Color(255,215,0) , "Money Crate", 1)
  93.  
  94. --------
  95. bu_addWeapon(19,"Karambit", "A Knife", "csgo_karambit" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  96. bu_addWeapon(20,"Karambit | Blue Steel", "A Knife", "csgo_karambit_bluesteel" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  97. bu_addWeapon(21,"Karambit | Boreal Forest", "A Knife", "csgo_karambit_boreal" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  98. bu_addWeapon(22,"Karambit | Case Hardened", "A Knife", "csgo_karambit_case" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  99. bu_addWeapon(23,"Karambit | Crimson Web", "A Knife", "csgo_karambit_crimsonwebs" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  100. bu_addWeapon(24,"Karambit | Damascus Steel", "A Knife", "csgo_karambit_damascus" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  101. bu_addWeapon(25,"Karambit | Fade", "A Knife", "csgo_karambit_fade" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  102. bu_addWeapon(26,"Karambit | Forest DDPAT", "A Knife", "csgo_karambit_ddpat" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  103. bu_addWeapon(27,"Karambit | Marble Fade", "A Knife", "csgo_karambit_marblefade" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  104. bu_addWeapon(28,"Karambit | Slaughter", "A Knife", "csgo_karambit_slaughter" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  105. bu_addWeapon(29,"Karambit | Tiger Tooth", "A Knife", "csgo_karambit_tiger" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  106. bu_addWeapon(30,"Karambit | Autotronic", "A Knife", "csgo_karambit_autotronic" , "models/weapons/w_csgo_karambit.mdl", Color(255,215,0) , "Karambit Crate" , 2 , false)
  107. bu_addWeapon(31,"Karambit | Black Laminate", "A Knife", "csgo_karambit_black_laminate" , "models/weapons/w_csgo_karambit.mdl", Color(255,0,0) , "Karambit Crate" , 1 , false)
  108. bu_addWeapon(32,"Karambit | Bright Water", "A Knife", "csgo_karambit_bright_water" , "models/weapons/w_csgo_karambit.mdl", Color(255,0,0) , "Karambit Crate" , 1, false)
  109. bu_addWeapon(33,"Karambit | Freehand", "A Knife", "csgo_karambit_freehand" , "models/weapons/w_csgo_karambit.mdl", Color(255,0,0) , "Karambit Crate" , 1 , false)
  110. bu_addWeapon(34,"Karambit | Gamma Doppler", "A Knife", "csgo_karambit_gamma_doppler" , "models/weapons/w_csgo_karambit.mdl", Color(255,0,0) , "Karambit Crate" , 1 , false)
  111. bu_addWeapon(35,"Karambit | Lore", "A Knife", "csgo_karambit_lore" , "models/weapons/w_csgo_karambit.mdl", Color(255,0,0) , "Karambit Crate" , 0.5 , true)
  112.  
  113.  
  114. --A Pointshop item is also done like rest, See the comment bellow.
  115.  
  116. --the first argument is the main name, the second argument is the description,
  117. --the third argument is the print name of the pointshop item if you're unsure export the items and see "Name",
  118. --the fourth argument is the model, the fifth argument is the colour, the sixth is the name of the crate
  119. --that holds it, the seventh argument is the chance it will appear
  120.  
  121. --bu_addPSItem("Cone hat" , "A Cool hat" , "conehat" , "somemodel",Color(255,255,255,255) , "SomeCrateName", 100)
  122.  
  123. --To add pointshop2 items do the below
  124. --You can remove this line, Its just to let you know the config loaded properly
  125.  
  126. print("[UNBOXING INFO] UNBOXING CONFIG LOADED!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement