☰ Alle Anleitungen
ESX

6-fishing

Angeln mit AFK-Modus und manuellem Minispiel, Bootsverleih mit Anker, Fischhändler und Discord-Logs.

Resource-Ordner

six_fishing

01Voraussetzungen

  • ESX (1.1, 1.2 oder Legacy). QB-Core wird nicht unterstützt.
  • Die Gewinn-Items in deinem Inventar (standardmäßig fish, dolphin, shark).

02Installation

  1. 01Melde dich im Cfx-Portal mit dem Account an, mit dem du gekauft hast, und lade das Script unter Granted Assets herunter.
  2. 02Entpacke den Download und schiebe den Ordner six_fishing in den resources-Ordner deines Servers. Lass den Ordnernamen unverändert und lade alle Dateien hoch, auch die versteckte .fxap.
  3. 03Lege die Items aus Config.Fishing.Rewards an. Mit der Standard-Config ist das die Anweisung unten.
  4. 04Öffne die config_server.lua und trage deinen Discord-Webhook für Verkäufe ein, oder setze enable = false.
  5. 05Trage ensure six_fishing in deine server.cfg ein, unterhalb von es_extended.
  6. 06Starte den Server neu (oder gib in der Server-Konsole refresh und danach ensure mit dem Ordnernamen ein).
sql
INSERT INTO items (name, label) VALUES
  ('fish', 'Fish'),
  ('dolphin', 'Dolphin'),
  ('shark', 'Shark'),
  ('fishingrod', 'Fishing rod');

Gut zu wissen

Die Angel brauchst du nur, wenn du FishingItem = true setzt. Ihr Item-Name muss zu itemRod passen (Standard fishingrod). Ältere Downloads enthalten eine Datei gps.sql, die stattdessen ein Item namens rod anlegt: Nimm die Anweisung oben.

Gut zu wissen

ox_inventory: Items werden nicht aus der Datenbank gelesen. Trage das Item stattdessen in ox_inventory/data/items.lua ein: ['fish'] = { label = 'Fish', weight = 100 },

03So nutzen es Spieler

  1. 01Miete am Bootsverleih (Blip auf der Karte) ein Boot für RentPrice.
  2. 02Fahre zu einem Angelspot und wirf den Anker.
  3. 03Starte das Angeln: Der AFK-Modus fängt von allein, der manuelle Modus ist schneller, verlangt aber bei jedem Biss eine Zifferntaste.
  4. 04Verkaufe den Fang beim Fischhändler.

Taste

E
Boot mieten, Anker werfen und einholen, AFK-Angeln starten, Fisch verkaufen.
Q
Manuelles Angeln starten.
1 – 9
Einholen, wenn ein Fisch beißt (manueller Modus). Die Taste wird angezeigt und muss innerhalb von keyTime gedrückt werden.
X
Angeln abbrechen.

04Konfiguration

Option

Config.newESX
true für ESX Legacy (1.2 und neuer), false für altes ESX 1.1.
Config.Language
"en" oder "de".
Config.weight
true, wenn dein Inventar mit Gewicht arbeitet. Das Script prüft dann, ob der Fang noch passt.
Fishing.FishingItem / itemRod
true: Zum Angeln wird das Angel-Item aus itemRod gebraucht.
Fishing.AFK / afkTime
Erlaubt AFK-Angeln und legt die Zeit pro Fang in Millisekunden fest.
Fishing.manual / manualTime / keyTime
Erlaubt manuelles Angeln, Zeit bis zum Biss und Zeit für den Tastendruck.
Fishing.BootSpawn / RentPrice
Spawnname des Mietboots und sein Preis.
Fishing.Rewards
Was gefangen werden kann. Pro Eintrag: item, type (item oder weapon), chance und money (Verkaufspreis pro Stück, nil = nicht verkaufbar).
Config.FishingSpots
Angelgebiete mit Mittelpunkt und radius.
Config.BootNPC
Bootsverleihe: NPC-Position, Spawnpunkt des Boots und NPC-Modell.
Config.FishingBlips
Name, Symbol, Größe und Farbe der drei Blip-Arten.

Gut zu wissen

chance ist ein Gewicht, kein fester Prozentwert: Das Script addiert alle Werte und zieht aus der Summe. Mit der Standardliste (80, 15, 5, 5 = 105) kommt ein Fisch bei 80 von 105 Fängen.

›config.luaKomplette Datei · 193 Zeilen
config.lua
Config = {}

Config.newESX = true -- If ESX Legacy true

Config.Language = "en"

