Skip to content

Devchacha01/saloon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

RSG Saloon Premium v2.1

Premium saloon management for RedM/RSGCore. Features crafting, table service, drunk effects, billing, employee management, and activity logging.


โœจ Features

Core Systems

Feature Description
Shop & Sales Customer shop with categories, stock tracking, tipping
Crafting 15+ recipes, yield bonuses, progress bar with animations
Storage Private storage, withdraw to inventory, refill shop
Cashbox Balance tracking, deposits/withdrawals, transaction history
Table Service Place drinks/food on tables with prop system

Management (v2.0+)

Feature Description
Employee System Hire/fire (max 4), grade-based permissions
Billing Create/send bills, payment to cashbox
Activity Logs Track withdrawals, crafting, storage actions (v2.1)
Piano Play at 8 locations with animations
Phonograph Place music props (requires xsound)

๐Ÿ“‹ Permission Grades

Grade Role Permissions
0 Helper Crafting
1 Bartender + Refill, table service
2 Manager + Cashbox, billing, logs, hire
3 Boss + Fire, promote employees

๐Ÿ“ฆ Dependencies

  • rsg-core - RSGCore framework
  • ox_lib - UI library
  • oxmysql - Database
  • ox_target - Third-eye targeting
  • rsg-inventory - Inventory system

๐Ÿš€ Installation

๐Ÿ“‹ make sure to rename the file as rsg-saloon

1. Database

source installation/saloon_premium.sql;

2. server.cfg

ensure rsg-core
ensure ox_lib
ensure oxmysql
ensure ox_target
ensure rsg-saloon

3. Jobs

Copy installation/jobs.lua contents to rsg-core/shared/jobs.lua

4. Items

Copy installation/items.lua contents to rsg-core/shared/items.lua

5. Images

Copy item PNGs to:

  • rsg-inventory/html/images/
  • rsg-saloon/html/images/

โš™๏ธ Configuration

Key Settings (config.lua)

Setting Default
Config.Debug false
Config.Keybind 'J'
Config.TipsEnabled true
Config.DrunkEffects.enabled true

Adding Saloons

['yoursaloonid'] = {
    name = 'Your Saloon',
    coords = vector3(x, y, z),
    showBlip = true,
    grades = {
        crafting = 0,
        refill = 1,
        cashbox = 2,
        employees = 2,
    },
    points = {
        bar = vector3(x, y, z),
        storage = vector3(x, y, z),
    }
},

๐ŸŽฎ Usage

Employees

  1. Access: Third-eye on bar counter
  2. Craft: Select recipe โ†’ items go to storage
  3. Refill: Move storage items to shop
  4. Serve: Place props on tables
  5. Cashbox: Deposit/withdraw earnings
  6. Logs: View activity history (Grade 2+)

Customers

  1. Shop: Browse and purchase items
  2. Pickup: Interact with placed table items
    • Consume: Drink/Eat immediately
    • Take: Pick up item into inventory

๐Ÿ—‚๏ธ File Structure

rsg-saloon/
โ”œโ”€โ”€ client/
โ”‚   โ”œโ”€โ”€ main.lua, crafting.lua, shop.lua
โ”‚   โ”œโ”€โ”€ propplacer.lua, consumption.lua, drunk.lua
โ”‚   โ”œโ”€โ”€ billing.lua, animations.lua, piano.lua, phonograph.lua
โ”œโ”€โ”€ server/
โ”‚   โ”œโ”€โ”€ main.lua, crafting.lua, shop.lua, storage.lua
โ”‚   โ”œโ”€โ”€ cashbox.lua, employees.lua, logs.lua
โ”‚   โ”œโ”€โ”€ placedprops.lua, billing.lua, piano.lua, phonograph.lua
โ”œโ”€โ”€ html/
โ”‚   โ”œโ”€โ”€ index.html, css/, js/app.js, images/, sounds/
โ”œโ”€โ”€ installation/
โ”‚   โ”œโ”€โ”€ saloon_premium.sql, jobs.lua, items.lua
โ”œโ”€โ”€ config.lua, fxmanifest.lua

๐Ÿ“ Changelog

v2.2.0

  • ๐Ÿ”ง Fixed Staff UI: Hiring, Firing, and Promoting logic repaired.
  • ๐Ÿ”ง Fixed Serving: Drinks/Food no longer disappear without effect.
  • ๐Ÿ”ง Fixed Permissions: Helpers can now Refill storage (Configurable).
  • ๐Ÿ”ง Database: Improved data sync for employee list visibility.
  • ๐Ÿ’… UI: Improved visibility of staff list rows.

v2.1.0

  • โœจ Activity logs for managers/bosses
  • โœจ Storage withdrawal to player inventory
  • โœจ Grade label badges (Boss/Manager)
  • ๐Ÿ”ง Fixed undefined storage labels
  • ๐Ÿ”ง Fixed cashbox deposit/withdraw callbacks
  • ๐Ÿงน Code cleanup

v2.0.0

  • Table service with prop placer
  • Drunk effects system
  • Billing/invoicing
  • Employee hire/fire
  • Piano system (8 locations)
  • Phonograph music props

v1.0.0

  • Initial release

๐Ÿ“„ License

MIT License


๐Ÿ”ง Troubleshooting

Staff List Not Showing / Invisible Employees

  • Ensure you have executed the installation/saloon_premium.sql file to create the saloon_premium_employees table.
  • If an employee is hired but doesn't appear immediately, the scripts now force a database save, but a resource restart can also clear up desync issues.
  • Check server console for [Saloon] debug prints if Config.Debug = true.

Author: devchacha | Framework: RSGCore for RedM

About

REDM saloon script for RSG Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors