⚙️ Konfiguration
Überprüfe bitte die Standardkonfiguration!
Config = {}
Config.Locale = 'de'
-- Geld-Einstellungen (cash = Bargeld, bank = Bankkonto)
Config.MoneyType = "cash"
-- Verkaufbare Items pro Shop mit Min/Max Preisen
Config.Shops = {
{
name = "Fleisch Händler",
coords = vector3(-1178.1650, -891.6011, 13.7598),
npc = {model = "s_m_m_fiboffice_02", heading = 306.7182},
blip = {enabled = true, sprite = 605, color, scale = 0.6},
marker = {enabled = true, type = 1, color = {r = 0, g = 255, b = 0}},
items = {
["schweinefleisch"] = {min = 1, max = 2},
-- ["rindfleisch"] = {min = 1, max = 5},
["geflügelfleisch"] = {min = 5, max = 10}
}
},
-- {
-- name = "Metall Händler",
-- coords = vector3(-428.8141, -1728.2189, 19.7839),
-- npc = {model = "s_m_m_fiboffice_02", heading = 76.3488},
-- blip = {enabled = true, sprite = 605, color, scale = 0.6},
-- marker = {enabled = true, type = 1, color = {r = 0, g = 255, b = 0}},
-- items = {
-- ["metall"] = {min = 1, max = 2},
-- -- ["eisen"] = {min = 1, max = 5},
-- ["kupfer"] = {min = 5 max = 10}
-- }
-- },
{
name = "Obst Händler",
coords = vector3(148.4050, 1668.7740, 228.7367),
npc = {model = "a_m_m_business_01", heading = 167.4376},
blip = {enabled = true, sprite = 605, color, scale = 0.6},
marker = {enabled = true, type = 1, color = {r = 255, g = 255, b = 0}},
items = {
["apfel"] = {min = 1, max = 2},
-- ["orange"] = {min = 1, max = 5},
["birne"] = {min = 5, max = 10}
}
}
}
Locales = {}
Locales['de'] = {
['sell_success'] = 'Du hast $%s verdient!',
['no_items'] = 'Du hast keine Items zum verkaufen!',
['press_to_sell'] = 'Drücke ~INPUT_CONTEXT~, um deine Items zu verkaufen!'
}
-- Verschiedene Notifikationssysteme
Config.NotifySystem = "esx_notify" -- Optionen: "default", "esx_notify", "myNotify"
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)
TriggerEvent("esx:showNotification", msg)
end
elseif Config.NotifySystem == "myNotify" then
Config.Notify = function(msg)
TriggerEvent("myNotify:send", msg)
end
endZuletzt aktualisiert

