marcinhuUu

m-GoldRush

Jul 17th, 2022 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. Config = {}
  2.  
  3. --------------------------
  4. -- Utility
  5. --------------------------
  6. Config.InvLink = "qs-inventory/html/images/" -- This is only valid if you use QBCore
  7. Config.Utility = {
  8. Framework = "ESX", -- QBCore or ESX
  9. CoreName = "esx:getSharedObject", -- qb-core or esx:getSharedObject
  10. InventoryTrigger = "inventory:client:ItemBox", -- Only for QBCore
  11. AddItem = "QBCore:Server:AddItem", -- Only for QBCore
  12. Target = "qb-target", -- Only for QBCore
  13. RemoveItem = "QBCore:Server:RemoveItem", -- Only for QBCore
  14. OpenInvTrigger = "inventory:server:OpenInventory", -- Only for QBCore
  15. Peds = {
  16. {type = 4, hash= GetHashKey("ig_floyd"), x = 287.68, y = 2843.82, z = 43.70, h = 120.48},
  17. {type = 4, hash= GetHashKey("ig_floyd"), x = -622.15, y = -232.19, z = 37.06, h = 130.31}
  18. },
  19. Blip = {
  20. Main = {
  21. Enable = true,
  22. Zone = vector3(286.6, 2843.83, 44.7),
  23. Sprite = 467,
  24. Display = 4,
  25. Colour = 25,
  26. Scale = 0.7,
  27. Name = "Gold Rush",
  28. },
  29. Sell = {
  30. Enable = true,
  31. Zone = vector3(-622.09, -232.18, 38.06),
  32. Sprite = 467,
  33. Display = 4,
  34. Colour = 25,
  35. Scale = 0.7,
  36. Name = "Sell Gold",
  37. },
  38. CollectGravel = {
  39. Enable = true,
  40. Zone = vector3(-182.28, 3039.09, 19.28),
  41. Sprite = 467,
  42. Display = 4,
  43. Colour = 25,
  44. Scale = 0.7,
  45. Name = "Collect Gravel",
  46. },
  47. SeparateGravel = {
  48. Enable = true,
  49. Zone = vector3(1077.16, -1984.45, 31.01),
  50. Sprite = 467,
  51. Display = 4,
  52. Colour = 21,
  53. Scale = 0.7,
  54. Name = "Separate Gravel",
  55. },
  56. },
  57. Locations = {
  58. Main = { -- This is for qb-target / qtarget location
  59. Zone = vector3(287.61, 2843.81, 44.7),
  60. Lenght = 0.6,
  61. Width = 0.6,
  62. Heading = 300,
  63. MinZ = 41.7,
  64. MaxZ = 45.7,
  65. Distance = 2.0,
  66. },
  67. Sell = { -- This is for qb-target / qtarget location
  68. Zone = vector3(-622.09, -232.18, 38.06),
  69. Lenght = 0.6,
  70. Width = 1.0,
  71. Heading = 306,
  72. MinZ = 35.06,
  73. MaxZ = 39.06,
  74. Distance = 2.0,
  75. },
  76. CollectGravel = { -- This is for qb-target / qtarget location
  77. Zone = vector3(-193.88, 3028.41, 19.32),
  78. Lenght = 72,
  79. Width = 5,
  80. Heading = 139,
  81. MinZ = 16.32,
  82. MaxZ = 20.32,
  83. Distance = 2.0,
  84. },
  85. SeparateGravel = {
  86. Zone = vector3(1076.34, -1983.81, 31.01),
  87. Lenght = 3.4,
  88. Width = 1.0,
  89. Heading = 329,
  90. MinZ = 27.61,
  91. MaxZ = 31.61,
  92. Distance = 2.0,
  93. },
  94. BurnGold = {
  95. Zone = vector3(1111.42, -2009.16, 31.04),
  96. Lenght = 4.0,
  97. Width = 3.0,
  98. Heading = 325,
  99. MinZ = 28.84,
  100. MaxZ = 32.84,
  101. Distance = 2.0,
  102. },
  103. MakeItems = {
  104. Zone = vector3(1072.57, -1987.86, 30.91),
  105. Lenght = 3.2,
  106. Width = 1.0,
  107. Heading = 325,
  108. MinZ = 27.31,
  109. MaxZ = 31.31,
  110. Distance = 2.0,
  111. },
  112. DeleteVehicle = { -- This is for qb-target / qtarget location
  113. Zone = vector3(277.64, 2840.01, 43.53),
  114. Lenght = 16.0,
  115. Width = 5.0,
  116. Heading = 30,
  117. MinZ = 41.33,
  118. MaxZ = 45.33,
  119. Distance = 5.0,
  120. }
  121. },
  122. SpawnCar = {
  123. Fuel = "LegacyFuel", -- Your trigger fuel
  124. VehicleKeysTrigger = "vehiclekeys:client:SetOwner", -- Only for QBCore
  125. Car = "biff", -- Car name
  126. Locations = {
  127. [1] = {x = 279.27, y = 2837.19, z = 43.57, h = 31.67}, -- Location car spawn
  128. }
  129. },
  130. Rewards = {
  131. CollectGravel = {
  132. Min = 2, -- Min collecting
  133. Max = 4, -- Max collecting
  134. },
  135. SeparateGravel = {
  136. Drops = {
  137. [1] = "1ql_pieceofgold",
  138. [2] = "10ql_pieceofgold",
  139. [3] = "12ql_pieceofgold",
  140. [4] = "14ql_pieceofgold",
  141. [5] = "16ql_pieceofgold",
  142. },
  143. Min = 2,
  144. Max = 4,
  145. },
  146. BurnGold = {
  147. Requirement = { -- Amount of piece of gold needed to burn one gold bar
  148. Piece16QL = 1,
  149. Piece14QL = 2,
  150. Piece12QL = 3,
  151. Piece10QL = 4,
  152. Piece1QL = 5,
  153. },
  154. Drops = {
  155. [1] = "m_gold", -- Drops after burning the piece of gold
  156. },
  157. Min = 2, -- Min. Amount of drops after burning
  158. Max = 4, -- Max. Amount of drops after burning
  159. },
  160. },
  161. Accessories = {
  162. Ring = { -- Gold Ring
  163. AmountOfGold = 1, -- Amount of gold necessary to make 1 ring
  164. AmountOfRing = 1, -- Amount of ring received with 1 gold
  165. },
  166. Chain = { -- Gold Chain
  167. AmountOfGold = 1, -- Amount of gold necessary to make 1 chain
  168. AmountOfChain = 1, -- Amount of chain received with 1 gold
  169. },
  170. Bracelet = { -- Gold Bracelet
  171. AmountOfGold = 1, -- Amount of gold necessary to make 1 bracelet
  172. AmountOfBracelet = 1, -- Amount of bracelet received with 1 gold
  173. },
  174. },
  175. Sell = {
  176. Gold = { -- Price of each gold
  177. Value = {
  178. Min = 5,
  179. Max = 8,
  180. }
  181. },
  182. Ring = { -- Price of each gold ring
  183. Value = {
  184. Min = 5,
  185. Max = 8,
  186. }
  187. },
  188. Chain = { -- Price of each gold chain
  189. Value = {
  190. Min = 5,
  191. Max = 8,
  192. }
  193. },
  194. Bracelet = { -- Price of each gold bracelet
  195. Value = {
  196. Min = 5,
  197. Max = 8,
  198. }
  199. },
  200. }
  201. }
  202.  
  203. --------------------------
  204. -- Shop
  205. --------------------------
  206. -- The shop is only available on QBCore
  207. Config.Items = {
  208. [1] = {
  209. name = "water_bottle",
  210. price = 0,
  211. amount = 10,
  212. info = {},
  213. type = "item",
  214. slot = 1,
  215. },
  216. [2] = {
  217. name = "weapon_bread",
  218. price = 0,
  219. amount = 10,
  220. info = {},
  221. type = "item",
  222. slot = 2,
  223. },
  224. [2] = {
  225. name = "m_goldpan",
  226. price = 0,
  227. amount = 10,
  228. info = {},
  229. type = "item",
  230. slot = 2,
  231. },
  232. }
  233.  
Add Comment
Please, Sign In to add comment