square-rightConfig

Command-based tint checks with /tintmeter

// Config

Config = {}

-- Command players use to check tint
Config.CommandName = 'tintmeter'     -- /tintmeter

-- How far around the ped will look for a vehicle (in meters)
Config.CheckDistance = 4.0

-- Map GTA tint index -> name + (example) visible light transmission
-- Indices come from SET_VEHICLE_WINDOW_TINT docs (0โ€“6).
Config.TintData = {
    [0] = { label = "No Tint",          vlt = 100 }, -- 100% visible light
    [1] = { label = "Pure Black",       vlt = 5   },
    [2] = { label = "Dark Smoke",       vlt = 20  },
    [3] = { label = "Light Smoke",      vlt = 35  },
    [4] = { label = "Stock",            vlt = 70  },
    [5] = { label = "Limo",             vlt = 5   },
    [6] = { label = "Green",            vlt = 80  },
}

-- Simple animation settings for the officer while using the meter
Config.Animation = {
    enabled = true,
    type = "scenario",                 -- "scenario" or "none"
    scenario = "WORLD_HUMAN_CLIPBOARD" -- officer holds clipboard / looks at window
}

Last updated