Configuration
A detailed look at Config.lua and how to set it up.
Below is a condensed example of Config.lua
, highlighting the main fields you can tweak:
Config = {
Framework = "ESX", -- "auto", "ESX", "QBCore", or "QBOX"
Debug = false, -- Enables debug console prints
PreventHungerThirstLoss = true,
IgnoreInventoryLimit = true,
MaxFishingDistance = 20.0,
FishingTime = 10, -- seconds per catch
NormalRodItem = "fishing_rod",
PremiumRodItem = "premium_fishing_rod",
PremiumLootMultiplier = 1.5,
AnchorItem = "boat_anchor",
RewardType = "item", -- "item" or "money"
MoneyAccount = "cash", -- "cash" or "bank" if RewardType="money"
RewardAmountMin = 50,
RewardAmountMax = 100,
SellItems = {
{ item="fish", label="Fish", price=10 },
{ item="goldfish", label="Goldfish", price=50 },
{ item="shark", label="Shark", price=200 }
},
FishShop = {
coords = vector3(-1649.40, -993.70, 13.01),
radius = 3.0,
name = "Fish Shop",
sprite = 52,
color = 3,
scale = 0.8,
markerId = 29,
markerRGB = { r=0, g=200, b=255 }
},
FishingAnywhere = false, -- if true, ignore zones
DefaultFishLootTable = {
{ item="fish", label="Fish", chance=40 },
{ item="goldfish", label="Goldfish", chance=30 },
{ item="turtle", label="Turtle", chance=20 }
},
FishingZones = {
{
name = "Pier",
coords = vector3(-1859.61, -1242.71, 8.61),
radius = 5.0,
fishLootTable = {
{ item="fish", label="Fish", chance=40 },
{ item="goldfish", label="Goldfish", chance=30 },
{ item="shark", label="Shark", chance=20 }
}
},
-- Additional zones...
},
BlipSprite = 68,
BlipColor = 3,
BlipScale = 0.9,
HelpMessages = {
StartFishingZone = "Press ~INPUT_PICKUP~ to start fishing.",
StopFishingZone = "Press ~INPUT_PICKUP~ to stop fishing.",
OpenShop = "Press ~INPUT_PICKUP~ to open Fish Shop."
},
NotifyMessages = {
NeedRod = "You need a fishing rod.",
AlreadyFishing= "You are already fishing.",
StartFishing = "You started fishing.",
StopFishing = "You stopped fishing.",
SellFish = "You sold your fish for $%s!",
NoFishToSell = "You have no fish to sell.",
CaughtFish = "You caught 1x %s!",
MovedTooFar = "You left the fishing spot.",
WaitToFishAgain="Please wait longer before fishing again."
},
DiscordWebhook = "https://discord.com/api/webhooks/123456/abcdef",
DiscordNotificationInterval = 30, -- minutes
UseCustomNotify = true,
UseCustomHelpNotify = true,
Functions = {
notify = function(ntype, title, text, time)
TriggerEvent("delta_hud:notification", "info", "Fishing", text, 5000)
end,
helpnotify = function(key, text)
TriggerEvent("revolution_helpnotify:showHelpNotify", text, "E")
end
}
}
Last updated