Skip to main content
sh-npcbartend places a bartender NPC at any world coordinates you define, giving players a place to buy drinks that trigger timed screen intoxication effects. The script is lightweight by design — drop it in, point it at your existing money system (or run it fully standalone), and configure as many bar locations as your server needs. Each drink has its own price, command, and effect duration, all set in plain Lua with no encrypted config files to work around.

Dependencies

Configuration

Everything you need to customise is in shared/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 many vector4 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
Use a tool like CodeWalker or your server’s in-game coordinate grabber to get accurate vector4 values for NPC placement. The fourth value is the NPC’s heading in degrees — 0.0 faces north, 90.0 faces east.

Map Blips

When BlipConfig.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.

Target Interaction

When Config.Target = false, players walk up to the NPC and press [E] to open the drinks menu. No additional resources are required.