Config.weight = true -- Weight System? Do you use an Inventory with a Weight System then true

Config.Fishing = {
    -- Fishing Rod
    FishingItem = false, -- Fishing with Item?
    itemRod = "fishingrod", -- Item Name Fishingrod

    -- Fishing Time and Mode
    AFK = true, -- Allow AFK Fishing?
    afkTime = math.random(20000, 25000), -- Time in ms for new Catch (AFK)

    manual = true, -- Allow Manuel Minigame Fishing
    manualTime = math.random(8000, 12000), -- Time in ms for new Catch (Manual)
    keyTime = 3500, -- Time to press the right key on your keyboard

    -- Boot Rent
    BootSpawn = "dinghy2", -- Spawnname of a boat
    RentPrice = 100, -- Boat Rent Price

    -- Fishing Rewards (Chance always = 100%) - (Types: item, weapon)
    Rewards = {
        {item = "fish", type = "item", chance = 80, money = 200},
        {item = "dolphin", type = "item", chance = 15,    money = 2000},
        {item = "shark", type = "item", chance = 5, money = 2950},
        {item = "WEAPON_SNSPISTOL", type = "weapon", chance = 5, money = nil},
    }
}

Config.FishingBlips = {
    FishingSpots = {
        name = "Angelspot",
        sprite = 780,
        scale = 0.9,
        color = 3,
    },
    BootNPC = {
        name = "Bootsverleih",
        sprite = 356,
        scale = 0.7,
        color = 0,
    },
    SellNPC = {
        name = "Fisch Verkauf",
        sprite = 207,
        scale = 0.7,
        color = 42,
    },
}

Config.FishingSpots = {
    -- Pier
    {x = -1520.39, y = -1762.72, z = 0.43, radius = 50.0},
    {x = -1509.70, y = -1928.15, z = 0.02, radius = 50.0},
    {x = -1731.52, y = -1865.11, z = 0.12, radius = 50.0},

    -- Sandy
    {x = 1255.79, y = 3893.81, z = 30.16, radius = 50.0},
    {x = 1097.31, y = 3857.29, z = 30.13, radius = 50.0},
    {x = 1147.61, y = 4011.04, z = 30.13, radius = 50.0},

    -- Plateo
    {x = -664.73, y = 6507.14, z = 1.53, radius = 50.0},
    {x = -486.45, y = 6603.37, z = 0.22, radius = 50.0},
    {x = -660.64, y = 6711.26, z = 0.06, radius = 50.0},
}

Config.BootNPC = {
    -- Pier
    {
        coords = vector4(-1379.0150, -1629.7825, 2.0363, 110.5688),
        boatSpawn = vector4(-1466.8554, -1536.6015, -0.3355, 124.5171),
        model = "a_m_y_beach_01"
    },
    -- Sandy
    {
        coords = vector4(1309.2602, 3686.6982, 32.2747, 38.5688),
        boatSpawn = vector4(1285.8696, 3728.2768, 30.2994, 4.9023),
        model = "a_m_y_beach_01"
    },
    -- Plateo
    {
        coords = vector4(-493.1999, 6432.7993, 2.5793, 51.7328),
        boatSpawn = vector4(-531.3797, 6476.8095, -0.4536, 44.4118),
        model = "a_m_y_beach_01"
    }
}

Config.SellNPC = {
    {
        coords = vector4(-1855.2198, -1195.3572, 13.0171, 55.5765),
        model = "s_m_m_ammucountry"
    }
}

function notify(title, message, type)
    -- Custom Notify example: TriggerEvent("six_notify", title, message, type, 5000)

    -- Basic ESX Notification:
    ESX.ShowNotification(message)
end

function server_notify(source, title, message, type)
    -- Custom Server Notify example: TriggerClientEvent("six_notify:server", source, title, message, type, 5000)

    -- Basic ESX Notification:
    TriggerClientEvent("esx:showNotification", source, message)
end

function ShowHelpNotification(msg)
    ESX.ShowHelpNotification(msg)
end

