forked from Simnation/Main
ed
This commit is contained in:
parent
7b079c6109
commit
33075c6a84
2 changed files with 477 additions and 523 deletions
|
@ -2,18 +2,200 @@ 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
|
||||
Config.DefaultCurrency = 'cash'
|
||||
Config.InteractionDistance = 5.0
|
||||
Config.StationInteractionDistance = 3.0
|
||||
|
||||
-- Zug Ankunft Einstellungen
|
||||
Config.TrainArrival = {
|
||||
enabled = true,
|
||||
spawnDistance = 500.0, -- Entfernung von wo der Zug spawnt
|
||||
approachSpeed = 15.0, -- Geschwindigkeit beim Heranfahren
|
||||
arrivalSpeed = 5.0, -- Geschwindigkeit bei Ankunft
|
||||
waitTime = 30000, -- Wartezeit am Bahnhof (30 Sekunden)
|
||||
despawnAfterWait = true -- Zug nach Wartezeit löschen wenn niemand einsteigt
|
||||
}
|
||||
|
||||
-- Cinema Kamera Einstellungen
|
||||
-- Bahnhof Konfiguration
|
||||
Config.TrainStations = {
|
||||
{
|
||||
id = "sandy_depot",
|
||||
coords = vector4(2533.0, 2833.0, 38.0, 0.0),
|
||||
name = "Sandy Shores Depot",
|
||||
description = "Hauptdepot in Sandy Shores",
|
||||
|
||||
-- Spawn-Punkt für ankommende Züge (weiter entfernt)
|
||||
trainSpawnPoint = vector4(2033.0, 2833.0, 38.0, 0.0),
|
||||
|
||||
-- Interaktionspunkt für Spieler
|
||||
interactionPoint = vector3(2535.0, 2835.0, 38.0),
|
||||
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 2,
|
||||
scale = 0.8
|
||||
},
|
||||
|
||||
-- Verfügbare Ziele von diesem Bahnhof
|
||||
destinations = {
|
||||
"sandy_north", "ls_depot", "elysian", "terminal", "downtown", "paleto"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = "sandy_north",
|
||||
coords = vector4(2606.0, 2927.0, 40.0, 90.0),
|
||||
name = "Sandy Shores Nord",
|
||||
description = "Nördlicher Bahnhof von Sandy Shores",
|
||||
trainSpawnPoint = vector4(2106.0, 2927.0, 40.0, 90.0),
|
||||
interactionPoint = vector3(2608.0, 2929.0, 40.0),
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 3,
|
||||
scale = 0.7
|
||||
},
|
||||
destinations = {
|
||||
"sandy_depot", "ls_depot", "elysian", "terminal", "downtown", "paleto"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = "ls_depot",
|
||||
coords = vector4(1164.0, -3250.0, 7.0, 180.0),
|
||||
name = "Los Santos Hauptbahnhof",
|
||||
description = "Zentraler Bahnhof in Los Santos",
|
||||
trainSpawnPoint = vector4(1164.0, -2750.0, 7.0, 180.0),
|
||||
interactionPoint = vector3(1166.0, -3252.0, 7.0),
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 1,
|
||||
scale = 0.9
|
||||
},
|
||||
destinations = {
|
||||
"sandy_depot", "sandy_north", "elysian", "terminal", "downtown", "paleto"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = "elysian",
|
||||
coords = vector4(219.0, -2487.0, 6.0, 270.0),
|
||||
name = "Elysian Island",
|
||||
description = "Industriegebiet am Hafen",
|
||||
trainSpawnPoint = vector4(719.0, -2487.0, 6.0, 270.0),
|
||||
interactionPoint = vector3(217.0, -2489.0, 6.0),
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 4,
|
||||
scale = 0.7
|
||||
},
|
||||
destinations = {
|
||||
"sandy_depot", "sandy_north", "ls_depot", "terminal", "downtown", "paleto"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = "terminal",
|
||||
coords = vector4(-1100.0, -2724.0, 13.0, 0.0),
|
||||
name = "Fracht Terminal",
|
||||
description = "Großes Frachtterminal",
|
||||
trainSpawnPoint = vector4(-1600.0, -2724.0, 13.0, 0.0),
|
||||
interactionPoint = vector3(-1098.0, -2726.0, 13.0),
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 5,
|
||||
scale = 0.8
|
||||
},
|
||||
destinations = {
|
||||
"sandy_depot", "sandy_north", "ls_depot", "elysian", "downtown", "paleto"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = "downtown",
|
||||
coords = vector4(-500.0, -1500.0, 10.0, 45.0),
|
||||
name = "Downtown Station",
|
||||
description = "Bahnhof in der Innenstadt",
|
||||
trainSpawnPoint = vector4(-1000.0, -1500.0, 10.0, 45.0),
|
||||
interactionPoint = vector3(-498.0, -1502.0, 10.0),
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 6,
|
||||
scale = 0.7
|
||||
},
|
||||
destinations = {
|
||||
"sandy_depot", "sandy_north", "ls_depot", "elysian", "terminal", "paleto"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = "paleto",
|
||||
coords = vector4(100.0, 6500.0, 32.0, 180.0),
|
||||
name = "Paleto Bay",
|
||||
description = "Kleiner Bahnhof in Paleto Bay",
|
||||
trainSpawnPoint = vector4(100.0, 6000.0, 32.0, 180.0),
|
||||
interactionPoint = vector3(102.0, 6502.0, 32.0),
|
||||
blip = {
|
||||
sprite = 795,
|
||||
color = 7,
|
||||
scale = 0.7
|
||||
},
|
||||
destinations = {
|
||||
"sandy_depot", "sandy_north", "ls_depot", "elysian", "terminal", "downtown"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- Preise basierend auf Entfernung
|
||||
Config.PriceCalculation = {
|
||||
basePrice = 25,
|
||||
pricePerKm = 0.5,
|
||||
maxPrice = 300,
|
||||
freeStations = {"sandy_depot"} -- Kostenlose Startbahnhöfe
|
||||
}
|
||||
|
||||
-- Zug Konfiguration
|
||||
Config.TrainCars = {
|
||||
main = "freight",
|
||||
cars = {"freightcar", "freightcont1", "freightgrain"}
|
||||
}
|
||||
|
||||
-- Menü Einstellungen
|
||||
Config.Menu = {
|
||||
title = "🚂 Zugfahrkarten",
|
||||
subtitle = "Wählen Sie Ihr Reiseziel",
|
||||
position = "top-right",
|
||||
|
||||
texts = {
|
||||
callTrain = "Zug rufen",
|
||||
selectDestination = "Ziel auswählen",
|
||||
trainComing = "Zug wird gerufen...",
|
||||
trainArriving = "Zug fährt ein",
|
||||
trainWaiting = "Zug wartet am Bahnhof",
|
||||
boardTrain = "Zug besteigen",
|
||||
trainLeaving = "Zug fährt ab",
|
||||
noDestinations = "Keine Ziele verfügbar",
|
||||
cancel = "Abbrechen"
|
||||
},
|
||||
|
||||
stationIcons = {
|
||||
depot = "🏭",
|
||||
city = "🏢",
|
||||
industrial = "🏗️",
|
||||
port = "⚓",
|
||||
rural = "🌾",
|
||||
main = "🚉"
|
||||
}
|
||||
}
|
||||
|
||||
-- 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},
|
||||
stationText = "[E] Zug rufen",
|
||||
boardText = "[E] Einsteigen",
|
||||
emergencyText = "[F] Notfall-Ausstieg"
|
||||
}
|
||||
|
||||
-- Kamera Einstellungen
|
||||
Config.CinemaCamera = {
|
||||
enabled = true,
|
||||
switchInterval = {min = 8000, max = 12000}, -- Zeit zwischen Kamerawechseln
|
||||
switchInterval = {min = 8000, max = 12000},
|
||||
positions = {
|
||||
{
|
||||
offset = vector3(15.0, 5.0, 5.0),
|
||||
|
@ -26,176 +208,15 @@ Config.CinemaCamera = {
|
|||
{
|
||||
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
|
||||
-- Benachrichtigungen
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue