From 4a912dcf8382b86a7285bc3cf4c22d606e20b72e Mon Sep 17 00:00:00 2001 From: tanthius Date: Thu, 12 Feb 2026 04:20:03 +0000 Subject: [PATCH] Upload files to "shared/config" --- shared/config/core.lua | 19 +++++++++++ shared/config/finance.lua | 60 +++++++++++++++++++++++++++++++++++ shared/config/gangs.lua | 23 ++++++++++++++ shared/config/join_points.lua | 12 +++++++ shared/config/police.lua | 25 +++++++++++++++ 5 files changed, 139 insertions(+) create mode 100644 shared/config/core.lua create mode 100644 shared/config/finance.lua create mode 100644 shared/config/gangs.lua create mode 100644 shared/config/join_points.lua create mode 100644 shared/config/police.lua diff --git a/shared/config/core.lua b/shared/config/core.lua new file mode 100644 index 0000000..b27304c --- /dev/null +++ b/shared/config/core.lua @@ -0,0 +1,19 @@ +-- shared/config/core.lua +-- Core/global tuning values + +Config = Config or {} + +Config.SECONDS_TO_CAPTURE = 60 +Config.UNIFORM_APPLY_DELAY = 700 + +Config.FORCE_FREEMODE_MODEL = false +Config.FREEMODE_MODEL = "mp_m_freemode_01" + +-- HQ join points (these create your HQ blips + E join markers) +Config.JOIN_RADIUS = 2.0 + +-- Police Config +Config.PlayerPolice = Config.PlayerPolice or {} +Config.PlayerPolice.POLICE_GANG_ID = 3 +Config.PlayerPolice.RESTORE_SECONDS = 30 + diff --git a/shared/config/finance.lua b/shared/config/finance.lua new file mode 100644 index 0000000..181c0e9 --- /dev/null +++ b/shared/config/finance.lua @@ -0,0 +1,60 @@ +-- shared/config/finance.lua +-- Finance / Money System configuration + +Config = Config or {} +Config.Finance = Config.Finance or {} + +-- ATM object models (used for proximity checks / streamed detection) +Config.Finance.ATM_MODELS = Config.Finance.ATM_MODELS or { + `prop_atm_01`, + `prop_atm_02`, + `prop_atm_03`, + `prop_fleeca_atm` +} + +-- OPTIONAL: Full-map ATM blips (Mode A) +-- Put vector3 coords here to have ALL ATM blips appear immediately. +-- If left empty, you can still do streamed-detection blips. +Config.Finance.ATMS = { + -- Static ATM list (Mode B) + vector3(150.266, -1040.203, 29.374), + vector3(-1212.980, -330.841, 37.787), + vector3(-2962.582, 482.627, 15.703), + vector3(-112.202, 6469.295, 31.626), + vector3(314.187, -278.621, 54.170), + vector3(-351.534, -49.529, 49.042), + vector3(241.727, 220.706, 106.286), + vector3(1171.523, 2702.448, 38.175), + vector3(-1091.887, 2708.560, 18.955), + vector3(2683.011, 3286.536, 55.241), + vector3(-386.733, 6045.953, 31.501), + vector3(1703.138, 4933.593, 42.051), + vector3(540.042, 2671.007, 42.177), + vector3(2564.399, 2585.100, 38.016), + vector3(1822.639, 3683.095, 34.276), +} + +-- Server-side ATM access control +Config.Finance.ATM_USE_RADIUS = Config.Finance.ATM_USE_RADIUS or 1.8 +Config.Finance.ATM_SESSION_TTL_MS = Config.Finance.ATM_SESSION_TTL_MS or 15000 + +-- Bank locations +Config.Finance.BANKS = Config.Finance.BANKS or { + { name = "Fleeca Bank", coords = vector3(150.266, -1040.203, 29.374) }, + { name = "Pacific Standard", coords = vector3(235.046, 216.434, 106.287) } +} + +-- Interaction settings +Config.Finance.INTERACT_KEY = Config.Finance.INTERACT_KEY or 38 -- E +Config.Finance.INTERACT_DIST = Config.Finance.INTERACT_DIST or 1.5 + +-- Blip settings (used when drawing ATM blips) +Config.Finance.ATM_BLIPS_ENABLED = (Config.Finance.ATM_BLIPS_ENABLED ~= false) +Config.Finance.ATM_BLIP_SPRITE = Config.Finance.ATM_BLIP_SPRITE or 277 +Config.Finance.ATM_BLIP_SCALE = Config.Finance.ATM_BLIP_SCALE or 0.55 +Config.Finance.ATM_BLIP_COLOR = Config.Finance.ATM_BLIP_COLOR or 2 + +-- Scanner toggles (not used in Mode B static list) +Config.Finance.AUTO_SCAN_ATMS = false +Config.Finance.ATM_SCAN_EXPORT_TO_CONSOLE = false +Config.Finance.ATM_STREAMED_BLIPS = false diff --git a/shared/config/gangs.lua b/shared/config/gangs.lua new file mode 100644 index 0000000..6847633 --- /dev/null +++ b/shared/config/gangs.lua @@ -0,0 +1,23 @@ +-- shared/config/gangs.lua +-- Gang / faction definitions and income config + +Config = Config or {} + +Config.GANGS = { + [0] = { name = "Neutral", blipColor = 0, chatColor = "~s~", rgb = {255,255,255} }, + [1] = { name = "O'Neil Gang", blipColor = 5, chatColor = "~y~", rgb = {255,210,60} }, + [2] = { name = "The Malita", blipColor = 2, chatColor = "~g~", rgb = {0,200,70} }, + [3] = { name = "Police", blipColor = 3, chatColor = "~b~", rgb = {60,120,255} }, + [4] = { name = "The Lost Gang", blipColor = 40, chatColor = "~c~", rgb = {60,60,60} }, + [5] = { name = "Viper Gang", blipColor = 7, chatColor = "~p~", rgb = {170,80,255} }, +} + +Config.INCOME = { + intervalMinutes = 1, -- ✅ single source of truth + defaultTurfPayout = 10, + + excludedGangs = { + [0] = true, -- Neutral + [3] = true, -- Police + } +} diff --git a/shared/config/join_points.lua b/shared/config/join_points.lua new file mode 100644 index 0000000..0367424 --- /dev/null +++ b/shared/config/join_points.lua @@ -0,0 +1,12 @@ +-- shared/config/join_points.lua +-- HQ join markers / join points + +Config = Config or {} + +Config.JOIN_POINTS = { + { gangId = 1, label = "O'Neil Gang HQ", pos = vector3(2455.882, 4979.527, 47.0), }, + { gangId = 2, label = "The Malita HQ", pos = vector3(152.00, -3200.32, 5.87) }, -- NOTE: -32000 would be out of map + { gangId = 3, label = "The Police", pos = vector3(441.20, -981.90, 30.69) }, -- Police + { gangId = 4, label = "The Lost HQ", pos = vector3(-606.347, 5296.409, 70.5) }, + { gangId = 5, label = "Viper Gang HQ", pos = vector3(93.614, -1291.920, 29.27) }, +} diff --git a/shared/config/police.lua b/shared/config/police.lua new file mode 100644 index 0000000..037704c --- /dev/null +++ b/shared/config/police.lua @@ -0,0 +1,25 @@ +-- shared/config/police.lua +-- Player Police Tracking (separate from escalation) + +Config = Config or {} +Config.PlayerPolice = Config.PlayerPolice or {} + +Config.PlayerPolice.POLICE_GANG_ID = 3 + +Config.PlayerPolice.CIRCLE_RADIUS_1STAR = 220.0 +Config.PlayerPolice.CIRCLE_RADIUS_2STAR = 160.0 + +Config.PlayerPolice.UPDATE_MS_1STAR = 5000 +Config.PlayerPolice.UPDATE_MS_2STAR = 2000 +Config.PlayerPolice.UPDATE_MS_3STAR = 2000 +Config.PlayerPolice.UPDATE_MS_45STAR_REALTIME = 500 + +Config.PlayerPolice.PING_BLIP_SPRITE = 161 +Config.PlayerPolice.PING_BLIP_SCALE = 1.0 +Config.PlayerPolice.PING_BLIP_LIFETIME_MS = 1500 + +Config.PlayerPolice.REALTIME_BLIP_SPRITE = 1 +Config.PlayerPolice.REALTIME_BLIP_SCALE = 0.9 + +Config.PlayerPolice.CHAT_PREFIX = "^4[POLICE]^7 " +Config.PlayerPolice.ONLY_ANNOUNCE_ON_STAR_INCREASE = true