API
You can find many data extraction and update methods here to adapt to your other scripts.
Optimization solution for HUD's
You need to add your hud this event handlers
Client-side / Server-side
s4-breathalyser:onUpdateIt will give you two arguments, argument 1 is Alcohol and argument 2 is Narco data.
Example use
```lua
RegisterNetEvent('s4-breathalyser:onUpdate')
AddEventHandler('s4-breathalyser:onUpdate', function(Alcohol, Narco)
```Exports
Whether the menu is open
exports["s4-breathalyser"].IsMenuOpen()Returns the alcohol value in float data
Returns the narco value in float data
Should be used to add alcohol data
Should be used to add narco data
It removes alcohol and narcos from the player.
Returns alcohol data as a percentage
Returns narco data as a percentage
Last updated