marcinhuU

m-CraftPotion

Mar 20th, 2022 (edited)
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.85 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.Framework = "NEW"
  4. Config.CoreName = "qb-core"
  5. Config.QBTarget = "qb-target"
  6. Config.QBMenu = "qb-menu"
  7. Config.SkillBar = "qb-skillbar" -- "np-skillbar" | "reload-skillbar" | "qb-lock" | "qb-skillbar" or "none"
  8.  
  9. Config.Table = {
  10. ["table"] = {model = `bkr_prop_coke_table01a`, freeze = false}, -- Prop spawn table
  11. }
  12.  
  13.  
  14. Config.LifePotion = {
  15. Enable = true, -- Enable/Disable option to appear ( On qb-menu )
  16. Name = "🔹 Life Potions", -- Life potions menu title ( On qb-menu )
  17. Job = false,
  18. JobName = "",
  19. Pocao25 = {
  20. Name = "Elixir of Life [Small]", -- Item name ( On qb-menu )
  21. XPNeed = 0, -- XP needed to craft it
  22. Description = "25% Life Potion", -- Item description ( On qb-menu )
  23. Effects = "Gives +25% health instantly", -- Description of effects when using the item ( On qb-menu )
  24. XPGained = 1, -- XP gained by crafting the item
  25. ItemNeed = "emptybottle", -- Name of item needed to craft
  26. Amount = 1, -- Amount of item needed to craft.
  27. NotifyCreated = "Elixir of Life [Small] created successfully.", -- Notification when successfully crafted
  28. TimeCreate = 10000, -- Time needed to craft
  29. Effect = 25, -- Effect that will have when using the option | 25 = 25% of health
  30. },
  31. Pocao50 = {
  32. Name = "Elixir of Life [Medium]",
  33. XPNeed = 5,
  34. Description = "50% Life Potion",
  35. Effects = "Gives +50% health instantly",
  36. XPGained = 2,
  37. ItemNeed = "emptybottle",
  38. Amount = 1,
  39. NotifyCreated = "Elixir of Life [Medium] created successfully.",
  40. TimeCreate = 10000,
  41. Effect = 50,
  42. },
  43. Pocao75 = {
  44. Name = "Elixir of Life [Large]",
  45. XPNeed = 10,
  46. Description = "75% Life Potion",
  47. Effects = "Gives +75% health instantly",
  48. XPGained = 3,
  49. ItemNeed = "emptybottle",
  50. Amount = 1,
  51. NotifyCreated = "Elixir of Life [Large] created successfully.",
  52. TimeCreate = 10000,
  53. Effect = 75,
  54. },
  55. Pocao100 = {
  56. Name = "Elixir of Life [Extra Large]",
  57. XPNeed = 15,
  58. Description = "100% Life Potion",
  59. Effects = "Gives +100% health instantly",
  60. XPGained = 4,
  61. ItemNeed = "emptybottle",
  62. Amount = 1,
  63. NotifyCreated = "Elixir of Life [Extra Large] created successfully.",
  64. TimeCreate = 10000,
  65. Effect = 100,
  66. },
  67. }
  68.  
  69. Config.ArmourPotion = {
  70. Enable = true,
  71. Name = "🔹 Armour Potions",
  72. Job = false,
  73. JobName = "",
  74. Pocao25 = {
  75. Name = "Elixir of Armour [Small]",
  76. XPNeed = 0,
  77. Description = "25% Armour Potion",
  78. Effects = "Gives +25% armour instantly",
  79. XPGained = 1,
  80. ItemNeed = "emptybottle",
  81. Amount = 1,
  82. NotifyCreated = "Elixir of Armour [Small] created successfully.",
  83. TimeCreate = 10000,
  84. Effect = 25,
  85. },
  86. Pocao50 = {
  87. Name = "Elixir of Armour [Medium]",
  88. XPNeed = 5,
  89. Description = "50% Armour Potion",
  90. Effects = "Gives +50% armour instantly",
  91. XPGained = 2,
  92. ItemNeed = "emptybottle",
  93. Amount = 1,
  94. NotifyCreated = "Elixir of Armour [Medium] created successfully.",
  95. TimeCreate = 10000,
  96. Effect = 50,
  97. },
  98. Pocao75 = {
  99. Name = "Elixir of Armour [Large]",
  100. XPNeed = 10,
  101. Description = "75% Armour Potion",
  102. Effects = "Gives +75% armour instantly",
  103. XPGained = 3,
  104. ItemNeed = "emptybottle",
  105. Amount = 1,
  106. NotifyCreated = "Elixir of Armour [Large] created successfully.",
  107. TimeCreate = 10000,
  108. Effect = 75,
  109. },
  110. Pocao100 = {
  111. Name = "Elixir of Armour [Extra Large]",
  112. XPNeed = 15,
  113. Description = "100% Armour Potion",
  114. Effects = "Gives +100% armour instantly",
  115. XPGained = 4,
  116. ItemNeed = "emptybottle",
  117. Amount = 1,
  118. NotifyCreated = "Elixir of Armour [Extra Large] created successfully.",
  119. TimeCreate = 10000,
  120. Effect = 100,
  121. },
  122. }
  123.  
  124. Config.StaminaPotion = {
  125. Enable = true,
  126. Name = "🔹 Stamina Potions",
  127. Job = false,
  128. JobName = "",
  129. --[[Pocao25 = {
  130. Name = "Elixir of Stamina [Small]",
  131. XPNeed = 0,
  132. Description = "25% Stamina Potion",
  133. Effects = "Gives +25% stamina instantly",
  134. XPGained = 1,
  135. ItemNeed = "emptybottle",
  136. Amount = 1,
  137. NotifyCreated = "Elixir of Stamina [Small] created successfully.",
  138. TimeCreate = 10000,
  139. },]]
  140. Pocao50 = {
  141. Name = "Elixir of Stamina [Medium]",
  142. XPNeed = 0,
  143. Description = "50% Stamina Potion",
  144. Effects = "Gives +50% stamina instantly",
  145. XPGained = 2,
  146. ItemNeed = "emptybottle",
  147. Amount = 1,
  148. NotifyCreated = "Elixir of Stamina [Medium] created successfully.",
  149. TimeCreate = 10000,
  150. },
  151. Pocao75 = {
  152. Name = "Elixir of Stamina [Large]",
  153. XPNeed = 5,
  154. Description = "75% Stamina Potion",
  155. Effects = "Gives +75% stamina instantly",
  156. XPGained = 3,
  157. ItemNeed = "emptybottle",
  158. Amount = 1,
  159. NotifyCreated = "Elixir of Stamina [Large] created successfully.",
  160. TimeCreate = 10000,
  161. },
  162. Pocao100 = {
  163. Name = "Elixir of Stamina [Extra Large]",
  164. XPNeed = 15,
  165. Description = "100% Stamina Potion",
  166. Effects = "Gives +100% stamina instantly",
  167. XPGained = 4,
  168. ItemNeed = "emptybottle",
  169. Amount = 1,
  170. NotifyCreated = "Elixir of Stamina [Extra Large] created successfully.",
  171. TimeCreate = 10000,
  172. },
  173. }
  174.  
  175. Config.NightvisionPotion = {
  176. Enable = true,
  177. Name = "🔹 Nightvision Potions",
  178. Job = false,
  179. JobName = "",
  180. Pocao25 = {
  181. Name = "Elixir of Nightvision [Small]",
  182. XPNeed = 0,
  183. Description = "10s Nightvision Potion",
  184. Effects = "Gives 10s nightvision instantly",
  185. XPGained = 1,
  186. ItemNeed = "emptybottle",
  187. Amount = 1,
  188. NotifyCreated = "Elixir of Nightvision [Small] created successfully.",
  189. TimeCreate = 10000,
  190. TimeUse = 10000, -- 10 Seconds
  191. },
  192. Pocao50 = {
  193. Name = "Elixir of Nightvision [Medium]",
  194. XPNeed = 5,
  195. Description = "20s Nightvision Potion",
  196. Effects = "Gives 20s nightvision instantly",
  197. XPGained = 2,
  198. ItemNeed = "emptybottle",
  199. Amount = 1,
  200. NotifyCreated = "Elixir of Nightvision [Medium] created successfully.",
  201. TimeCreate = 10000,
  202. TimeUse = 20000, -- 20 Seconds
  203. },
  204. Pocao75 = {
  205. Name = "Elixir of Nightvision [Large]",
  206. XPNeed = 10,
  207. Description = "30s Nightvision Potion",
  208. Effects = "Gives 30s nightvision instantly",
  209. XPGained = 3,
  210. ItemNeed = "emptybottle",
  211. Amount = 1,
  212. NotifyCreated = "Elixir of Nightvision [Large] created successfully.",
  213. TimeCreate = 10000,
  214. TimeUse = 30000, -- 30 Seconds
  215. },
  216. Pocao100 = {
  217. Name = "Elixir of Nightvision [Extra Large]",
  218. XPNeed = 15,
  219. Description = "40s Nightvision Potion",
  220. Effects = "Gives 40s nightvision instantly",
  221. XPGained = 4,
  222. ItemNeed = "emptybottle",
  223. Amount = 1,
  224. NotifyCreated = "Elixir of Nightvision [Extra Large] created successfully.",
  225. TimeCreate = 10000,
  226. TimeUse = 40000, -- 40 Seconds
  227. },
  228. }
  229.  
  230. Config.SpeedPotion = {
  231. Enable = true,
  232. Name = "🔹 Speed Potions",
  233. Job = false,
  234. JobName = "",
  235. Pocao25 = {
  236. Name = "Elixir of Speed [Small]",
  237. XPNeed = 0,
  238. Description = "10s Speed Potion",
  239. Effects = "Gives 10s speed instantly",
  240. XPGained = 1,
  241. ItemNeed = "emptybottle",
  242. Amount = 1,
  243. NotifyCreated = "Elixir of Speed [Small] created successfully.",
  244. TimeCreate = 10000,
  245. TimeUse = 10000, -- 10 Seconds
  246. },
  247. Pocao50 = {
  248. Name = "Elixir of Speed [Medium]",
  249. XPNeed = 5,
  250. Description = "20s Speed Potion",
  251. Effects = "Gives 20s speed instantly",
  252. XPGained = 2,
  253. ItemNeed = "emptybottle",
  254. Amount = 1,
  255. NotifyCreated = "Elixir of Speed [Medium] created successfully.",
  256. TimeCreate = 10000,
  257. TimeUse = 20000, -- 20 Seconds
  258. },
  259. Pocao75 = {
  260. Name = "Elixir of Speed [Large]",
  261. XPNeed = 10,
  262. Description = "30s Speed Potion",
  263. Effects = "Gives 30s speed instantly",
  264. XPGained = 3,
  265. ItemNeed = "emptybottle",
  266. Amount = 1,
  267. NotifyCreated = "Elixir of Speed [Large] created successfully.",
  268. TimeCreate = 10000,
  269. TimeUse = 30000, -- 30 Seconds
  270. },
  271. Pocao100 = {
  272. Name = "Elixir of Speed [Extra Large]",
  273. XPNeed = 15,
  274. Description = "40s Speed Potion",
  275. Effects = "Gives 40s speed instantly",
  276. XPGained = 4,
  277. ItemNeed = "emptybottle",
  278. Amount = 1,
  279. NotifyCreated = "Elixir of Speed [Extra Large] created successfully.",
  280. TimeCreate = 10000,
  281. TimeUse = 40000, -- 40 Seconds
  282. },
  283. }
  284.  
  285. -------------------------
  286. -- Language
  287. -------------------------
  288.  
  289. Config["Language"] = {
  290. ["QBMenu"] = {
  291. ["GeneralMenu"] = "Potions",
  292. ["MakePotions"] = "🧪 Make potions!",
  293. ["Information"] = "❓ Information",
  294. ["InformationHeader"] = "Here you can make health, armor, stamina, nightvision or speed potions. Clearly you will need to do one by one to learn how to do others. The more you do, the more XP you earn to improve your knowledge.",
  295. ["InformationBack"] = "< Back",
  296. ["Description"] = "Description: ",
  297. ["Name"] = "Name: ",
  298. ["Effect"] = "Effect: ",
  299. ["XPGained"] = "XP Gained: ",
  300. },
  301. ["Notification"] = {
  302. ["Failed"] = "You failed.",
  303. ["NoItems"] = "You don't have what you need.",
  304. ["InWater"] = "Não podes fazer isso dentro de água.",
  305. ["InCar"] = "Não podes fazer isso dentro de um veículo.",
  306. ["JobErrado"] = "Não tens o job necessário."
  307. },
  308. ["ProgressBars"] = {
  309. ["LifePotion"] = "Creating the potion of life..",
  310. ["ArmourPotion"] = "Creating the armor potion..",
  311. ["StaminaPotion"] = "Creating the stamina potion..",
  312. ["NightvisionPotion"] = "Creating the nightvision potion..",
  313. ["SpeedPotion"] = "Creating the speed potion..",
  314. ["DrinkPotions"] = "Drinking...",
  315. ["PutTable"] = "Put the table..",
  316. ["SaveTable"] = "Save the table..",
  317. },
  318. ["QBTarget"] = {
  319. ["MakePotions"] = "Make Potions",
  320. ["IconMakePotions"] = "fa-solid fa-filter",
  321. ["SaveTable"] = "Save Table",
  322. ["IconSaveTable"] = "fa-solid fa-filter",
  323. }
  324. }
Add Comment
Please, Sign In to add comment