I welcome you CFX community!
Today I present you a bar system, thanks to which you diversify the gameplay on your server! I’m sure you and your players will love it!
This system includes a pleasant user interface, the convenience of adding new bars, a realistic drinking system, as well as intoxication, the ability to customize the entire resource.
Credit: Do$
Demonstration of the system:
Example of a configuration file:
Configuration files
-- /*
-- ██████╗░██╗░░░██╗██████╗░███████╗██╗░░░██╗███████╗░██████╗████████╗███╗░░██╗██╗██╗░░██╗
-- ██╔══██╗██║░░░██║██╔══██╗██╔════╝██║░░░██║██╔════╝██╔════╝╚══██╔══╝████╗░██║██║██║░██╔╝
-- ██████╦╝██║░░░██║██████╔╝█████╗░░╚██╗░██╔╝█████╗░░╚█████╗░░░░██║░░░██╔██╗██║██║█████═╝░
-- ██╔══██╗██║░░░██║██╔══██╗██╔══╝░░░╚████╔╝░██╔══╝░░░╚═══██╗░░░██║░░░██║╚████║██║██╔═██╗░
-- ██████╦╝╚██████╔╝██║░░██║███████╗░░╚██╔╝░░███████╗██████╔╝░░░██║░░░██║░╚███║██║██║░╚██╗
-- ╚═════╝░░╚═════╝░╚═╝░░╚═╝╚══════╝░░░╚═╝░░░╚══════╝╚═════╝░░░░╚═╝░░░╚═╝░░╚══╝╚═╝╚═╝░░╚═╝*/
Config = {}
-- Are you using ESX?
Config.UseESX = true
-- Do you want to use blips?
Config.UseBlips = true
-- Do you want to use markers?
Config.UseMarker = true
-- Do you want to use audio?
Config.UseAudio = true
-- Are you using esx_status?
Config.EsxStatus = true
-- The working time of the effects. The time will increase depending on the level of alcohol in the blood. Time = 20 * Alcohol level
Config.Time = 15 -- sec
Config.DrawDistance = 2.0
Config.MarkerSize = {x = 0.5, y = 0.5, z = 0.5}
Config.MarkerColor = {r = 122, g = 195, b = 254}
Config.MarkerType = 1
Config.bar = {
vector3(127.4744, -1284.8640, 28.2809)
}
Config.Translation = {
['menu'] = 'Press ~INPUT_CONTEXT~ to ~g~interact',
['buy1'] = 'You bought: ~g~',
['buy2'] = ' ~w~for: ~g~$',
['nomoney'] = '~r~You do not have enough Money!',
}
Screenshots:
Optimization (The script consumes):
0.00 ms in a quiet state.
0.00 ms in an active state.
What features does the bar system include:
- This system works on all versions of ESX, as well as STANDALONE!
- Beautiful user interface!
- Possibility of configuration of new places for bars!
- Realistic drinking system!
- Configuration via the configuration file!
- The system of accumulation of alcohol in the blood!
- Different volume for each drink
- Different effects depending on the level of alcohol in the blood!
- Different props for each alcohol!
- Of course support, I’m ready to help you edit this bar system!
TOP SALES
You may also be interested in my other resources:
Code accessible | Open source: Yes \ Escrow: No - Available only: config, ui |
Subscription based | No |
Lines (approximately) | ~1300 |
Requirements | Standalone |
Support | Yes |