Skip to main content
Located in shared/config/transmission.lua, this dictates the passive spreading mechanics for infectious diseases.

Properties

  • enabled: Toggles the disease spreading system globally.
  • checkRate: The frequency (in seconds) the script checks the radius around an infected player.
    • Higher value = less frequent checks = potentially harder to get sick.
    • Lower value = more frequent checks = potentially easier to get sick.
  • checkRadius: Range (in meters) the disease can naturally ‘jump’ from an infected carrier to a healthy player.
  • clothesProtection: A table identifying wearable hashes (like Bandanas, Neckwear, and Masks) that offer a safety multiplier against infections.

Example Configuration

Config.diseasesTransmission = {
    enabled = true,
    
    -- Radius of the check
    checkRadius = 3.0,
    checkRate = 1,

    -- Clothes protection levels (0.0 to 1.0)
    clothesProtection = {
        -- Gloves
        [0xEABE0032] = { protection = 0.2 },  -- 20% protection boost

        -- Masks
        [0x7505EF42] = { protection = 0.8 },  -- 80% protection boost

        -- Neckwear
        [0x5FC29285] = { protection = 0.8 },  -- 80% protection boost

        -- Bandana (Checks whether pulled up/down dynamically)
        ['bandana'] = { protection = 1.0 }    -- 100% protection boost
    }
}