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

SettingDefaultWhat 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

SettingDefaultWhat it does
jobs{ 'police' }Job names (any grade), { police = 2 } for a lowest grade, or false for anyone who has the item
onDutyfalseOnly while on duty, on frameworks that have duty
consenttrueThe player is asked first and may refuse. false: the officer just starts the test
consentSeconds20How long they have to answer

The reading

SettingDefaultWhat 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

SettingDefaultWhat it does
distance2.0Metres the officer may be from the player to start a test
tries3Breaths too short before the device says TEST FAILED
blowSeconds4.0How long a full breath is (holding the blow key)
analyzeSeconds2.5How long it analyzes before the reading
volume0.3How 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

SettingDefaultWhat it does
perDrink0.02% BAC one standard drink adds
absorbMinutes20How long a drink takes to be taken up
burnPerHour0.015% BAC the body clears in a real hour
deviceError0.003How far a reading can be off
drinksbeer, wine, whiskey, vodka...Your server's drink items, in standard drinks per use
esxDrunkPerDrink250000ESX's drunk status points that make one standard drink
esxMostPerUse2.0The 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