folderconfig.lua

Full View

Config = {}

-- Framework
Config.Framework = "esx" -- either "esx" or "qbcore"

-- Weather thresholds
Config.SnowColdLevel = 0.2      -- From this level, snow is considered cold
Config.RainColdLevel = 0.6      -- During heavy rain, the player starts freezing

-- Cold weather types
-- If the current weather matches one of these, the frost system becomes active
Config.ColdWeatherTypes = {
    XMAS = true,        -- Christmas / snowy weather
    BLIZZARD = true,    -- Snowstorm
    SNOW = true,        -- Snow
    SNOWLIGHT = true,   -- Light snow
    THUNDER = true,     -- Thunderstorm
    RAIN = false        -- Optional (handled by rain level instead)
}

-- HUD mode
Config.DisplayColdMeter = true            -- display the cold meter HUD
Config.DisplayText = "Cold: "            -- display text

-- Check interval (ms)
Config.CheckInterval = 1000              -- how often to update cold logic (1 second)

Config.HUDMode = "internal"
-- "internal" = uses the built-in cold bar rendered by this resource
-- "external" = disables the built-in HUD and exposes exports
--              so other HUD systems can display cold status
--              Example usage in another resource:
--              local cold = exports["azakit_frostbitesystem"]:GetCold()
Config.ColdMeterDirection = "down" -- "up" = bar increases when cold, "down" = bar decreases when cold
-- HUD position (internal)
Config.HUD = {
    x = 0.10,        -- HUD center X (0.0 left → 1.0 right)
    y = 0.93,        -- HUD center Y (0.0 top → 1.0 bottom)

    width = 0.16,    -- Total HUD width
    height = 0.035,  -- HUD height

    textOffsetY = -0.016, -- Text vertical offset (Y axis)
}

Config.EnableFreezeEffect = true -- Enable / disable screen freezing visual effect

-- Hotspots (areas where cold does not decrease)
Config.Hotspots = {
    {coords = vector3(408.6586, -827.2791, 29.3343), radius = 5.0},
    {coords = vector3(379.9286, -850.2501, 29.3416), radius = 5.0},
    {coords = vector3(342.8456, -852.3591, 29.3422), radius = 5.0}
}

-- HeatProps 
Config.HeatProps = {
    "prop_hobo_stove_01",
    "prop_beach_fire"
}

Config.PropHeatRadius = 5.0

-- Allowed top/clothing IDs (11 = upper clothing slot / shirts, jackets)
Config.AllowedMaleTops = {70, 72, 76, 77, 115, 116}      -- male tops suitable for cold
Config.AllowedFemaleTops = {70, 97, 102, 104, 107, 108}  -- female tops suitable for cold

-- Cold meter settings
Config.MaxCold = 100                  -- maximum cold value
Config.ColdDrainPerSecond = 2.0       -- cold decrease per second
Config.HotspotHealPerSecond = 5.0     -- cold recovery per second when inside hotspot
Config.FreezeThreshold = 50           -- cold threshold below which the player starts coughing/freezing

-- Freeze animation settings
Config.FreezeAnimations = true            -- enable freeze animations
Config.FreezeAnimInterval = 6000         -- how often the freeze animation plays (ms) (6 seconds)
Config.FreezeAnimDuration = 1500         -- duration of the freeze animation (ms) (1.5 seconds)

-- Health drain settings (when cold reaches 0)
Config.HealthDrainInterval = 2000        -- interval between health loss (ms) (2 seconds)
Config.HealthDrainAmount = 10            -- amount of health lost per interval

-- Debug
Config.Debug = false                       -- if true, visual hotspot markers are displayed

Last updated