Config.Locales = {
    ['de'] = {
        ['notify_title'] = 'Angeln',

        ["rod_throw"] = "Du hast die Angel rausgeworfen",
        ["rod_missing"] = "Du besitzt keine Angel!",

        ["catch_notify"] = "Du hast folgendes gefangen: %s",

        ['inventory_full'] = "Dein Inventar ist voll!",

        ["boat_buy_title"] = "Boot erworben",
        ["boat_rent"] = "Drücke ~INPUT_PICKUP~ um ein Boot für %s$ zu kaufen",
        ["boat_buy"] = "Du hast für den Verkauf von Fischen %s$ erhalten",
        ["boat_notify"] = "Du hast ein Boot gekauft. Viel Spaß!",

        ["anchor_title"] = "Anker",
        ["anchor_drop"] = "Drücke ~INPUT_PICKUP~ um ein Anker zu werfen",
        ["anchor_pull"] = "Drücke ~INPUT_PICKUP~ um den Anker raus zu holen",
        ["anchor_notify_drop"] = "Anker wurde ausgeworfen",
        ["anchor_notify_pull"] = "Anker wurde eingezogen",

        ["afk_fishing"] = "Drücke ~INPUT_PICKUP~ um ~r~AFK~w~ zu Angeln",
        ["manuel_fishing"] = "Drücke ~INPUT_COVER~ um ~b~Manual~w~ zu Angeln",
        ["fishing_cancel"] = "~INPUT_VEH_DUCK~ : ~r~Abbrechen",

        ["minigame_fish_bites"] = "Etwas hat angebissen, drücke die Taste: %s um die Angel rauszuziehen",
        ["minigame_false_key"] = "Das war wohl die falsche Taste :(",

        ["sell_title"] = "Verkauf",
        ["sell_fish"] = "Drücke ~INPUT_PICKUP~ um deine Fische zu verkaufen",
        ["not_enough_money"] = "Du hast nicht genug Geld bei dir",

        -- Discord Logs
        ["discord_title"] = "Fisch Verkauf Log",
        ["discord_sellmessage"] = "Der Spieler %s für **%s**$ Fische verkauft!",
    },

    ['en'] = {
        ['notify_title'] = 'Fishing',

        ["rod_throw"] = "You have thrown the fishing rod",
        ["rod_missing"] = "You don't own a fishing rod!",

        ["catch_notify"] = "You caught: %s",

        ['inventory_full'] = "Your inventory is full!",

        ["boat_buy_title"] = "Boat Purchased",
        ["boat_rent"] = "Press ~INPUT_PICKUP~ to buy a boat for %s$",
        ["boat_buy"] = "You received %s$ for selling fish",
        ["boat_notify"] = "You have purchased a boat. Enjoy!",

        ["anchor_title"] = "Anchor",
        ["anchor_drop"] = "Press ~INPUT_PICKUP~ to drop the anchor",
        ["anchor_pull"] = "Press ~INPUT_PICKUP~ to pull up the anchor",
        ["anchor_notify_drop"] = "Anchor has been dropped",
        ["anchor_notify_pull"] = "Anchor has been pulled up",

        ["afk_fishing"] = "Press ~INPUT_PICKUP~ to go ~r~AFK~w~ fishing",
        ["manuel_fishing"] = "Press ~INPUT_COVER~ for ~b~Manual~w~ fishing",
        ["fishing_cancel"] = "~INPUT_VEH_DUCK~: ~r~Cancel",

        ["minigame_fish_bites"] = "Something's biting! Press the key: %s to reel in the fishing rod",
        ["minigame_false_key"] = "That was the wrong key :(",

        ["sell_title"] = "Sale",
        ["sell_fish"] = "Press ~INPUT_PICKUP~ to sell your fish",
        ["not_enough_money"] = "You don't have enough money on you",

        -- Discord Logs
        ["discord_title"] = "Fish Sale Log",
        ["discord_sellmessage"] = "Player %s sold fish for **%s**$!",
    },
}
›config_server.luaKomplette Datei · 16 Zeilen
config_server.lua
Server_Config = {}

Server_Config.WebhookSettings = {
    color = 159900,
    name = "SIX-FISHING",
    icon_url = "https://i.imgur.com/JFU0rBJ.png",
    author_url = "https://i.imgur.com/JFU0rBJ.png",
    server_name = "6-services"
}

Server_Config.Webhooks = {
    ['sellfish'] = {
        link = "https://discord.com/api/webhooks/...",
        enable = true
    },
}

05Fehlerbehebung

„Du besitzt keine Angel!“

FishingItem steht auf true und der Spieler hat kein Item, das wie itemRod heißt.

Es landet nichts im Inventar.

Die Gewinn-Items existieren nicht, oder das Inventar ist voll, während Config.weight auf true steht.

06Kommst du nicht weiter?

Öffne ein Ticket auf unserem Discord. Schick den Script-Namen, dein Framework samt Version und die komplette Fehlermeldung aus der Server-Konsole (F8 für Client-Fehler) mit. Das spart eine Runde Rückfragen.