Dependencies
| Dependency | Required | Notes |
|---|---|---|
| ox_lib | ✅ Yes | Menu and utility functions |
| ox_target or qb-target | ❌ Optional | Enables third-eye interaction; falls back to proximity if false |
| NAT2K15 | ❌ Optional | Required when Config.Framework = 'nat' |
| ND_Core | ❌ Optional | Required when Config.Framework = 'nd' |
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
| Value | Sprite | Notes |
|---|---|---|
93 | Bar / cocktail glass | Default for sh-npcbartend |
53 | Dollar sign | Useful for shop-style blips |
1 | Standard circle | Generic fallback |
| Value | Colour |
|---|---|
0 | White |
1 | Red |
2 | Green |
3 | Blue |
5 | Yellow |
46 | Light blue (default) |
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.