117 lines
5.8 KiB
Lua
117 lines
5.8 KiB
Lua
|
|
---@class Config
|
|||
|
|
Config = {}
|
|||
|
|
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- Framework: "qbcore" | "esx" | "standalone"
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
Config.Framework = "esx"
|
|||
|
|
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- Firmen-ID -> ESX-Job
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- Das Ursprungssystem kannte numerische Firmen-IDs aus einer eigenen Tabelle.
|
|||
|
|
-- ESX kennt so etwas nicht – dort ist die Zugehoerigkeit der Job. Ohne Eintrag
|
|||
|
|
-- hier gilt niemand als Firmenangehoeriger; erfundene Zuordnungen waeren
|
|||
|
|
-- schlimmer als gar keine.
|
|||
|
|
--
|
|||
|
|
-- Config.CompanyJobs = { [1] = 'police', [2] = 'ambulance' }
|
|||
|
|
Config.CompanyJobs = {}
|
|||
|
|
|
|||
|
|
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- UI
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
Config.AccentColor = "#00aaff"
|
|||
|
|
Config.BootDuration = 2500 -- ms
|
|||
|
|
Config.FreezeOnOpen = true
|
|||
|
|
Config.CameraOnOpen = true
|
|||
|
|
Config.InteractKey = 38 -- E
|
|||
|
|
Config.InteractRange = 1.8 -- metres
|
|||
|
|
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- Security
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
Config.MailRateLimit = 5 -- mails per minute per player
|
|||
|
|
Config.MailMaxSubject = 80
|
|||
|
|
Config.MailMaxBody = 2000
|
|||
|
|
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- PC Locations
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
Config.PCs = {
|
|||
|
|
-- Mobiler Streifenwagen-Terminal (kein fester Standort). Wird über das M-Menü
|
|||
|
|
-- geöffnet, wenn man in einem Einsatzfahrzeug sitzt. mobile = true -> kein
|
|||
|
|
-- Distanz-/Kamera-Check; auto_open -> App wird direkt geöffnet.
|
|||
|
|
-- Kein Job-Lock hier: Der Zugang wird über das M-Menü geregelt (nur sichtbar,
|
|||
|
|
-- wenn man als PD in einem Einsatzfahrzeug (Fahrzeugklasse 18) sitzt). Die
|
|||
|
|
-- eigentlichen Daten schützt die IC-Verwaltung serverseitig selbst.
|
|||
|
|
{
|
|||
|
|
id = "police_mobile",
|
|||
|
|
label = "Streifenwagen-Terminal",
|
|||
|
|
type = "public",
|
|||
|
|
mobile = true,
|
|||
|
|
auto_open = "pc.ic_verwaltung",
|
|||
|
|
-- Nur diese Apps sind auf dem Streifenwagen-Terminal verfügbar.
|
|||
|
|
apps = { "pc.ic_verwaltung", "pc.mail", "pc.browser" },
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id = "legion_public_1",
|
|||
|
|
label = "Public Terminal",
|
|||
|
|
coords = vector3(217.69, -937.54, 30.69),
|
|||
|
|
heading = 180.0,
|
|||
|
|
type = "public",
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id = "legion_public_2",
|
|||
|
|
label = "Public Terminal 2",
|
|||
|
|
coords = vector3(213.69, -937.54, 30.69),
|
|||
|
|
heading = 180.0,
|
|||
|
|
type = "public",
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id = "pillbox_hospital_1",
|
|||
|
|
label = "Hospital Terminal",
|
|||
|
|
coords = vector3(301.21, -594.04, 43.28),
|
|||
|
|
heading = 90.0,
|
|||
|
|
type = "job",
|
|||
|
|
-- War 'doctor' – diesen Job gibt es in ESX nicht. Der Sanitaeterjob
|
|||
|
|
-- heisst hier 'ambulance' (Label: EMS). Mit 'doctor' waere das
|
|||
|
|
-- Terminal fuer niemanden nutzbar gewesen.
|
|||
|
|
job = "ambulance",
|
|||
|
|
},
|
|||
|
|
-- Monitor im Mission Row PD (prop_monitor_01a, Interior 137473).
|
|||
|
|
--
|
|||
|
|
-- coords ist die Position des Props selbst. heading meint hier nicht die
|
|||
|
|
-- Ausrichtung des Props (170°), sondern die Seite, von der aus man auf den
|
|||
|
|
-- Bildschirm schaut – daraus rechnet Camera.FocusPC die Kameraposition.
|
|||
|
|
-- 195° entspricht der Stelle, an der man beim Aufmessen davor stand.
|
|||
|
|
{
|
|||
|
|
id = "mission_row_1",
|
|||
|
|
label = "LSPD Terminal",
|
|||
|
|
coords = vector3(441.615, -979.645, 30.425),
|
|||
|
|
heading = 195.0,
|
|||
|
|
type = "public",
|
|||
|
|
-- Nur fuer die Polizei? Dann stattdessen:
|
|||
|
|
-- type = "job", job = "police",
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
-- Built-in IC Pages (browser ic:// schema)
|
|||
|
|
-- ─────────────────────────────────────────────
|
|||
|
|
Config.ICPages = {
|
|||
|
|
["home"] = { title = "New Tab", content = "home" },
|
|||
|
|
["dpa"] = { title = "DPA News", content = "dpa" },
|
|||
|
|
["psb"] = { title = "Police Service Board", content = "psb" },
|
|||
|
|
["weazel"] = { title = "Weazel News", content = "weazel" },
|
|||
|
|
["classifieds"] = { title = "LS Classifieds",content = "classifieds" },
|
|||
|
|
|
|||
|
|
-- Org-Seiten (Slug = org.name)
|
|||
|
|
["police"] = { title = "LSPD – Los Santos Police Department", content = "org_police" },
|
|||
|
|
["ambulance"] = { title = "LSMD – Los Santos Medical Department", content = "org_ambulance" },
|
|||
|
|
["fire"] = { title = "LSFD – Los Santos Fire Department", content = "org_fire" },
|
|||
|
|
["doj"] = { title = "DOJ – Department of Justice", content = "org_doj" },
|
|||
|
|
["dpa"] = { title = "DPA – Department of Public Administration", content = "org_dpa" },
|
|||
|
|
["parking"] = { title = "Parking @ Los Santos", content = "org_parking" },
|
|||
|
|
}
|