From fff2c5bb42a1592f6c3a669e6784f7dbb1a5d519 Mon Sep 17 00:00:00 2001 From: tanthius Date: Thu, 12 Feb 2026 04:20:12 +0000 Subject: [PATCH] Upload files to "shared/config" --- shared/config/shop_points.lua | 22 +++ shared/config/shops.lua | 130 ++++++++++++++++++ shared/config/turfs.lua | 251 ++++++++++++++++++++++++++++++++++ shared/config/uniforms.lua | 176 ++++++++++++++++++++++++ 4 files changed, 579 insertions(+) create mode 100644 shared/config/shop_points.lua create mode 100644 shared/config/shops.lua create mode 100644 shared/config/turfs.lua create mode 100644 shared/config/uniforms.lua diff --git a/shared/config/shop_points.lua b/shared/config/shop_points.lua new file mode 100644 index 0000000..9d1077f --- /dev/null +++ b/shared/config/shop_points.lua @@ -0,0 +1,22 @@ +-- shared/config/shop_points.lua +Config = Config or {} +Config.ShopPoints = Config.ShopPoints or {} + +-- One “purchase point” per gang (for now) +-- Later we can change each entry to a list to support 5 points per shop type. +Config.ShopPoints.ByGang = { + [1] = vector3(2458.198, 4975.994, 47.0), + [2] = vector3(152.162, -3189.079, 5.87), + [3] = vector3(451.216, -980.050, 30.69), -- police (reserved for later) + [4] = vector3(68.050, 3658.427, 38.720), + [5] = vector3(97.580, -1292.838, 29.27), +} + +-- Optional labels (purely cosmetic) +Config.ShopPoints.LabelByGang = { + [1] = "O'Neil Shop", + [2] = "Malita Shop", + [3] = "Police Shop (Later)", + [4] = "Lost Shop", + [5] = "Gang 5 Shop", +} diff --git a/shared/config/shops.lua b/shared/config/shops.lua new file mode 100644 index 0000000..5c27400 --- /dev/null +++ b/shared/config/shops.lua @@ -0,0 +1,130 @@ +-- shared/config/shops.lua +Config = Config or {} +Config.Shops = Config.Shops or {} +Config.Shops.Debug = false + +-- ========================= +-- SETTINGS +-- ========================= +Config.Shops.InteractKey = 38 -- E +Config.Shops.InteractDist = 2.0 +Config.Shops.MarkerDist = 25.0 + +Config.Shops.Marker = { + type = 1, + scale = vector3(1.2, 1.2, 0.9), + rgba = { 80, 160, 255, 140 }, +} + +-- ========================= +-- LOCATIONS BY GANG +-- ========================= +Config.Shops.LocationsByGang = Config.Shops.LocationsByGang or {} + +-- Gang 1 +Config.Shops.LocationsByGang[1] = { + shop = { + vector4(2453.142, 4960.223, 44.358, 128.4), + }, + vehicles = { + vector4(2460.264, 4957.766, 44.138, 124.0), + } +} + +-- Gang 2 +Config.Shops.LocationsByGang[2] = { + shop = { + vector4(158.863, -3200.052, 5.016, 91.6), + }, + vehicles = { + vector4(163.179, -3203.986, 4.938, 266.2), + } +} + +-- Police (Gang 3) +Config.Shops.LocationsByGang[3] = { + shop = { + vector4(451.712, -980.137, 30.69, 258.8), + }, + vehicles = { + vector4(454.499, -1013.841, 27.450, 176.9), + } +} + +-- Gang 4 +Config.Shops.LocationsByGang[4] = { + shop = { + vector4(-576.811, 5339.311, 69.218, 76.8), + }, + vehicles = { + vector4(-581.293, 5320.616, 69.214, 152.0), + } +} + +-- Gang 5 +Config.Shops.LocationsByGang[5] = { + shop = { + vector4(97.161, -1293.022, 29.27, 304.5), + }, + vehicles = { + vector4(85.853, -1283.986, 28.266, 118.4), + } +} + +-- ========================= +-- GANG ITEMS +-- ========================= +Config.Shops.Weapons = { + pistol = { label = "Pistol", price = 500, weapon = "WEAPON_PISTOL", ammo = 48 }, + combatpistol = { label = "Combat Pistol", price = 1200, weapon = "WEAPON_COMBATPISTOL", ammo = 60 }, + smg = { label = "SMG", price = 2500, weapon = "WEAPON_SMG", ammo = 90 }, +} + +Config.Shops.Ammo = { + pistol_ammo = { label = "Pistol Ammo x60", price = 100, forWeapon = "WEAPON_PISTOL", amount = 60 }, + smg_ammo = { label = "SMG Ammo x90", price = 250, forWeapon = "WEAPON_SMG", amount = 90 }, +} + +Config.Shops.Vehicles = { + gangveh = { label = "Gang Vehicle", price = 0, model = "" }, + impaler5 = { label = "Impaler SZ", price = 8000, model = "impaler5" }, + granger = { label = "Granger", price = 18000, model = "granger" }, +} + +-- Optional per-gang override for the free "gangveh" model +Config.Shops.GangVehicleModels = Config.Shops.GangVehicleModels or {} +-- Example: +-- Config.Shops.GangVehicleModels[3] = "police" + +-- ========================= +-- POLICE ITEMS +-- ========================= +Config.Shops.PoliceWeapons = { + service_pistol = { label = "Service Pistol", price = 0, weapon = "WEAPON_PISTOL", ammo = 72 }, + carbine = { label = "Carbine Rifle", price = 0, weapon = "WEAPON_CARBINERIFLE", ammo = 120 }, +} + +Config.Shops.PoliceAmmo = { + pistol_ammo = { label = "Pistol Ammo x72", price = 0, forWeapon = "WEAPON_PISTOL", amount = 72 }, + rifle_ammo = { label = "Rifle Ammo x120", price = 0, forWeapon = "WEAPON_CARBINERIFLE", amount = 120 }, +} + +Config.Shops.PoliceVehicles = { + police = { label = "Police Cruiser", price = 0, model = "police" }, + police2 = { label = "Sheriff Crusier", price = 0, model = "sheriff" }, +} + +-- ========================= +-- POLICE VEHICLE DEFAULT LOOK +-- ========================= +-- Police vehicles keep Rockstar's DEFAULT paint +Config.Shops.PoliceVehicleAppearance = { + primary = nil, -- do NOT override + secondary = nil, -- do NOT override + + pearlescent = nil, + wheel = nil, + livery = nil, + + clean = true, -- optional: just removes dirt +} diff --git a/shared/config/turfs.lua b/shared/config/turfs.lua new file mode 100644 index 0000000..e3108d5 --- /dev/null +++ b/shared/config/turfs.lua @@ -0,0 +1,251 @@ +-- shared/config/turfs.lua +-- Turf definitions (geometry + defaults) + +Config = Config or {} + +Config.TURFS = { + + -- ========================= + -- LOS SANTOS (CITY) + -- ========================= + + ["turf_davis"] = { + name = "Davis", + center = vector3(90.0, -1950.0, 20.0), + radius = 30.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_strawberry"] = { + name = "Strawberry", + center = vector3(238.656, -1381.969, 32.742), + radius = 35.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_downtown_ls"] = { + name = "Downtown LS", + center = vector3(195.678, -930.214, 29.692), + radius = 80.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + ["turf_del_perro"] = { + name = "Del Perro", + center = vector3(-1326.227, -1053.905, 11.472), + radius =45.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_observatory"] = { + name = "Observatory", + center = vector3(-434.235, 1091.491, 331.539), + radius = 60.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_vinewood_sign"] = { + name = "Vinewood Sign", + center = vector3(749.106, 1279.258, 359.297), + radius = 40.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_range"] = { + name = "Range", + center = vector3(1423.031, 1117.922, 113.581), + radius = 75.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + -- ========================= + -- INDUSTRIAL / PORT + -- ========================= + + ["turf_lapuerta_heli"] = { + name = "La Puerta Heliport", + center = vector3(-729.475, -1453.843, 4.001), + radius = 40.0, + owner = 0, + guardCount = 5, + payout = 25, + }, + + ["turf_port_ls"] = { + name = "Port of Los Santos", + center = vector3(1223.536, -3218.100, 4.800), + radius = 80.0, + owner = 0, + guardCount = 5, + payout = 25, + }, + + ["turf_cypress_flats"] = { + name = "Cypress Flats", + center = vector3(850.0, -2150.0, 30.0), + radius = 40.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + -- ========================= + -- SOUTH / AIRPORT + -- ========================= + + ["turf_lsia"] = { + name = "LSIA", + center = vector3(-1037.724, -2737.546, 20.0), + radius = 25.0, + owner = 0, + guardCount = 5, + payout = 25, + }, + + -- ========================= + -- DESERT / SANDY SHORES + -- ========================= + + ["turf_sandy_shores"] = { + name = "Sandy Shores", + center = vector3(1875.198, 3717.139, 32.156), + radius = 20.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + ["turf_sandy_airfield"] = { + name = "Sandy Shores Airfield", + center = vector3(1708.083, 3286.718, 40.149), + radius = 50.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + -- ========================= + -- NORTH / RURAL + -- ========================= + + ["turf_compound"] = { + name = "Compound", + center = vector3(-1128.278, 4923.538, 218.327), + radius = 60.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + ["turf_oceanview"] = { + name = "Oceanview Home", + center = vector3(-2592.960, 1905.691, 170.576), + radius = 45.0, + owner = 0, + guardCount = 2, + payout = 20, + }, + + ["turf_vineyard"] = { + name = "Vineyard", + center = vector3(-1892.726, 2039.064, 139.873), + radius = 245.0, + owner = 0, + guardCount = 2, + payout = 20, + }, + + + -- ========================= + -- NORTH / RURAL (EXPANDED) + -- ========================= + + ["turf_reds_supplies"] = { + name = "Red's Machines Supply", + center = vector3(-185.840, 6275.436, 30.489), + radius = 30.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + ["turf_bayview_lodge"] = { + name = "Bayview Lodge", + center = vector3(-689.156, 5799.062, 21.411), + radius = 35.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_chiliad_base"] = { + name = "Mount Chiliad Base", + center = vector3(510.0, 5600.0, 780.0), + radius = 260.0, + owner = 0, + guardCount = 2, + payout = 15, + }, + + ["turf_mckenzie_airfield"] = { + name = "McKenzie Airfield", + center = vector3(2120.0, 4790.0, 41.0), + radius = 30.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + + ["turf_farmstead"] = { + name = "Farmstead", + center = vector3(2204.973, 5589.217, 52.729), + radius = 40.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_procopio_beach"] = { + name = "Procopio Beach", + center = vector3(-275.080, 6634.451, 6.410), + radius = 15.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_chumash_pier"] = { + name = "Chumash Pier", + center = vector3(-3408.926, 967.576, 7.352), + radius = 25.0, + owner = 0, + guardCount = 3, + payout = 15, + }, + + ["turf_humane_labs"] = { + name = "Humane Labs", + center = vector3(3555.050, 3722.727, 36.353), + radius = 85.0, + owner = 0, + guardCount = 4, + payout = 20, + }, + + +} diff --git a/shared/config/uniforms.lua b/shared/config/uniforms.lua new file mode 100644 index 0000000..6cc33dd --- /dev/null +++ b/shared/config/uniforms.lua @@ -0,0 +1,176 @@ +-- shared/config/uniforms.lua +-- Uniforms configuration for turfwar (Male/Female from /tw_dumpfit) + +Config = Config or {} +Config.UNIFORMS = Config.UNIFORMS or {} + +-- We are now using player-selected freemode male/female. +-- Leave these as-is; the appearance system sets the model. +Config.FORCE_FREEMODE_MODEL = (Config.FORCE_FREEMODE_MODEL ~= false) +Config.FREEMODE_MODEL = Config.FREEMODE_MODEL or "mp_m_freemode_01" + +-- Component IDs: +-- 0 Face, 1 Mask, 2 Hair, 3 Torso/Arms, 4 Pants, 5 Bags/Parachute +-- 6 Shoes, 7 Accessories, 8 Undershirt, 9 Body Armor, 10 Decals, 11 Top +-- +-- Prop IDs: +-- 0 Hat, 1 Glasses, 2 Ear, 6 Watch, 7 Bracelet + +-- ========================================================= +-- NOTE: +-- Hair is player-controlled via appearance DB. +-- Uniforms MUST NOT set component 2 (hair) nor hairColor. +-- ========================================================= + +-- ========================= +-- Gang 1 +-- ========================= +Config.UNIFORMS[1] = { + label = "Gang 1 Outfit", + clearProps = true, + + components_m = { + { id = 3, drawable = 0, texture = 0 }, + { id = 4, drawable = 90, texture = 0 }, + { id = 6, drawable = 25, texture = 0 }, + { id = 8, drawable = 1, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 1, texture = 3 }, + }, + props_m = {}, + + components_f = { + -- (dump had hair 2=9 but we intentionally do NOT set component 2) + { id = 3, drawable = 15, texture = 0 }, + { id = 4, drawable = 107, texture = 0 }, + { id = 5, drawable = 88, texture = 0 }, -- bag/parachute + { id = 6, drawable = 38, texture = 2 }, + { id = 8, drawable = 2, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 171, texture = 5 }, + }, + props_f = {} +} + +-- ========================= +-- Gang 2 +-- ========================= +Config.UNIFORMS[2] = { + label = "Gang 2 Outfit", + clearProps = true, + + components_m = { + { id = 3, drawable = 19, texture = 0 }, + { id = 4, drawable = 87, texture = 2 }, + { id = 6, drawable = 24, texture = 0 }, + { id = 8, drawable = 175, texture = 0 }, + { id = 9, drawable = 17, texture = 0 }, -- armour present + { id = 11, drawable = 208, texture = 2 }, + }, + props_m = {}, + + components_f = { + -- (dump had hair 2=9 but we intentionally do NOT set component 2) + { id = 3, drawable = 24, texture = 0 }, + { id = 4, drawable = 90, texture = 2 }, + { id = 6, drawable = 24, texture = 0 }, + { id = 7, drawable = 111, texture = 0 }, -- accessories + { id = 8, drawable = 3, texture = 0 }, + { id = 9, drawable = 24, texture = 0 }, -- armour present + { id = 10, drawable = 74, texture = 0 }, -- decals + { id = 11, drawable = 226, texture = 15 }, + }, + props_f = {} +} + +-- ========================= +-- Gang 3 (Police) +-- ========================= +Config.UNIFORMS[3] = { + label = "Police Uniform", + clearProps = true, + + components_m = { + { id = 3, drawable = 0, texture = 0 }, + { id = 4, drawable = 35, texture = 0 }, + { id = 6, drawable = 25, texture = 0 }, + { id = 8, drawable = 58, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 55, texture = 0 }, + }, + props_m = { + { id = 0, drawable = 46, texture = 0 }, -- hat + { id = 1, drawable = 0, texture = 0 }, -- glasses + }, + + components_f = { + { id = 3, drawable = 0, texture = 0 }, + { id = 4, drawable = 6, texture = 0 }, + { id = 6, drawable = 25, texture = 0 }, + { id = 8, drawable = 35, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 48, texture = 0 }, + }, + props_f = { + { id = 0, drawable = 45, texture = 0 }, -- hat + { id = 1, drawable = 0, texture = 0 }, -- glasses + } +} + +-- ========================= +-- Gang 4 +-- ========================= +Config.UNIFORMS[4] = { + label = "Gang 4 Outfit", + clearProps = true, + + components_m = { + { id = 3, drawable = 2, texture = 0 }, + { id = 4, drawable = 0, texture = 0 }, + { id = 6, drawable = 25, texture = 0 }, + { id = 8, drawable = 16, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 179, texture = 0 }, + }, + props_m = {}, + + components_f = { + { id = 3, drawable = 4, texture = 0 }, + { id = 4, drawable = 0, texture = 0 }, + { id = 6, drawable = 24, texture = 0 }, + { id = 8, drawable = 0, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 181, texture = 0 }, + }, + props_f = {} +} + +-- ========================= +-- Gang 5 +-- ========================= +Config.UNIFORMS[5] = { + label = "Gang 5 Outfit", + clearProps = true, + + components_m = { + { id = 3, drawable = 1, texture = 0 }, + { id = 4, drawable = 13, texture = 2 }, + { id = 6, drawable = 15, texture = 0 }, + { id = 8, drawable = 25, texture = 0 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 24, texture = 2 }, + }, + props_m = {}, + + components_f = { + { id = 3, drawable = 6, texture = 0 }, + { id = 4, drawable = 23, texture = 2 }, + { id = 6, drawable = 22, texture = 12 }, + { id = 8, drawable = 13, texture = 7 }, + { id = 9, drawable = 0, texture = 0 }, -- explicit: remove armour + { id = 11, drawable = 25, texture = 5 }, + }, + props_f = { + { id = 6, drawable = 14, texture = 0 }, -- watch from dump + } +}