1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[civ]/nordi_magentfishing/configuration/config.lua
2025-07-11 19:52:23 +02:00

86 lines
3.1 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 buyer will spawn
heading = 225.9852, -- Heading of buyer ped
ped = 'cs_old_man2' -- Ped name here
}
Config.magnets = {
types = {
{
itemName = 'basic_magnet',
label = 'Basic Magnet',
loseChance = 25,
catchBonus = 0 -- base chance
},
{
itemName = 'strong_magnet',
label = 'Strong Magnet',
loseChance = 15,
catchBonus = 15 -- 15% better catch chance
},
{
itemName = 'neodymium_magnet',
label = 'Neodymium Magnet',
loseChance = 10,
catchBonus = 25 -- 25% better catch chance
},
{
itemName = 'rare_earth_magnet',
label = 'Rare Earth Magnet',
loseChance = 5, -- very hard to lose
catchBonus = 35, -- 35% better catch chance
exclusive = {'treasure'} -- can only catch treasure with this
}
},
defaultMagnet = 'basic_magnet'
}
Config.magnetRope = {
itemName = 'magnet_rope', -- Item name of magnet rope
breakChance = 5 --Chance of breaking rope when failing skillbar (Setting to 0 means never break)
}
Config.timeForFind = { -- Set min and max random range of time it takes for something to be on the magnet.
min = 2 * seconds,
max = 20 * seconds
}
Config.finds = {
{ item = 'scrap_metal', label = 'Scrap Metal', price = {50, 100}, difficulty = {'easy'} },
{ item = 'old_coin', label = 'Old Coin', price = {100, 200}, difficulty = {'easy', 'easy'} },
{ item = 'rusty_knife', label = 'Rusty Knife', price = {150, 250}, difficulty = {'medium', 'easy'} },
{ item = 'bicycle_parts', label = 'Bicycle Parts', price = {200, 300}, difficulty = {'medium'} },
{ item = 'metal_debris', label = 'Metal Debris', price = {75, 150}, difficulty = {'easy'} },
{ item = 'antique_item', label = 'Antique Item', price = {300, 600}, difficulty = {'medium', 'hard'} },
{ item = 'safe', label = 'Safe', price = {500, 1000}, difficulty = {'hard', 'hard', 'medium'} },
}
RegisterNetEvent('wasabi_magnet:notify')
AddEventHandler('wasabi_magnet: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)