Dependencies
Configuration
Everything you need to customise is inshared/config.lua. No other files require editing for a standard setup.
shared/config.lua
Drink Configuration
Each drink is its own config block with a command, display name, description, price, and effect duration in seconds. sh-npcbartend ships with five drinks — Vodka, Tequila, Beer, Water, and Shots — and you can add more by copying the pattern below.shared/config.lua
The
EffectTime value is in seconds. Setting it to 0 disables the screen effect for that drink while still processing the purchase and animation.Adding Multiple Bar Locations
Add as manyvector4 entries to Config.BarNPCLocations as your server needs. The script spawns one bartender NPC and one map blip per entry automatically — no additional scripting required.
shared/config.lua
Map Blips
WhenBlipConfig.Enabled = true, a blip appears on the minimap and main map for every NPC location in Config.BarNPCLocations. Adjust Sprite, Color, and Scale using standard FiveM blip values to match your server’s map style.
Common blip sprite and colour reference
Common blip sprite and colour reference
Target Interaction
- Proximity (default)
- ox_target
- qb-target
When
Config.Target = false, players walk up to the NPC and press [E] to open the drinks menu. No additional resources are required.