A coin shop for your server, by m-Scripts
VIP

Sell coins. Let them shop.

Players spend VIP coins on weapons, vehicles, items and mystery boxes. Coins come from your Tebex store, a 30 day login streak, time online and codes. Everything is managed from an in-game panel.

The vehicle shop with stock and sale tags
Vehicle details with stats and a test drive button
The weapon shop with ammo included on some weapons
The mystery box shop with three boxes
A mystery box spinning and landing on a reward
The player profile with the daily reward streak
Redeem codes with uses and expiry dates
The admin dashboard with sales and coin charts
01Vehicles

Cars for coins.
Straight to the garage.

Every car has a price, an optional stock and a sale price. Bought cars are saved to the player's garage with a plate and keys.

02Test drive

Try it first.
Then buy it.

Open a car to see its details and take it for a test drive. 30 seconds by default, then the car is gone and the player is brought back.

03Weapons and items

Guns with ammo.
Items too.

Weapons can come with their own ammo. Items go straight to the inventory. Each one can have a daily limit per player.

04Mystery boxes

Pick a box.
Feel lucky.

Make as many boxes as you want. Each one has its own price, rewards and odds, all set from the panel.

05The spin

Rolled on the server.
Shown on screen.

The server picks the reward by weight, then the box spins and lands on it. Rewards can be items or coins, with five rarity levels.

06Daily reward

Log in every day.
Day 30 pays 1,000.

A 30 day streak with bigger rewards every week. Miss a day and it starts again, or just pauses. Your call in the config.

07Redeem codes

Drop a code.
Watch them rush.

Codes give coins. Set how many times a code works, if a player can use it once, and when it expires.

08Dashboard

Know what sells.
Every day.

Players, coins in circulation, sales per day, coins earned against spent, top sellers and the latest box drops.

Watch it

See it running.
In game.

Where coins come from

Three ways
to fill the wallet.

Admins can also give, remove or set coins with a command or from the Players page.

01 · Your store

Tebex

Add one command to a Tebex package and the coins land on the player after they pay. The command only runs from the server console.

vipshop_addcoinsConsole onlyLogged
02 · Come back

Daily streak

One claim a day for 30 days. Every seventh day pays more, and day 30 pays 1,000 coins by default.

30 daysReset or pauseOn by default
03 · Stay online

Time online

Give every online player coins at a set interval, with an optional minimum time before the first reward.

IntervalAmountOff by default
0Shop types: weapons, vehicles, items, boxes
0Days in the login streak
0Rarity levels for box rewards
0Car spots in the showroom
0Discord log events
The admin side

No config files.
Just the panel.

Weapons, vehicles, items, boxes and codes are all added and edited in game. The data lives in the database.

Admin screen
Manage items Price, stock, discount, daily limit and image for every product.
Everything in the box

A real store.
Inside your city.

VIP coins

Name the currency what you like. Or turn it into an inventory item instead of a balance.

Currency

Vehicle shop

Bought cars go to the garage table with a plate, and the keys are handed over.

Shop

Weapon shop

Sell weapons as inventory items, with an ammo pack that can come along.

Shop

Item shop

Any item from your inventory can be sold for coins.

Shop

Mystery boxes

Weighted rewards with five rarity levels. Coins or items, rolled on the server.

Boxes

Sales

Put any product on sale with a discount. Players can filter what is on sale.

Promotions

Stock

Leave stock empty for unlimited, or set a number and it counts down with every sale.

Stock

Daily limits

Cap how many of one product a player can buy each day.

Limits

Showroom

An interior with up to six cars that turn slowly. Walk up, look and buy on the spot.

Showcase

Test drives

From the shop or the showroom. Time, spawn point and plate text are in the config.

30 s default

Daily login

30 days of rewards you set day by day. Day 30 pays 1,000 coins out of the box.

Streak

Online reward

Coins for every player online at an interval, with a message when they arrive.

Optional

Redeem codes

Coin codes with max uses, one per player and an expiry date.

Codes

Tebex delivery

One console command adds the coins after a purchase, and the payment is logged.

Tebex

My profile

Balance, total earned, total spent, boxes opened, recent rewards and an avatar picture.

Players

Dashboard

Sales per day and coins earned against spent, for up to 90 days back.

Admins

Players page

Search players, see their coin history and box drops, and give or take coins.

Admins

Coin commands

givecoins, removecoins and setcoins, each with its own permission. Names are in the config.

Commands

Server-side prices

Price, stock and limits always come from the database, never from the player.

Security

Shop locations

A shop NPC with a blip, plus the /vipshop command. The command and each blip can be turned off.

Access

Discord logs

Weapon, vehicle and item buys, box openings, test drives, coin changes and Tebex payments.

7 webhooks

Tables on start

The database tables are created on the first start. An SQL file is included too.

Setup

UI sounds

Clicks and box sounds in the menu. One switch turns them all off.

Config

English and Portuguese

Both languages included. Pick one in the config.

Locales
Straight answers

What you get.
What you need.

Included

  • The script with its own shop and admin UI, in English and Portuguese
  • A vehicle showroom with six car spots and test drives
  • Daily rewards, online rewards, redeem codes and Tebex delivery
  • Coin exports for your other scripts
  • An SQL file, and automatic table creation

Good to know

  • Needs ox_lib and oxmysql
  • Products are added in game, the shop starts empty
  • Put your license or citizenid in Config.Admin to open the admin pages
  • The Tebex command runs from the server console only
  • Vehicle keys are handed over when a supported key script is running
Plugs into your server

Your stack.
Already supported.

Framework, inventory, target and keys are found on their own when the server starts. Or set each one by hand in the config.

Framework

QboxQBCoreESX

Inventory

ox_inventoryqb-inventoryps-inventory

Target

ox_targetqb-target

Keys

qbx_vehiclekeysqb-vehiclekeyscd_garagewasabi_carlock

Store

Tebex

Needs

ox_liboxmysql

For developers

Coins.
From any script.

-- read a balance
exports['m-Vipshop']:GetPlayerCoinsBySource(source)
exports['m-Vipshop']:GetPlayerCoins(identifier)

-- give, take or set coins (logged as a transaction)
exports['m-Vipshop']:AddPlayerCoins(identifier, 500, 'event_reward')
exports['m-Vipshop']:RemovePlayerCoins(identifier, 100, 'fine')
exports['m-Vipshop']:SetPlayerCoins(identifier, 0)

-- Tebex package command
vipshop_addcoins {sid} {transaction} 100
FAQ

Before you buy.

How do players get coins?

From your Tebex store with one package command, the daily login streak, the online reward, redeem codes, or an admin giving them. Other scripts can add coins with the exports.

Do I add products in the config?

No. Weapons, vehicles, items and mystery boxes are added from the admin pages in game, with price, stock, discount, daily limit and picture.

Can the coins be an item?

Yes. Set Config.VipshopCurrency.item to true and pick the item name. Otherwise coins are a balance in the database.

How does a mystery box pick the reward?

The server picks it by the weight you give each reward. The spin on screen only shows the result. Rewards can be coins or items.

Who can open the admin pages?

The licenses or other identifiers you list in Config.Admin. On QBCore you can list citizenids too. The coin commands use their own permission.

Can players try a car before buying?

Yes. Test drives last 30 seconds by default, start at a spot you choose and delete the car at the end. Turn them off in the config if you want.

OPENTHE SHOP.

Available now for 18.45 EUR.

Buy VIP Shop