Main/resources/[jobs]/[civ]/wasabi_fishing/configuration/config.lua
2025-07-01 14:06:41 +02:00

146 lines
4.7 KiB
Lua

-----------------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(-1597.5862, 5202.3809, 3.3590), -- X, Y, Z Coords of where fish buyer will spawn
heading = 225.9852, -- 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 = 80, -- easy to lose
catchBonus = 25, -- 25% better catch chance (added comma here)
exclusive = {'pufferfish'} -- can only catch pufferfish with this
}
},
defaultBait = 'fishbait', -- Default bait item name
itemName = 'fishbait', -- For backwards compatibility
loseChance = 65 -- For backwards compatibility
}
Config.fishingRod = {
itemName = 'fishingrod', -- Item name of fishing rod
breakChance = 0 --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
}
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 = 'poison', chance = 15 } -- 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 = {10, 40} },
{ item = 'caviar', label = 'Caviar', price = {60, 100} },
}
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)