fishing
This commit is contained in:
parent
7e2451be50
commit
176f249885
23 changed files with 1323 additions and 0 deletions
146
resources/[jobs]/[civ]/wasabi_fishing/configuration/config.lua
Normal file
146
resources/[jobs]/[civ]/wasabi_fishing/configuration/config.lua
Normal file
|
|
@ -0,0 +1,146 @@
|
|||
-----------------For support, scripts, and more----------------
|
||||
--------------- https://discord.gg/wasabiscripts -------------
|
||||
---------------------------------------------------------------
|
||||
|
||||
local seconds, minutes = 1000, 60000
|
||||
Config = {}
|
||||
|
||||
Config.checkForUpdates = true -- Check for updates?
|
||||
Config.oldESX = false -- Nothing to do with qb / Essentially when set to true it disables the check of if player can carry item
|
||||
|
||||
Config.sellShop = {
|
||||
enabled = true,
|
||||
coords = vec3(-1612.19, -989.18, 13.01-0.9), -- X, Y, Z Coords of where fish buyer will spawn
|
||||
heading = 45.3, -- Heading of fish buyer ped
|
||||
ped = 'cs_old_man2' -- Ped name here
|
||||
}
|
||||
|
||||
Config.bait = {
|
||||
types = {
|
||||
{
|
||||
itemName = 'fishbait',
|
||||
label = 'Standard Bait',
|
||||
loseChance = 65,
|
||||
catchBonus = 0 -- base chance
|
||||
},
|
||||
{
|
||||
itemName = 'worm_bait',
|
||||
label = 'Worm',
|
||||
loseChance = 50,
|
||||
catchBonus = 10 -- 10% better catch chance
|
||||
},
|
||||
{
|
||||
itemName = 'bread_bait',
|
||||
label = 'Bread',
|
||||
loseChance = 75,
|
||||
catchBonus = 5 -- 5% better catch chance
|
||||
},
|
||||
{
|
||||
itemName = 'artificial_lure',
|
||||
label = 'Artificial Lure',
|
||||
loseChance = 30, -- harder to lose
|
||||
catchBonus = 15 -- 15% better catch chance
|
||||
},
|
||||
{
|
||||
itemName = 'young_salmon',
|
||||
label = 'Young Salmon',
|
||||
loseChance = 60,
|
||||
catchBonus = 20, -- 20% better catch chance
|
||||
exclusive = {'pufferfish'} -- can only catch pufferfish with this
|
||||
}
|
||||
},
|
||||
defaultBait = 'fishbait' -- Default bait item name
|
||||
}
|
||||
|
||||
Config.processing = {
|
||||
knifeItem = 'weapon_knife',
|
||||
products = {
|
||||
{
|
||||
sourceItem = 'tuna',
|
||||
yield = {
|
||||
{ item = 'fish_fillet', amount = {3, 5} },
|
||||
{ item = 'caviar', chance = 5 } -- 5% chance
|
||||
}
|
||||
},
|
||||
{
|
||||
sourceItem = 'salmon',
|
||||
yield = {
|
||||
{ item = 'fish_fillet', amount = {2, 4} },
|
||||
{ item = 'caviar', chance = 15 } -- 15% chance
|
||||
}
|
||||
},
|
||||
{
|
||||
sourceItem = 'trout',
|
||||
yield = {
|
||||
{ item = 'fish_fillet', amount = {1, 3} },
|
||||
{ item = 'caviar', chance = 3 } -- 3% chance
|
||||
}
|
||||
},
|
||||
{
|
||||
sourceItem = 'anchovy',
|
||||
yield = {
|
||||
{ item = 'fish_fillet', amount = {1, 2} }
|
||||
-- No caviar from anchovy
|
||||
}
|
||||
},
|
||||
{
|
||||
sourceItem = 'young_salmon',
|
||||
yield = {
|
||||
{ item = 'fish_fillet', amount = {1, 1} }
|
||||
-- No caviar from young salmon
|
||||
}
|
||||
},
|
||||
{
|
||||
sourceItem = 'pufferfish',
|
||||
yield = {
|
||||
{ item = 'fish_fillet', amount = {1, 3} },
|
||||
{ item = 'caviar', chance = 25 } -- 25% chance
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Config.fish = {
|
||||
{ item = 'tuna', label = 'Tuna', price = {300, 550}, difficulty = {'medium', 'easy', 'easy'} },
|
||||
{ item = 'salmon', label = 'Salmon', price = {235, 300}, difficulty = {'medium', 'easy'} },
|
||||
{ item = 'trout', label = 'Trout', price = {190, 235}, difficulty = {'easy', 'easy'} },
|
||||
{ item = 'anchovy', label = 'Anchovy', price = {100, 190}, difficulty = {'easy'} },
|
||||
{ item = 'young_salmon', label = 'Young Salmon', price = {50, 100}, difficulty = {'easy'} },
|
||||
{ item = 'pufferfish', label = 'Pufferfish', price = {500, 800}, difficulty = {'hard', 'hard', 'medium'} },
|
||||
}
|
||||
|
||||
-- Add prices for processed items
|
||||
Config.processedItems = {
|
||||
{ item = 'fish_fillet', label = 'Fish Fillet', price = {50, 100} },
|
||||
{ item = 'caviar', label = 'Caviar', price = {300, 500} },
|
||||
}
|
||||
|
||||
|
||||
Config.fishingRod = {
|
||||
itemName = 'fishingrod', -- Item name of fishing rod
|
||||
breakChance = 25 --Chance of breaking pole when failing skillbar (Setting to 0 means never break)
|
||||
}
|
||||
|
||||
Config.timeForBite = { -- Set min and max random range of time it takes for fish to be on the line.
|
||||
min = 2 * seconds,
|
||||
max = 20 * seconds
|
||||
}
|
||||
|
||||
|
||||
RegisterNetEvent('wasabi_fishing:notify')
|
||||
AddEventHandler('wasabi_fishing:notify', function(title, message, msgType)
|
||||
-- Place notification system info here, ex: exports['mythic_notify']:SendAlert('inform', message)
|
||||
if not msgType then
|
||||
lib.notify({
|
||||
title = title,
|
||||
description = message,
|
||||
type = 'inform'
|
||||
})
|
||||
else
|
||||
lib.notify({
|
||||
title = title,
|
||||
description = message,
|
||||
type = msgType
|
||||
})
|
||||
end
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue