Alcohol Effects
Installation
No SQL. Make sure your drink items exist in ox_inventory, list them in the config and start it.
Steps
1
Copy the resource
Place the
dh_alcohol_effects folder in your resources directory.2
Check your items
Every drink in
Config.AlcoholItems must exist in ox_inventory/data/items.lua. Remove any you don't have, add any you do.3
Pick a language
Locale = 'en' or 'fr' in shared/config.lua.4
Check your keyboard layout
The drunk-driving controls ship for AZERTY. On QWERTY, use the values in the comments (below).
5
Add to server.cfg
After ox_lib and ox_inventory.
server.cfg
server.cfg
ensure ox_lib
ensure ox_inventory
ensure dh_alcohol_effects
Troubleshooting
Using a drink does nothing — The item name must be in
Config.AlcoholItems exactly as it is in ox_inventory.Car steers itself the wrong way — Switch
DrunkDriving.controls to the QWERTY values.Thirst doesn't go up — You need esx_status or ox_status running. On QBCore, wire your own status call in the hydration section of
client/client.lua.