Police BreathalyzerConfiguration
Configuration
Every setting in Police Breathalyzer, in shared/config.lua.
On this page
All the settings are in shared/config.lua. The text players see is in locales/ (English and Swedish); the language is set in tr_core's configuration.
Items
| Setting | Default | What it does |
|---|---|---|
item | 'breathalyzer' | The device's item |
mouthpiece | 'breathalyzer_mouthpiece' | One is used up by each test. false: tests need none |
slip | 'breathalyzer_slip' | The printed record of a test; its values are kept in the item's metadata |
Who may use it
| Setting | Default | What it does |
|---|---|---|
jobs | { 'police' } | Job names (any grade), { police = 2 } for a lowest grade, or false for anyone who has the item |
onDuty | false | Only while on duty, on frameworks that have duty |
consent | true | The player is asked first and may refuse. false: the officer just starts the test |
consentSeconds | 20 | How long they have to answer |
The reading
| Setting | Default | What it does |
|---|---|---|
unit | 'percent' | What the screen shows: 'percent' (0.084 % BAC, as US devices), 'permille' (0.84 ‰) or 'mgl' (0.42 mg/L of breath, as EU devices) |
limits | { percent = 0.08, permille = 0.5, mgl = 0.25 } | The legal limit in each unit: at or over it the screen shows OVER LIMIT |
The test
| Setting | Default | What it does |
|---|---|---|
distance | 2.0 | Metres the officer may be from the player to start a test |
tries | 3 | Breaths too short before the device says TEST FAILED |
blowSeconds | 4.0 | How long a full breath is (holding the blow key) |
analyzeSeconds | 2.5 | How long it analyzes before the reading |
volume | 0.3 | How loud the device and the slip are, 0 to 1 |
keys | { blow = 'E', cancel = 'X', accept = 'Y', refuse = 'N' } | The default keys. Players change theirs in Settings > Key Bindings > FiveM |
Blood alcohol
| Setting | Default | What it does |
|---|---|---|
perDrink | 0.02 | % BAC one standard drink adds |
absorbMinutes | 20 | How long a drink takes to be taken up |
burnPerHour | 0.015 | % BAC the body clears in a real hour |
deviceError | 0.003 | How far a reading can be off |
drinks | beer, wine, whiskey, vodka... | Your server's drink items, in standard drinks per use |
esxDrunkPerDrink | 250000 | ESX's drunk status points that make one standard drink |
esxMostPerUse | 2.0 | The most one use can count as, in standard drinks |
See Blood alcohol for how these work together.
Was this page helpful?
Still stuck? Open a ticket on Discord.Privacy