⚙️ Konfiguration
Überprüfe bitte die Standardkonfiguration!
DP = {}
Config = {}
DP.Fishingtime = 5 -- Angelgeschwindigkeit in Sekunden
DP.FishingChance = 80 -- Angelfang Wahrscheinlichkeit in %
DP.RodItem = "fishingrod" -- Angel item
DP.FischzoneBlip = {
{
name = "Angel Spot",
coords = vector3(-829.2008, -1361.8921, 5.0005),
blip = {enabled = true, sprite = 762, color = 2, scale = 0.6}
}
}
DP.FishingSpots = {
vector4(-849.2282, -1367.9532, 1.6052, 100.2948), -- Angel Spots
-- vector4(-850.3635, -1377.6250, 1.6052, 112.6068), -- Man kann mehr hinzufügen
vector4(-845.3635, -1377.6250, 1.6052, 112.6068),
vector4(-839.3234, -1394.8306, 1.6054, 109.9826),
}
DP.FishingMarker = {
type = 1,
size = {x = 1.0, y = 1.0, z = 0.5},
color = {r = 0, g = 255, b = 0, a = 144},
rotate = false
}
DP.FishingItems = {
{
["item"] = "fish", -- Item Namen
["type"] = "item", -- "item" oder "weapon"
["amount"] = 1,
["chance"] = 50,
},
-- Weitere Hinzufügbar
-- {
-- ["item"] = "rare_fish",
-- ["type"] = "item",
-- ["amount"] = 1,
-- ["chance"] = 20,
-- },
{
["item"] = "rare_fish",
["type"] = "item",
["amount"] = 1,
["chance"] = 20,
}
}
---Fisch Verkäufer---
Config.Locale = 'de'
Config.MoneyType = "cash" -- "cash", "bank" oder "black_money"
Config.Shops = {
{
name = "Fischhändler",
coords = vector3(-643.1623, -1227.8311, 11.5476),
npc = {model = "s_m_m_fiboffice_02", heading = 296.8441},
blip = {enabled = true, sprite = 431, color = 2},
marker = {enabled = true, type = 1, color = {r = 0, g = 255, b = 0}},
items = {
["fish"] = {min = 1, max = 5}, -- Min. & Max. Preis beim Verkaufen
-- Weitere Hinzufügbar
-- ["shark"] = {min = 15, max = 20},
["rare_fish"] = {min = 10, max = 20}
}
}
}
Locales = {}
Locales['de'] = {
['sell_success'] = 'Du hast $%s verdient!',
['no_items'] = 'Du hast keine Items zu verkaufen!',
['press_to_sell'] = 'Drücke ~INPUT_CONTEXT~, um deine Items zu verkaufen!',
['fishing_caught'] = 'Du hast %sx %s gefangen',
['fishing_no_space'] = 'Du hast keinen Platz mehr in deinem Inventar!',
['fishing_no_items'] = 'Du hast nichts geangelt',
['fishing_no_weapon'] = 'Du hast nichts geangelt',
['fishing_no_rod'] = 'Du hast keine Angel dabei',
['fishing_left_spot'] = 'Du hast den Angelspot verlassen während du geangelt hast, daher ist das Angeln abgebrochen',
['fishing_help_fishing'] = 'Drücke ~INPUT_VEH_HORN~ um zu Angeln',
['fishing_help_cancel'] = 'Drücke ~INPUT_VEH_DUCK~ um das Angeln abzubrechen'
}
Config.NotifySystem = "esx_notify" -- Optionen: "default", "esx_notify", "myNotify"
function HelpNotify(msg)
SetTextComponentFormat("STRING")
AddTextComponentString(msg)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
function Notify(msg)
-- Hier kannst du den benutzerdefinierten Notify-Aufruf für "myNotify" einfügen, falls nötig
end
if Config.NotifySystem == "default" then
Config.Notify = function(msg)
SetNotificationTextEntry("STRING")
AddTextComponentString(msg)
DrawNotification(false, true)
end
elseif Config.NotifySystem == "esx_notify" then
Config.Notify = function(msg)
if type(msg) == "string" then
TriggerEvent("esx:showNotification", msg)
else
print("Fehler: msg ist kein String")
end
end
elseif Config.NotifySystem == "myNotify" then
Config.Notify = function(msg)
TriggerEvent("myNotify:send", msg)
end
end
Zuletzt aktualisiert

