marcinhuU

m-Hunting

Mar 10th, 2022
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. Config = {}
  2.  
  3. ---------------
  4. -- Utilitys
  5. ---------------
  6. Config.TriOpenInventory = "inventory:server:OpenInventory"
  7. Config.TriSetStash = "inventory:client:SetCurrentStash"
  8. Config.SkillBar = "np-skillbar"
  9. Config.QBMenu = "qb-menu"
  10. Config.QBTarget = "qb-target"
  11.  
  12. ---------------
  13. -- Zones
  14. ---------------
  15. Config.EnableZones = false
  16. Config.HuntingZones = { -- Zone available to hunting if enbalezones true
  17. 'MTCHIL',
  18. 'CANNY',
  19. 'MTGORDO',
  20. 'CMSW',
  21. 'MTJOSE'
  22. }
  23.  
  24. ---------------
  25. -- Animals
  26. ---------------
  27. Config.HuntingAnimals = {
  28. 'a_c_deer',
  29. 'a_c_coyote',
  30. 'a_c_mtlion',
  31. }
  32.  
  33. ---------------
  34. -- Drops on hunting
  35. ---------------
  36. Config.DropLegal = {
  37. "courobad",
  38. "couromed",
  39. "couromax",
  40. "carnebad",
  41. "carnemed",
  42. "carnemax",
  43. "chifresbad",
  44. "chifresmed",
  45. "chifresmax",
  46. }
  47.  
  48. ---------------
  49. -- Rewards / Prices
  50. ---------------
  51. -- Rewards
  52. Config.RewardFacaNivel_1 = 1 -- Amount of item received with knife level 1
  53. Config.RewardFacaNivel_2 = 2 -- Amount of item received with knife level 2
  54. Config.RewardFacaNivel_3 = 3 -- Amount of item received with knife level 3
  55. Config.RewardFacaNivel_4 = 4 -- Amount of item received with knife level 4
  56. Config.RewardFacaNivel_5 = 5 -- Amount of item received with knife level 5
  57.  
  58. -- Prices
  59. Config.PriceBeefBad = math.random(1,2) -- Price of bad meat
  60. Config.PriceBeefMed = math.random(2,3) -- Price of med meat
  61. Config.PriceBeefMax = math.random(3,4) -- Price of max meat
  62. Config.PriceLeatherBad = math.random(1,2) -- Price of bad leather
  63. Config.PriceLeatherMed = math.random(2,3) -- Price of med leather
  64. Config.PriceLeatherMax = math.random(3,4) -- Price of max leather
  65. Config.PriceHornsBad = math.random(1,2) -- Price of bad horns
  66. Config.PriceHornsMed = math.random(2,3) -- Price of med horns
  67. Config.PriceHornsMax = math.random(3,4) -- Price of max horns
  68.  
  69. ---------------
  70. -- Craft
  71. ---------------
  72. Config.ItemIlgalBait = "couromax"
  73. Config.AmoutItemIlgalBait = 25
  74. Config.ItemIlgalBaitLabel = "Couro de Alta Qualidade"
  75.  
  76. ---------------
  77. -- Tent Settings
  78. ---------------
  79. Config.NameStashTent = "Tenda" -- Name of stash tent
  80. Config.MaxWeightTentLevel_1 = 5000 -- Máx weight tent level 1
  81. Config.MaxSlotsTentLevel_1 = 5 -- Máx slots tent level 1
  82. Config.MaxWeightTentLevel_2 = 10000 -- Máx weight tent level 2
  83. Config.MaxSlotsTentLevel_2 = 10 -- Máx slots tent level 2
  84. Config.MaxWeightTentLevel_3 = 15000 -- Máx weight tent level 3
  85. Config.MaxSlotsTentLevel_3 = 15 -- Máx slots tent level 3
  86. Config.TendaNivel1 = 'prop_skid_tent_01' -- Prop tent level 1
  87. Config.TendaNivel2 = 'prop_skid_tent_01b' -- Prop tent level 2
  88. Config.TendaNivel3 = 'prop_skid_tent_03' -- Prop tent level 3
  89. Config.Grill = 'prop_bbq_4'
  90.  
  91. ---------------
  92. -- Upgrades
  93. ---------------
  94. -- Knifes
  95. Config.ItemUpNvl2 = "couromax"
  96. Config.ItemUpNvl2Label = "High Quality Leather"
  97. Config.AmountItemUpNvl2 = 30
  98. Config.ItemUpNvl3 = "couromax"
  99. Config.ItemUpNvl3Label = "High Quality Leather"
  100. Config.AmountItemUpNvl3 = 60
  101. Config.ItemUpNvl4 = "couromax"
  102. Config.ItemUpNvl4Label = "High Quality Leather"
  103. Config.AmountItemUpNvl4 = 90
  104. Config.ItemUpNvl5 = "couromax"
  105. Config.ItemUpNvl5Label = "High Quality Leather"
  106. Config.AmountItemUpNvl5 = 120
  107. -- Tent
  108. Config.ItemTendaUpNvl2 = "couromax"
  109. Config.ItemTendaUpNvl2Label = "High Quality Leather"
  110. Config.AmountItemTendaUpNvl2 = 30
  111. Config.ItemTendaUpNvl3 = "couromax"
  112. Config.ItemTendaUpNvl3Label = "High Quality Leather"
  113. Config.AmountItemTendaUpNvl3 = 60
  114.  
  115. ---------------
  116. -- Cooking
  117. ---------------
  118. -- Bónus
  119. Config.BonusForEating = "armour"
  120. Config.BonusStressBadBeef = math.random(2, 4)
  121. Config.BonusAmourBadBeef = math.random(2, 4)
  122. Config.BonusStaminaBadBeef = 0.3
  123. Config.BonusStressMedBeef = math.random(4, 6)
  124. Config.BonusAmourMedBeef = math.random(4, 6)
  125. Config.BonusStaminaMedBeef = 0.6
  126. Config.BonusStressMaxBeef = math.random(6, 8)
  127. Config.BonusAmourMaxBeef = math.random(6, 8)
  128. Config.BonusStaminaMaxBeef = 0.9
  129.  
  130. -- Items
  131. Config.ItemBeefBad = { item = "carnebad", label = "Low Quality Meat"}
  132. Config.ItemBeefMed = { item = "carnemed", label = "Medium Quality Meat"}
  133. Config.ItemBeefMax = { item = "carnemax", label = "High Quality Meat"}
  134.  
  135. ---------------
  136. -- Notifications
  137. ---------------
  138. Config["Notificacoes"] = {
  139. ["Falhaste"] = "You failed.",
  140. ["SemFaca"] = "You don't have a knife with you.",
  141. ["JaTens"] = "You already have a knife with you",
  142. ["NaoTensNecessario"] = "You don't have the right items.",
  143. }
  144.  
  145. ---------------
  146. -- Menus
  147. ---------------
  148. Config["QBMenu"] = {
  149. ["Geral"] = {
  150. ["Header"] = "[⚔️] Hunter",
  151. ["ReceivedKnife"] = "[🔪] I need a knife!",
  152. ["OpenShop"] = "[🛡] Open Shop",
  153. ["UpgradeKnife"] = "[✅] I want upgrade my knife!",
  154. ["FecharMenu"] = "[❌] Close",
  155. },
  156. ["Upgrades"] = {
  157. ["Header"] = "Upgrades",
  158. ["UpgradeNivel2"] = "[✅] Upgrade Knife Nível 2",
  159. ["UpNivel2Items"] = "You need: <br>"..Config.AmountItemUpNvl2.."x "..Config.ItemUpNvl2Label,
  160. ["UpgradeNivel3"] = "[✅] Upgrade Knife Nível 3",
  161. ["UpNivel3Items"] = "You need: <br>"..Config.AmountItemUpNvl3.."x "..Config.ItemUpNvl3Label,
  162. ["UpgradeNivel4"] = "[✅] Upgrade Knife Nível 4",
  163. ["UpNivel4Items"] = "You need: <br>"..Config.AmountItemUpNvl4.."x "..Config.ItemUpNvl4Label,
  164. ["UpgradeNivel5"] = "[✅] Upgrade Knife Nível 5",
  165. ["UpNivel5Items"] = "You need: <br>"..Config.AmountItemUpNvl5.."x "..Config.ItemUpNvl5Label,
  166. ["UpgradeTenda"] = "[✅] I want upgrade my tent!",
  167. ["UpgradeTendaNivel2"] = "[✅] Upgrade Tent Level 2",
  168. ["UpTendaNivel2Items"] = "You need: <br>"..Config.AmountItemTendaUpNvl2.."x "..Config.ItemTendaUpNvl2Label,
  169. ["UpgradeTendaNivel3"] = "[✅] Upgrade Tent Level 2",
  170. ["UpTendaNivel3Items"] = "You need: <br>"..Config.AmountItemTendaUpNvl3.."x "..Config.ItemTendaUpNvl3Label,
  171. },
  172. ["Cooking"] = {
  173. ["Header"] = "Cooking",
  174. ["CookingBeefBad"] = "Cooking Low Quality Meat",
  175. ["BeefBadItems"] = "You need: <br>"..Config.ItemBeefBad.label,
  176. ["CookingBeefMed"] = "Cooking Medium Quality Meat",
  177. ["BeefMedItems"] = "You need: <br>"..Config.ItemBeefMed.label,
  178. ["CookingBeefMax"] = "Cooking High Quality Meat",
  179. ["BeefMaxItems"] = "You need: <br>"..Config.ItemBeefMax.label,
  180. },
  181. ["Vendas"] = {
  182. ["Header"] = "[💵] Selling Items",
  183. ["VenderItems"] = "Sell Items",
  184. ["VenderCarne"] = "Sell Meat",
  185. ["VenderCouro"] = "Sell Leather",
  186. ["VenderChifres"] = "Sell Horns",
  187. ["VenCarneBaixaQL"] = "Sell Low Quality Meat",
  188. ["PriceCarneBaixaQL"] = "Price: "..Config.PriceBeefBad,
  189. ["VenCarneMediaQL"] = "Sell Medium Quality Meat",
  190. ["PriceCarneMediaQL"] = "Price: "..Config.PriceBeefMed,
  191. ["VenCarneAltaQL"] = "Sell High Quality Meat",
  192. ["PriceCarneAltaQL"] = "Price: "..Config.PriceBeefMax,
  193. ["VenChifresBaixaQL"] = "Sell Low Quality Horns",
  194. ["PriceChifresBaixaQL"] = "Price: "..Config.PriceHornsBad,
  195. ["VenChifresMediaQL"] = "Sell Medium Quality Horns",
  196. ["PriceChifresMediaQL"] = "Price: "..Config.PriceHornsMed,
  197. ["VenChifresAltaQL"] = "Sell High Quality Horns",
  198. ["PriceChifresAltaQL"] = "Price: "..Config.PriceHornsMax,
  199. ["VenCouroBaixaQL"] = "Sell Low Quality Leather",
  200. ["PriceCouroBaixaQL"] = "Price: "..Config.PriceLeatherBad,
  201. ["VenCouroMediaQL"] = "Sell Medium Quality Leather",
  202. ["PriceCouroMediaQL"] = "Price: "..Config.PriceLeatherMed,
  203. ["VenCouroAltaQL"] = "Sell High Quality Leather",
  204. ["PriceCouroAltaQL"] = "Price: "..Config.PriceLeatherMax,
  205. }
  206. }
  207.  
  208. ---------------
  209. -- QB-Target
  210. ---------------
  211. -- Target after kill a animal
  212. Config.TargetAnimalsLabel = "Skin"
  213. Config.TargetIconAnimals = "far fa-hand-paper"
  214. -- Target on tent
  215. Config.TargetOpenTent = "Access"
  216. Config.TargetIconOpenTent = "far fa-hand-paper"
  217. Config.TargetCloseTent = "Save Tent"
  218. Config.TargetIconCloseTent = "far fa-hand-paper"
  219. -- Target general menu mpc
  220. Config.TargetGeneralNpc = "Talk with hunter"
  221. Config.TargetIconGeneralNpc = "fa-solid fa-gun"
  222. -- Target craft hunting illegal
  223. Config.TargetCooking = "Cooking"
  224. Config.TargetIconCooking = "fas fa-coffee"
  225. Config.TargetSaveCooking = "Save Grill"
  226. Config.TargetIconSaveCooking = "fas fa-coffee"
  227. ---------------
  228. -- Peds
  229. ---------------
  230. Config.ShopLocation = vector3(2548.94, 5131.44, 50.93)
  231. Config.PedListHunting = {
  232. {
  233. model = "s_m_y_ammucity_01",
  234. coords = Config.ShopLocation,
  235. heading = 345.91,
  236. gender = "male",
  237. scenario = "WORLD_HUMAN_STAND_MOBILE_UPRIGHT"
  238. },
  239. }
  240.  
  241. -----------------
  242. -- Shop
  243. -----------------
  244. Config.OpenInvTrigger = "inventory:server:OpenInventory"
  245. Config.ShopName = "Hunting Shop"
  246. Config.Products = {
  247. ["Hunting"] = {
  248. [1] = {
  249. name = "huntingbait",
  250. price = 5,
  251. amount = 25,
  252. info = {},
  253. type = "item",
  254. slot = 1,
  255. },
  256. [2] = {
  257. name = "tendanivel1",
  258. price = 5,
  259. amount = 25,
  260. info = {},
  261. type = "item",
  262. slot = 2,
  263. },
  264. -- You can add more items
  265. },
  266. }
  267.  
  268. Config.LojinhaHunting = {
  269. ["Hunting"] = {
  270. ["label"] = "Hunting",
  271. ["type"] = "BM",
  272. ["coords"] = {
  273. [1] = {
  274. ["x"] = 1333.06, -- Dont touch, is using qb-target.
  275. ["y"] = 4326.86, -- Dont touch, is using qb-target.
  276. ["z"] = 38.017, -- Dont touch, is using qb-target.
  277. },
  278. },
  279. ["CoisasBoas"] = Config.Products["Hunting"],
  280. },
  281. }
  282.  
  283. -----------------
  284. -- Call Cops
  285. -----------------
  286. Config.EnableCallCops = true -- Enable police on illegal hunting?
  287. Config.ChanceCallCops = 10
  288. function ChamarPolicia()
  289. -- You can trigger your dispatch
  290. end
Add Comment
Please, Sign In to add comment