Advertisement
marcinhuU

m-Fishing

Mar 8th, 2022
3,844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.01 KB | None | 0 0
  1. Config = {}
  2.  
  3. ---------------
  4. -- Utility
  5. ---------------
  6. Config.TempoEsperaPescar = {minTime = 5000, maxTime = 10000} -- How long a player will be waiting to fish, during or after casting fishingrod
  7. Config.StopFishing = 73 -- Stop Fishing Key [X] (https://docs.fivem.net/docs/game-references/controls/)
  8. Config.QBTarget = "qb-target" -- The name of the Target export you are using
  9. Config.Skillbar = "np-skillbar" -- np-skillbar / reload-skillbar or qb-skillbar
  10. Config.EnableCommandForProp = true -- Enable command to remove fishing rod prop from hand
  11. Config.CommandForProp = "propcana"
  12. Config.HudRelieveStress = "hud:server:RelieveStress"
  13. Config.BonusForEating = "all" -- You can put: armour, stress, stamina or all
  14. Config.BonusStress = math.random(5, 10)
  15. Config.BonusAmour = math.random(5, 10)
  16. Config.BonusStamina = 1.0
  17.  
  18. ---------------
  19. -- Blips
  20. ---------------
  21. Config.BlipSpriteLegalFishing = 410
  22. Config.BlipDisplayLegalFishing = 4
  23. Config.BlipScaleLegalFishing = 0.7
  24. Config.BlipColourLegalFishing = 74
  25. Config.LegalFishing = {
  26. [1] = { x = -1814.75, y = -951.19, z = 1.7, name = "Zona de Pesca Legal"},
  27. [2] = { x = -283.98, y = 6602.14, z = 1.33, name = "Zona de Pesca Legal"},
  28. }
  29.  
  30. ----------------------
  31. -- Car
  32. ----------------------
  33. Config.Fuel = "LegacyFuel" -- Name of your fuel script
  34. Config.VehicleKeysTrigger = "vehiclekeys:client:SetOwner" -- Trigger to give vehiclekeys
  35.  
  36. Config.Barcos = {
  37. [1] = {barco = "dinghy"}, -- Boat
  38. }
  39.  
  40. Config.SpawnBarcoLosSantos = { -- Locations to spawn boat SandyShores
  41. [1] = {x = -1827.51, y = -956.93, z = -0.14, h = 114.64},
  42. [2] = {x = -1836.51, y = -946.11, z = -0.27, h = 94.39},
  43. -- You can add more
  44. }
  45.  
  46. Config.SpawnBarcoPaletoBay = { -- Locations to spawn boat PaletoBay
  47. [1] = {x = -292.51, y = 6617.31, z = -0.40, h = 38.70},
  48. [2] = {x = -294.22, y = 6637.88, z = -0.40, h = 71.35},
  49. -- You can add more
  50. }
  51.  
  52. ---------------
  53. -- Fish
  54. ---------------
  55. Config.PeixeLegal = { -- Legal Fish
  56. "cavala",
  57. "bacalhau",
  58. "robalo",
  59. "linguado",
  60. "fishingtin",
  61. "raia",
  62. "fishingboot",
  63. "salmao",
  64. "atum",
  65. "sardinha",
  66. "peixegato",
  67. "tamboril"
  68. }
  69.  
  70. Config.PixeIlegal = { -- Illegal Fish
  71. "golfinho",
  72. "tubaraotigre",
  73. "tubaraomartelo",
  74. "baleia",
  75. "fishingboot",
  76. }
  77.  
  78. ---------------
  79. -- Upgrades
  80. ---------------
  81. -- Upgrade Fishingrod
  82. Config.ItemNecessario1 = "raia" -- First item needed to upgrade fishing rod
  83. Config.ItemNecessario1Label = "Stingray" -- Item name to look nice in the menu :D
  84. Config.AmountItemNecessario1 = 25 -- Amount of first item needed
  85. Config.ItemNecessario2 = "bacalhau" -- Second item needed to upgrade fishing rod
  86. Config.ItemNecessario2Label = "Cod" -- Item name to look nice in the menu :D
  87. Config.AmountItemNecessario2 = 50 -- Amount of second item needed
  88.  
  89. -- Upgrade Net
  90. Config.ItemNecessarioRede1 = "raia" -- First item needed to upgrade fishing rod
  91. Config.ItemNecessarioRede1Label = "Stingray" -- Item name to look nice in the menu :D
  92. Config.AmountItemNecessarioRede1 = 25 -- Amount of first item needed
  93. Config.ItemNecessarioRede2 = "bacalhau" -- Second item needed to upgrade fishing rod
  94. Config.ItemNecessarioRede2Label = "Cod" -- Item name to look nice in the menu :D
  95. Config.AmountItemNecessarioRede2 = 50 -- Amount of second item needed
  96.  
  97. ---------------
  98. -- Rewards
  99. ---------------
  100. -- Fishing with fishingrod
  101. Config.RewardCanaNivel_1 = 1 -- Amount of item when you have a fishingrod level 1
  102. Config.RewardCanaNivel_2 = 2 -- Amount of item when you have a fishingrod level 2
  103. Config.RewardCanaNivel_3 = 3 -- Amount of item when you have a fishingrod level 3
  104. Config.RewardCanaNivel_4 = 4 -- Amount of item when you have a fishingrod level 4
  105. Config.RewardCanaNivel_5 = 5 -- Amount of item when you have a fishingrod level 5
  106.  
  107. -- Fishing with net fish
  108. Config.FishingTimeWithNet = 30000 -- 30 Seconds
  109. Config.RewardNetNivel_1 = math.random(2,3) -- Reward of fish's with fish net level 1
  110. Config.RewardNetNivel_2 = math.random(3,4) -- Reward of fish's with fish net level 2
  111. Config.RewardNetNivel_3 = math.random(4,5) -- Reward of fish's with fish net level 3
  112. Config.RewardNetNivel_4 = math.random(5,6) -- Reward of fish's with fish net level 4
  113. Config.RewardNetNivel_5 = math.random(6,7) -- Reward of fish's with fish net level 5
  114.  
  115. ---------------
  116. -- Sell Fishs
  117. ---------------
  118. Config.VendaPeixes = { -- Blip to sell fish you have caught (ONLY LEGAL FISH)
  119. [1] = { x = -1816.40, y = -1193.33, z = 13.305, name = "Venda de Peixe"},
  120. [2] = { x = -638.65, y = -1249.60, z = 11.81, name = "Venda de Peixe"},
  121. }
  122.  
  123. -- Legal Fish
  124. Config.PrecoCavala = math.random(1,5) -- Price of sell Mackerel
  125. Config.PrecoBacalhau = math.random(1,5) -- Price of sell Cod
  126. Config.PrecoRobalo = math.random(1,5) -- Price of sell Bass Fish
  127. Config.PrecoLinguado = math.random(1,5) -- Price of sell Flounder
  128. Config.PrecoRaia = math.random(1,5) -- Price of sell Stingrays
  129. Config.PrecoSalmao = math.random(1,5) -- Price of sell Stingray
  130. Config.PrecoAtum = math.random(1,5) -- Price of sell Tuna Fish
  131. Config.PrecoSardinha = math.random(1,5) -- Price of sell Sardine
  132. Config.PrecoPeixeGato = math.random(1,5) -- Price of sell Catfish
  133. Config.PrecoTamboril = math.random(1,5) -- Price of sell Monkfish
  134.  
  135. -- Ilegal Fish
  136. Config.PrecoGolfinho = math.random(100,200) -- Price of sell Dolphins
  137. Config.PrecoTubaraoTigre = math.random(200,300) -- Price of sell Tigersharks
  138. Config.PrecoTubaraoMartelo = math.random(300,400) -- Price of sell Hammerhead Sharks
  139. Config.PrecoBaleia = math.random(400,500) -- Price of sell Killer Whales
  140.  
  141.  
  142. ---------------
  143. -- Treasure Chest
  144. ---------------
  145. Config.CaixasRaras = { -- The percentage of these boxes going fishing is: 10%
  146. "fishingloot",
  147. "fishinglootbig",
  148. }
  149.  
  150. Config.RewardDinheiroLootBox = 100 -- Cash reward when opening the box: fishingloot
  151. Config.RewardItemLootBox = 'diamond_ring' -- Item reward when opening the box: fishingloot
  152.  
  153. Config.RewardsCaixaTesouro = { -- These items will come out in the box fishinglootbig
  154. [1] = { name = "water", price = 0, amount = math.random(1,2), info = {}, type = "item", slot = 1, },
  155. [2] = { name = "ouro", price = 0, amount = math.random(1,2), info = {}, type = "item", slot = 2, },
  156. [3] = { name = "phone", price = 0, amount = math.random(1,2), info = {}, type = "item", slot = 3, },
  157. [4] = { name = "ferro", price = 0, amount = math.random(1,2), info = {}, type = "item", slot = 4, },
  158. [5] = { name = "water", price = 0, amount = math.random(1,2), info = {}, type = "item", slot = 5, },
  159. }
  160.  
  161. ---------------
  162. -- Notifications
  163. ---------------
  164. Config["Notificacoes"] = {
  165. -- General
  166. ["NaoTensNecessario"] = "You don't have the necessary.",
  167. ["SemCanaPesca"] = "You don't have a fishingrod.",
  168. ["SoAnoite"] = "We only work between 20:00 and 00:00.",
  169. ["VoltaNoite"] = "Come back here overnight.",
  170. ["Info1"] = "I know of a friend who buys these fish.",
  171. ["Info2"] = "Search for the restaurant: Train Los Santos Dinner.",
  172. ["NadarPescar"] = "You can't swim and fish at the same time..",
  173. ["ForaVeiculo"] = "You need to be out of a vehicle to fish.",
  174. ["PressionaX"] = "Press [X] to stop fishing",
  175. ["LongeCosta"] = "You need to be further from the coast.",
  176. ["AncoraSolta"] = "Anchor successfully released.",
  177. ["LargarAncora"] = "Boat docked successfully.",
  178. ["PescadoSucesso"] = "Successfully caught fish.",
  179. ["SemIscas"] = "You don't have any fishing bait with you",
  180. ["TentarAbrirTesouro"] = "Trying to open the treasure chest..",
  181. ["ChavePartiu"] = "The corroded key broke.",
  182. ["BauAberto"] = "Treasure chest open! Be sure to collect all your treasure!",
  183. ["Cancelado"] = "Canceled.",
  184. ["ParastePesca"] = "You stopped fishing.",
  185. ["AguaNaoProfunda"] = "The water isn't deep enough to fish.",
  186. ["PescaTerminou"] = "You stopped fishing.",
  187. ["PeixeEscapou"] = "The fish escaped!",
  188. ["NaoTensChave"] = "You don't have the key to open it.",
  189. ["PeixeFugiu"] = "The fish ran away!",
  190. ["SpawnBloqueado"] = "There is a vehicle blocking the spawn.",
  191. -- Sell illegal fish
  192. ["GolfinhoVendido"] = "Dolphin sold by: $"..Config.PrecoGolfinho,
  193. ["NaoTensGolfinho"] = "You don't have any dolphins to sell.",
  194. ["TubaraoTVendido"] = "Tiger shark sold by: $"..Config.PrecoTubaraoTigre,
  195. ["NaoTensTubaraoT"] = "You don't have any tiger sharks for sale.",
  196. ["TubaraoMVendido"] = "Hammer shark sold by: $"..Config.PrecoTubaraoMartelo,
  197. ["NaoTensTubaraoM"] = "You don't have any hammerhead sharks for sale.",
  198. ["BaleiaVendida"] = "Whale sold by: $"..Config.PrecoBaleia,
  199. ["NaoTensBaleia"] = "You don't have any whales to sell.",
  200. -- Sell legal fish
  201. ["CavalaVendida"] = "Mackerel sold by: $"..Config.PrecoCavala,
  202. ["NaoTensCavala"] = "You don't have any mackerel to sell.",
  203. ["BacalhauVendido"] = "Cod sold by: $"..Config.PrecoBacalhau,
  204. ["NaoTensBacalhau"] = "You don't have any cod to sell.",
  205. ["RobaloVendido"] = "Bass sold by: $"..Config.PrecoRobalo,
  206. ["NaoTensRobalo"] = "You don't have any bass to sell.",
  207. ["LinguadoVendido"] = "Flounder sold by: $"..Config.PrecoLinguado,
  208. ["NaoTensLinguado"] = "You don't have any flounder to sell.",
  209. ["RaiaVendida"] = "Stingray sold by: $"..Config.PrecoRaia,
  210. ["NaoTensRaia"] = "You don't have any stingray to sell.",
  211. ["SalmaoVendida"] = "Salmon sold by: $"..Config.PrecoSalmao,
  212. ["NaoTensSalmao"] = "You don't have any salmon to sell.",
  213. ["AtumVendida"] = "Tuna fish sold by: $"..Config.PrecoAtum,
  214. ["NaoTensAtum"] = "You don't have any tuna fish to sell.",
  215. ["SardinhaVendida"] = "Sardine sold by: $"..Config.PrecoSardinha,
  216. ["NaoTensSardinha"] = "You don't have sardine fish to sell.",
  217. ["PeixeGatoVendida"] = "Catfish sold by: $"..Config.PrecoPeixeGato,
  218. ["NaoTensPeixeGato"] = "You don't have catfish to sell.",
  219. ["TamborilVendida"] = "Monkfish sold by: $"..Config.PrecoPeixeGato,
  220. ["NaoTensTamboril"] = "You don't have monkfish to sell.",
  221. -- Cooking
  222. ["SemBacalhau"] = "You don't have cod.",
  223. ["SemCavala"] = "You don't have mackerel.",
  224. ["SemSalmao"] = "You don't have salmon.",
  225. ["SemSardinha"] = "You don't have sardines.",
  226. }
  227.  
  228. ---------------
  229. -- Menus
  230. ---------------
  231. Config.QBMenuFish = "qb-menu"
  232. Config["QBMenu"] = {
  233. -- General
  234. ["Pescador"] = "[👩‍🏭] Fisherman",
  235. ["PedirCana"] = "[🎣] I want a fishigrod!",
  236. ["PedirRede"] = "[🎣] I want a net!",
  237. ["AbrirLoja"] = "[📦] Open Shop",
  238. ["UpgradeCana"] = "[✅] Evolve my fishigrod!",
  239. ["UpgradeRede"] = "[✅] Evolve my net!",
  240. ["SellFish"] = "[🐠] I want sell fish!",
  241. ["InfoSobrePeixeIlegal"] = "Do you know anything about illegal fish?",
  242. -- Sell Legal Fish
  243. ["SellHeader"] = "[🍽] Pearl's Seafood Restaurante",
  244. ["VenderCavala"] = "[🐠] Sell Mackerel",
  245. ["PrecoCavala"] = "Current Price: $"..Config.PrecoCavala.." each",
  246. ["VenderBacalhau"] = "[🐠] Sell Cod",
  247. ["PrecoBacalhau"] = "Current Price: $"..Config.PrecoBacalhau.." each",
  248. ["VenderRobalo"] = "[🐠] Sell Bass",
  249. ["PrecoRobalo"] = "Current Price: $"..Config.PrecoRobalo.." each",
  250. ["VenderLinguado"] = "[🐠] Sell Flounder",
  251. ["PrecoLinguado"] = "Current Price: $"..Config.PrecoLinguado.." each",
  252. ["VenderRaia"] = "[🐠] Sell Stingray",
  253. ["PrecoRaia"] = "Current Price: $"..Config.PrecoRaia.." each",
  254. ["VenderSalmao"] = "[🐠] Sell Salmon",
  255. ["PrecoSalmao"] = "Current Price: $"..Config.PrecoSalmao.." each",
  256. ["VenderAtum"] = "[🐠] Sell Tuna Fish",
  257. ["PrecoAtum"] = "Current Price: $"..Config.PrecoAtum.." each",
  258. ["VenderSardinha"] = "[🐠] Sell Sardine",
  259. ["PrecoSardinha"] = "Current Price: $"..Config.PrecoSardinha.." each",
  260. ["VenderPeixeGato"] = "[🐠] Sell Catfish",
  261. ["PrecoPeixeGato"] = "Current Price: $"..Config.PrecoPeixeGato.." each",
  262. ["VenderTamboril"] = "[🐠] Sell Monkfish",
  263. ["PrecoTamboril"] = "Current Price: $"..Config.PrecoTamboril.." each",
  264. -- Sell Ilegal Fish
  265. ["VenderGolfinho"] = "[🐬] Sell Dolphin",
  266. ["PrecoGolfinho"] = "Current Price: $"..Config.PrecoGolfinho.." each",
  267. ["VenderTubaraoTigre"] = "[🦈] Sell Tiger Shark",
  268. ["PrecoTubaraoTigre"] = "Current Price: $"..Config.PrecoTubaraoTigre.." each",
  269. ["VenderTubaraoMartelo"] = "[🦈] Sell Hammer Shark",
  270. ["PrecoTubaraoMartelo"] = "Current Price: $"..Config.PrecoTubaraoMartelo.." each",
  271. ["VenderBaleia"] = "[🐋] Sell Whale",
  272. ["PrecoBaleia"] = "Current Price: $"..Config.PrecoBaleia.." each",
  273. ["FecharMenu"] = "[❌] Close",
  274. -- Upgrades
  275. ["Upgrades"] = "[✅] Upgrade Fishingrod",
  276. ["UpgradeLevel2"] = "[🎣] Upgrade to level 2",
  277. ["RequiredLevel2"] = "Required: <br>"..Config.AmountItemNecessario1.."x "..Config.ItemNecessario1Label.."<br>"..Config.AmountItemNecessario2.."x "..Config.ItemNecessario2Label,
  278. ["UpgradeLevel3"] = "[🎣] Upgrade to level 3",
  279. ["RequiredLevel3"] = "Required: <br>"..Config.AmountItemNecessario1.."x "..Config.ItemNecessario1Label.."<br>"..Config.AmountItemNecessario2.."x "..Config.ItemNecessario2Label,
  280. ["UpgradeLevel4"] = "[🎣] Upgrade to level 4",
  281. ["RequiredLevel4"] = "Required: <br>"..Config.AmountItemNecessario1.."x "..Config.ItemNecessario1Label.."<br>"..Config.AmountItemNecessario2.."x "..Config.ItemNecessario2Label,
  282. ["UpgradeLevel5"] = "[🎣] Upgrade to level 5",
  283. ["RequiredLevel5"] = "Required: <br>"..Config.AmountItemNecessario1.."x "..Config.ItemNecessario1Label.."<br>"..Config.AmountItemNecessario2.."x "..Config.ItemNecessario2Label,
  284.  
  285. ["UpgradesRede"] = "[✅] Upgrade Net",
  286. ["UpgradeRedeLevel2"] = "[🎣] Upgrade to level 2",
  287. ["RequiredRedeLevel2"] = "Required: <br>"..Config.AmountItemNecessarioRede1.."x "..Config.ItemNecessarioRede1Label.."<br>"..Config.AmountItemNecessarioRede2.."x "..Config.ItemNecessarioRede2Label,
  288. ["UpgradeRedeLevel3"] = "[🎣] Upgrade to level 3",
  289. ["RequiredRedeLevel3"] = "Required: <br>"..Config.AmountItemNecessarioRede1.."x "..Config.ItemNecessarioRede1Label.."<br>"..Config.AmountItemNecessarioRede2.."x "..Config.ItemNecessarioRede2Label,
  290. ["UpgradeRedeLevel4"] = "[🎣] Upgrade to level 4",
  291. ["RequiredRedeLevel4"] = "Required: <br>"..Config.AmountItemNecessarioRede1.."x "..Config.ItemNecessarioRede1Label.."<br>"..Config.AmountItemNecessarioRede2.."x "..Config.ItemNecessarioRede2Label,
  292. ["UpgradeRedeLevel5"] = "[🎣] Upgrade to level 5",
  293. ["RequiredRedeLevel5"] = "Required: <br>"..Config.AmountItemNecessarioRede1.."x "..Config.ItemNecessarioRede1Label.."<br>"..Config.AmountItemNecessarioRede2.."x "..Config.ItemNecessarioRede2Label,
  294. -- Cooking
  295. ["Campfire"] = "🔥 Campfire",
  296. ["CozinharBacalhau"] = "[🍳] Cooking cod",
  297. ["CozinharCavala"] = "[🍳] Cooking mackerel",
  298. ["CozinharSalmao"] = "[🍳] Cooking salmon",
  299. ["CozinharSardinha"] = "[🍳] Cooking sardines",
  300. -- Rent Boats
  301. ["RentBoat"] = "[🛶] I need a boat!",
  302. ["DevolverBarco"] = "[🛶] Return boat",
  303. ["LosSantos"] = "[🏢] Los Santos",
  304. ["PaletoBay"] = "[🏘] Paleto Bay",
  305.  
  306. }
  307.  
  308.  
  309. ---------------
  310. -- Peds
  311. ---------------
  312. Config.PedListFishing = {
  313. {
  314. model = "s_m_y_ammucity_01",
  315. coords = vector3(-1816.21, -951.54, 0.45),
  316. heading = 110.0,
  317. gender = "male",
  318. scenario = "WORLD_HUMAN_STAND_FISHING"
  319. },
  320. {
  321. model = "s_m_y_ammucity_01",
  322. coords = vector3(-283.98, 6602.14, 0.33),
  323. heading = 55.57,
  324. gender = "male",
  325. scenario = "WORLD_HUMAN_STAND_FISHING"
  326. },
  327. {
  328. model = "s_m_y_busboy_01",
  329. coords = vector3(-1816.406, -1193.334, 13.305),
  330. heading = 325.172,
  331. gender = "male",
  332. scenario = "WORLD_HUMAN_CLIPBOARD"
  333. },
  334. {
  335. model = "a_m_y_mexthug_01",
  336. coords = vector3(-371.11, 277.47, 85.42), -- Location to sell illegal fish
  337. heading = 308.44,
  338. gender = "male",
  339. scenario = "WORLD_HUMAN_CLIPBOARD"
  340. },
  341. {
  342. model = "s_m_y_busboy_01",
  343. coords = vector3(-638.65, -1249.60, 10.81),
  344. heading = 170.44,
  345. gender = "male",
  346. scenario = "WORLD_HUMAN_CLIPBOARD"
  347. },
  348. }
  349.  
  350.  
  351. -----------------
  352. -- Shop
  353. -----------------
  354. Config.OpenInvTrigger = "inventory:server:OpenInventory"
  355. Config.ShopName = "Fishing Shop"
  356. Config.Products = {
  357. ["Fishing"] = {
  358. [1] = {
  359. name = "fishbait",
  360. price = 5,
  361. amount = 25,
  362. info = {},
  363. type = "item",
  364. slot = 1,
  365. },
  366. [2] = {
  367. name = "fishbaitilegal",
  368. price = 5,
  369. amount = 25,
  370. info = {},
  371. type = "item",
  372. slot = 2,
  373. },
  374. [3] = {
  375. name = "anchor",
  376. price = 5,
  377. amount = 25,
  378. info = {},
  379. type = "item",
  380. slot = 3,
  381. },
  382. [4] = {
  383. name = "fishicebox",
  384. price = 5,
  385. amount = 25,
  386. info = {},
  387. type = "item",
  388. slot = 4,
  389. },
  390. [5] = {
  391. name = "fogueira",
  392. price = 5,
  393. amount = 25,
  394. info = {},
  395. type = "item",
  396. slot = 5,
  397. },
  398. -- You can add more items
  399. },
  400. }
  401.  
  402. Config.LojinhaFishing = {
  403. ["Fishing"] = {
  404. ["label"] = "Fishing",
  405. ["type"] = "BM",
  406. ["coords"] = {
  407. [1] = {
  408. ["x"] = 1333.06, -- Dont touch, is using qb-target.
  409. ["y"] = 4326.86, -- Dont touch, is using qb-target.
  410. ["z"] = 38.017, -- Dont touch, is using qb-target.
  411. },
  412. },
  413. ["CoisasBoas"] = Config.Products["Fishing"],
  414. },
  415. }
  416.  
  417. -------------
  418. --- Police Alert Ilegal Fishing
  419. ------------
  420. Config.ChanceChamarPolicia = 10 -- 10% probability to call cops
  421. function AlertarPolicia()
  422. TriggerServerEvent('qb-dispatch:illegalmining')
  423. -- You can trigger your dispatch
  424. end
  425.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement