[Release] [Paid] Breathalyzer script

Realistic breathalyzer

Bring realism and immersion to your FiveM server with this highly customizable and interactive breathalyzer script. Whether you’re running a roleplay server with police enforcement or simply want to add a fun new mechanic, this script delivers a polished and feature-rich experience.

Thumbnail

Tebex store link | buy now!

Features:

  • Brand New UI: A sleek and modern breathalyzer interface enhances the player experience.
  • Interactable Buttons: Players can engage with the UI for realistic interactions.
  • Configurable Commands: Customize the command to open the breathalyzer as per your server’s preferences.
  • Legal Limit Settings: Define the BAC (Blood Alcohol Content) threshold according to your server’s rules.
  • Sound Effects: Enjoy immersive audio feedback while using the breathalyzer.
  • Visual Indicators: Clear indicators display whether a player’s BAC is above or below the legal limit.

Exports:
You can use this resource completely standalone and open it with commands, set levels with commands, or you could integrate it with an inventory system and status system. You could use the provided exports to open the breathalyzer when the items is used, and you could modify the players alcohol level using the modification exports:

  • Open the Breathalyzer UI
    Export: exports["Breathalyzer"]:open(true)
    Description: Open or close the breathalyzer interface programmatically. Perfect for integrating with inventory systems to use an item like a breathalyzer tool.
  • Manage BAC Levels
    Modify and retrieve player BAC levels to sync with status or roleplay mechanics:
    • Get BAC: Retrieve a player’s BAC level.
      Export: exports["Breathalyzer"]:getBAC(player)
    • Set BAC: Set a player’s BAC to a specific value.
      Export: exports["Breathalyzer"]:setBAC(player, level)
    • Increase BAC: Incrementally increase a player’s BAC.
      Export: exports["Breathalyzer"]:increaseBAC(player, amount)
    • Decrease BAC: Reduce a player’s BAC.
      Export: exports["Breathalyzer"]:decreaseBAC(player, amount)

ox_inventory item example:
This is included in the resource which allows you to create this as an ox_inventory item.

["breathalyzer"] = {
    label = "Breathalyzer",
    weight = 300,
    client = {
        export = "Breathalyzer.open"
    }
}

Status example:
Here’s an example on how you can integrate this with status resources, this example will increase the alcohol level when alcohol is consumed.

Tebex store link | buy now!

Preview video
The video is old, I’ll make a new one soon and update this post with the new video.

Support discord

if you have any questions or are in need of support you can reach out on discord.
Andyyy Script Support discord

8 Likes

It would be nice if when the officer wants to check your BAC, they approach you and run the command to start it (it was hard to see what commands you were using in the video but something like ‘/testbac ID’ and that would prompt the person with a notification for them to enter a response and when they enter ‘/bac’ it should show them an appropriate range (.00 to .07 for legal and .08 -.40 for drunk (anything over .31 is considered life threatening and typically .4 they are probably already dead)))

1 Like

Currently for a civ to set their bac they need to use a command, I’m going to make it where if they haven’t set it yet and an officer tests them then it will open a promt where they have to set it.

4 Likes

When do you plan on doing that? I’ll definitely buy it when this is added.

1 Like

I’m planning on doing it today.

1 Like

Update 1.1
If you haven’t set your BAC already a prompt will open where you’ll be able to set your BAC. This won’t show up if you’ve already set your BAC.

2 Likes

So i’ve seen many huds with shows you how drunk you are maybe that would be a way to return the value instead of the player putting it in?

1 Like

Can you give an example?

1 Like

So i can’t remember if threw hud ui had it or not but, just like the hunger & thirst some had the ability too see how drunk the player was, ofc that would change from framework to framework.

So pretty much instead of the player setting the value, it could retrieve the “drunk information” from the hud and display the number?

1 Like

I could make a drinking script where a player can play the animation of drinking a beer and if they drink too much they get the drunk effect and it sets the BAC automatically.

1 Like

I think he is

1 Like

I mean yea ig you can do that but i still think that retrieving it from the hud would be a better way of doing it.

Good job! Best one out there yet. Only if you can add animations that’d be perfect.

1 Like

Does this read esx_status to get their BAC or is it just RP?

It’s standalone so basically when someone gets tested it opens up a prompt where you can set the bac. Or players can just use a command to set it.

Is there any way to make a weapon model? Just for realism. Totally not needed but would be super cool.

Yes there is I can work on something soon that will enable an animation and a prop in the hand.

Halloween sale :jack_o_lantern:
This is now 25% off, to buy this visit the tebex store: https://andyyy.tebex.io/category/fivem-scripts

And use coupon code: SPOOKY25

Code valid until November 1st

50% on everything Black Friday sale
https://andyyy.tebex.io/category/fivem-scripts

any update on the prop? or the drinking script?