Ranchwork Script RedM Store Premium RedM scripts are live Open a Discord ticket for setup support Secure Tebex checkout Built for VORP and RSG servers

RanchWork Market - Advanced Player-Owned Market System for RedM / VORPProduct details

Choose your license

Escrow or Open Source

Select the version that fits your server. If a matching version exists in the catalogue, the button will take you directly to it.

Escrow

Protected Tebex delivery for production servers. Best for quick installation and secure releases.

Choose Escrow

Open Source

Full source access for deeper customization, edits, and custom integrations on your RedM server.

Choose Open Source
Live Preview

Watch the script in action

BRB Market is an advanced player-owned market system for RedM servers using VORP Core.

This resource turns regular general stores into fully manageable player-owned businesses. Players can purchase markets, manage stock, set sale prices, hire employees, order wholesale goods, deliver supplies with a wagon, pay rent, upgrade their business, track accounting, and handle their store economy through a custom NUI.

This is not a basic shop script.  
It is designed for servers that want a deeper roleplay economy around towns, general stores, supply routes, and player-run businesses.

Dependencies

- vorp_core
- vorp_inventory
- oxmysql

## Main Features

- Player-owned markets
- Character-based ownership
- One market per character
- Configurable market purchase prices
- Unowned market default shop system
- Owner-only market management
- Editable market display names
- Dynamic market blips
- Owner cashbox system
- Custom stock management
- Custom sale prices per item
- Inventory-to-market stock deposit
- Market stock withdrawal
- Low stock warning system
- Wholesaler NPC system
- Cart-based wholesale ordering
- Bulk wholesale purchases
- Wagon delivery system
- Configurable delivery drop-off points
- Delivery route / waypoint support
- Employee system
- Employee roles and permissions
- Accounting / business logs
- Rent and debt system
- Market lock system for unpaid rent
- Storage upgrade system
- Security upgrade system
- Robbery cashbox export
- System resale option
- Player-to-player market transfer
- Discord webhook logging support
- Multi-language support: English and Turkish
- Custom western-themed NUI

## Player-Owned Market System

Players can purchase configured markets and operate them as their own business.

Each market has an owner, a cashbox, stock, employees, upgrades, rent status, and accounting history.

Owned markets only sell the stock provided by the owner.  
If the owner does not restock the market, customers cannot buy those items.

This helps create a more realistic player-driven economy.

Stock Management

Owners and authorized employees can manage market stock from the NUI.

They can:

- Add items from their inventory to the market
- Withdraw items from market stock
- Set item sale prices
- Update prices later
- View stock counts
- Receive low stock warnings

The market stock is saved in the database.

## Wholesaler and Cart System

Market owners can order supplies from a wholesaler.

Instead of buying one item at a time, the wholesaler uses a cart system.  
Players can add multiple items to the cart and confirm the full order at once.

The wholesaler catalog is fully configurable.

Wagon Delivery System

Wholesale orders can require a physical delivery.

When a wholesale order is confirmed:

1. The player pays for the order.
2. A wagon is spawned.
3. The delivery point is marked on the map.
4. The player must bring the wagon to the configured market drop-off point.
5. The stock is added only after successful delivery.

This adds more roleplay possibilities for supply runs, escorts, ambushes, robberies, and business logistics.

Delivery settings are configurable, including:

- Wagon model
- Wagon spawn location
- Drop-off coordinates
- Prompt distance
- Delivery distance
- Delivery expiration time

Employee System

Market owners can hire other players as employees.

Default roles:

- Clerk
- Manager

Permissions can be configured per role.

Examples:

- Stock management
- Price updates
- Accounting access

Cashbox withdrawal, market resale, transfer, and upgrades remain owner-controlled.

Rent System

Markets can have recurring rent.

If rent is enabled:

- Rent has a due date
- Debt can accumulate
- A market can become locked if debt gets too high
- Locked markets cannot sell items until debt is paid

This gives business ownership an ongoing cost and helps balance the server economy.

Upgrade System

Owners can upgrade their market.

Storage upgrades increase total market stock capacity.

Security upgrades can reduce robbery losses and add insured cashbox recovery.

All levels, prices, and values are configurable.

## Accounting System

The accounting panel helps owners track business activity.

It can show:

- Sales
- Wholesale orders
- Deliveries
- Stock deposits
- Stock withdrawals
- Price changes
- Cash withdrawals
- Rent payments
- Robbery losses
- Upgrade purchases
- Employee actions
- Market transfers

 Robbery Export

The resource includes an export for external robbery scripts.

```lua
local result = exports['brb-market']:RobMarketCash('valentine', 35)

if result.ok and result.stolen > 0 then
    -- Give result.stolen to the robber here
end

The export removes money from the market cashbox.
Your robbery script decides how to reward the robber.

Security upgrades can reduce the effective robbery amount.

Multi-Language Support

Included languages:

  • English
  • Turkish

Language can be changed in config:

Config.Language = 'en' -- tr / en

Most NUI text, notifications, prompts, labels, action names, role names, and upgrade names are handled through lang.lua.

Configuration

The script is highly configurable.

You can configure:

  • Language
  • Market locations
  • Market prices
  • Owner interaction points
  • NPC models
  • Blips
  • Wholesaler location
  • Wholesaler catalog
  • Unowned market catalog
  • Delivery wagon model
  • Delivery drop-off points
  • Rent amount
  • Rent interval
  • Rent debt limit
  • Employee roles
  • Employee permissions
  • Storage upgrade levels
  • Security upgrade levels
  • Low stock thresholds
  • Robbery limits
  • Discord webhook logging

Performance

This is a script resource with no custom streamed models, maps, or textures included.

Approximate code size: ~5,255 lines.

Recommended: test with resmon on your own server after configuration.
Idle and active usage may vary depending on player count, market count, inventory system response time, and database performance.

Installation

  1. Place the resource in your server resources folder.
  2. Run the SQL file.
  3. Make sure dependencies start before this resource.
  4. Add the resource to your server.cfg.
ensure oxmysql
ensure vorp_core
ensure vorp_inventory
ensure brb-market

SQL:

SOURCE sql/install.sql;

If updating from an older version, run the included migration files if needed.

Requirements

  • RedM
  • VORP Core
  • VORP Inventory
  • oxmysql
  • MySQL database

Notes

  • This resource does not include custom vehicles, custom maps, MLOs, or streamed assets.
  • The delivery wagon uses a game model configured in the script.
  • External robbery scripts can integrate through the provided export.
  • Paid releases should be purchased through the official store link provided above.