1
0
Fork 0
forked from Simnation/Main
Main/resources/[freizeit]/nordi_ai_train/config.lua

202 lines
4.9 KiB
Lua
Raw Normal View History

2025-08-11 18:33:49 +02:00
Config = {}
-- Allgemeine Einstellungen
Config.Debug = false
Config.DefaultCurrency = 'cash' -- 'cash' oder 'bank'
Config.InteractionDistance = 8.0
Config.TrainSpeed = {
min = 5.0,
max = 25.0,
acceleration = 2.0
}
-- Cinema Kamera Einstellungen
Config.CinemaCamera = {
enabled = true,
switchInterval = {min = 8000, max = 12000}, -- Zeit zwischen Kamerawechseln
positions = {
{
offset = vector3(15.0, 5.0, 5.0),
rotation = vector3(-10.0, 0.0, 90.0)
},
{
offset = vector3(10.0, 15.0, 8.0),
rotation = vector3(-15.0, 0.0, 45.0)
},
{
offset = vector3(-10.0, -15.0, 6.0),
rotation = vector3(-5.0, 0.0, -135.0)
},
{
offset = vector3(0.0, -20.0, 15.0),
rotation = vector3(-20.0, 0.0, 0.0)
}
}
}
-- Zug Waggon Konfiguration
Config.TrainCars = {
main = "freight", -- Hauptlok
cars = {"freightcar", "freightcont1", "freightgrain", "tankercar"}
}
-- Bahnhöfe / Ziele
Config.TrainStations = {
{
id = "sandy_depot",
coords = vector4(2533.0, 2833.0, 38.0, 0.0),
name = "Sandy Shores Depot",
description = "Hauptdepot in Sandy Shores",
price = 0, -- Startbahnhof kostenlos
blip = {
sprite = 795,
color = 2,
scale = 0.7
}
},
{
id = "sandy_north",
coords = vector4(2606.0, 2927.0, 40.0, 90.0),
name = "Sandy Shores Nord",
description = "Nördlicher Bahnhof von Sandy Shores",
price = 50,
blip = {
sprite = 795,
color = 3,
scale = 0.7
}
},
{
id = "ls_depot",
coords = vector4(1164.0, -3250.0, 7.0, 180.0),
name = "Los Santos Hauptbahnhof",
description = "Zentraler Bahnhof in Los Santos",
price = 150,
blip = {
sprite = 795,
color = 1,
scale = 0.8
}
},
{
id = "elysian",
coords = vector4(219.0, -2487.0, 6.0, 270.0),
name = "Elysian Island",
description = "Industriegebiet am Hafen",
price = 100,
blip = {
sprite = 795,
color = 4,
scale = 0.7
}
},
{
id = "terminal",
coords = vector4(-1100.0, -2724.0, 13.0, 0.0),
name = "Fracht Terminal",
description = "Großes Frachtterminal",
price = 200,
blip = {
sprite = 795,
color = 5,
scale = 0.7
}
},
{
id = "downtown",
coords = vector4(-500.0, -1500.0, 10.0, 45.0),
name = "Downtown Station",
description = "Bahnhof in der Innenstadt",
price = 75,
blip = {
sprite = 795,
color = 6,
scale = 0.7
}
},
{
id = "paleto",
coords = vector4(100.0, 6500.0, 32.0, 180.0),
name = "Paleto Bay",
description = "Kleiner Bahnhof in Paleto Bay",
price = 250,
blip = {
sprite = 795,
color = 7,
scale = 0.7
}
}
}
-- Menü Texte und Einstellungen
Config.Menu = {
title = "🚂 Zugfahrkarten",
subtitle = "Wählen Sie Ihr Reiseziel",
position = "top-right", -- ox_lib menu position
-- Texte
texts = {
selectDestination = "Ziel auswählen",
price = "Preis",
description = "Beschreibung",
cancel = "Abbrechen",
notEnoughMoney = "Nicht genug Geld",
trainNotAvailable = "Zug nicht verfügbar",
journeyStarted = "Zugfahrt gestartet",
trainDeparting = "Der Zug fährt ab",
arrived = "Ankunft",
thankYou = "Vielen Dank für die Fahrt",
emergencyExit = "Notfall-Ausstieg",
canExit = "Sie können jetzt aussteigen"
},
-- Icons für verschiedene Stationstypen
stationIcons = {
depot = "🏭",
city = "🏢",
industrial = "🏗️",
port = "",
rural = "🌾"
}
}
-- Nachrichten Einstellungen
Config.Notifications = {
duration = {
short = 3000,
medium = 5000,
long = 8000
},
types = {
success = "success",
error = "error",
info = "info",
warning = "warning"
}
}
-- Automatisches Spawnen
Config.AutoSpawn = {
enabled = true,
delay = 10000, -- Wartezeit nach Server-Start
maxTrains = 4, -- Maximale Anzahl gespawnter Züge
spawnInterval = 3000 -- Zeit zwischen Spawns
}
-- DrawText Einstellungen
Config.DrawText = {
font = 4,
scale = 0.35,
color = {r = 255, g = 255, b = 255, a = 215},
backgroundColor = {r = 41, g = 128, b = 185, a = 100},
interactText = "[E] Zug besteigen",
emergencyText = "[F] Notfall-Ausstieg"
}
-- Debug Einstellungen
Config.DebugOptions = {
showCoords = false,
showDistance = false,
logJourneys = true
}