RISK SCRIPTS
TEBEXDISCORD
  • Welcome to RISK DOCUMENTAION
  • Discord Integration
    • Discord Webhooks
    • Discord Bot Token
  • SCRIPTS
    • 🔔Notify
      • ⚙️Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🚚Cargo Job
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🖼️Loadingscreen
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • Driving-School
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🎣FREE AFK Fishing Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚘Vehicle Shop
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🐝Beekeeping Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🔎Advanced Metal Detector Script
      • 📝Editable
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️24/7 Market
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️Weapon Market
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️Black Market Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚗Simple Garage
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎲4 in Row Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎒Outfit Bag Script
      • 💡Installation
      • ⚙️Configuration
      • ⚙️Usage
      • ❔FAQ / Troubleshooting
    • 🔘Radial Menu
      • 💡Installation
      • ⚙️Commands & Event Triggers
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🗒️TicTacToe / X and O
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🏦Simple Banking System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • ⚙️Advanced Crafting System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚜Farming System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🍕Pizza Delivery Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🍾Spin the Bottle
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎇Firework Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 📦Blindfold
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
Powered by GitBook
On this page
  1. SCRIPTS
  2. FREE AFK Fishing Script

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
    }
}
PreviousInstallationNextUsage

Last updated 2 months ago

🎣
⚙️