[ESX/QB] vms_coinshop | Monetize Server with Extra UI








BUY IT HERE: www.vames-store.com

Preview: HERE

Documentation: docs.vames-store.com


image

:star: Features:

  • Comaptibile with ESX & QB-Core
  • Compatibile with Tebex API
  • Responsive UI
  • VIP Status temporary or permanent
  • Possibility to customize config.server.lua where you can customize how the script is supposed to give items, weapons, vehicles (database etc.) and money
  • Ability to set special prices for VIPs for individual items, vehicles and cases
  • Ability to configure whether the player’s steam nickname or the name of the game character should be displayed in the menu
  • Configuring drop percentages for cases
  • Ability to set a special prefix on the license plate of the purchased vehicle from Coin Shop to make it stand out from other vehicles, e.g. [C 553282]
  • When buying/winning a vehicle, it draws a license plate and verifies whether there is one currently in the database, in case of repetition, it draws another one
  • Script is secured for cheats
  • In addition, there is also a .PSD file for cases if you want in this look

:gear: CONFIG

Config = {}

-- β–ˆβ–€ β–ˆβ–€β–„ β–„β–€β–„ β–ˆβ–„ β–„β–ˆ β–ˆβ–ˆβ–€ β–ˆ   β–ˆ β–„β–€β–„ β–ˆβ–€β–„ β–ˆβ–„β–€
-- β–ˆβ–€ β–ˆβ–€β–„ β–ˆβ–€β–ˆ β–ˆ β–€ β–ˆ β–ˆβ–„β–„ β–€β–„β–€β–„β–€ β–€β–„β–€ β–ˆβ–€β–„ β–ˆ β–ˆ
Config.Core = "ESX" -- "ESX" / "QB-Core"
Config.CoreExport = function()
    return exports['es_extended']:getSharedObject()
    -- return exports['qb-core']:GetCoreObject()
end

Config.Hud = {
    Enable = function()
        -- exports['hud']:DisplayHud(true)
    end,
    Disable = function()
        -- exports['hud']:DisplayHud(false)
    end
}

Config.Notification = function(message, time, type)
    if type == "success" then
        exports["vms_notify"]:Notification("COIN SHOP", message, time, "#27FF09", "fa-solid fa-coins")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "success", 5000)
    elseif type == "error" then
        exports["vms_notify"]:Notification("COIN SHOP", message, time, "#FF0909", "fa-solid fa-coins")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "error", 5000)
    end
end


-- β–€β–ˆβ–€ β–ˆβ–€β–„ β–„β–€β–„ β–ˆβ–„ β–ˆ β–„β–€β–€ β–ˆ   β–„β–€β–„ β–€β–ˆβ–€ β–ˆβ–ˆβ–€
--  β–ˆ  β–ˆβ–€β–„ β–ˆβ–€β–ˆ β–ˆ β–€β–ˆ β–„β–ˆβ–ˆ β–ˆβ–„β–„ β–ˆβ–€β–ˆ  β–ˆ  β–ˆβ–„β–„
Config.Translate = {
    ['received_coins'] = "You received <b>%s coins</b>.",
    ['updated_vip_status'] = "You have updated you account status to VIP."
}


-- β–ˆβ–„ β–„β–ˆ β–„β–€β–„ β–ˆ β–ˆβ–„ β–ˆ   β–„β–€β–€ β–ˆβ–ˆβ–€ β–€β–ˆβ–€ β–€β–ˆβ–€ β–ˆ β–ˆβ–„ β–ˆ β–„β–€  β–„β–€β–€
-- β–ˆ β–€ β–ˆ β–ˆβ–€β–ˆ β–ˆ β–ˆ β–€β–ˆ   β–„β–ˆβ–ˆ β–ˆβ–„β–„  β–ˆ   β–ˆ  β–ˆ β–ˆ β–€β–ˆ β–€β–„β–ˆ β–„β–ˆβ–ˆ
Config.EnableBlur = true

Config.DailyRewardsReloading = 15 -- 15 = 15 minutes

Config.UseRealNames = false -- false == steam nick name / true == firstname and lastname from users table

Config.TebexLink = 'https://www.vames-store.com/' -- Here put a link to the tebex site where the player can buy coins

Config.Command = 'coinshop'
Config.CommandDescription = 'Coin Shop'

Config.OpenKey = 'F4'

-- Using Config.PlaceSpecialPrefix you can set a custom plate prefix to make it stand out from other vehicles so that everyone knows, 
-- that it is a vehicle from the store for server coins, e.g "C" and then Config.PlateNumbers = 6 and the plate will look like this [C 914293]
Config.PlateSpecialPrefix = ""
Config.PlateLetters = 2
Config.PlateNumbers = 5

Config.CasesPercentages = { -- 1.00 -> 0.00
    ['5'] = 0.95, -- 5%
    ['4'] = 0.85, -- 10%
    ['3'] = 0.75, -- 20%
    ['2'] = 0.30, -- 25%
    ['1'] = 0.00, -- 30%
}

Config.ItemsTags = {
    {label = "All", value = "all"},
    {label = "Items", value = "items"},
    {label = "Money", value = "money"},
    {label = "Weapons", value = "weapon"},
    -- {label = "Other", value = "other"},
}

Config.Vehicles = {
    {img = 'c63w205.png', label = 'Mercedes-Benz C63 AMG', model = 'c63w205', price = 2000, vipPrice = 1500},
    {img = 'mbc63.png', label = 'Mercedes-Benz C63 AMG', model = 'mbc63', price = 2000, vipPrice = 1500},
    [...]
}

Config.Cases = {
    {
        img = 'standard.png',
        label = 'Standard',
        price = 250,
        vipPrice = 200, 
        items = { -- types: item, cash, black_money, bank, vehicle, coins
            {img = 'bread.png', name = 'bread', label = 'Bread', count = 2, rarity = '1', type = 'item'},
            {img = 'water.png', name = 'water', label = 'Water', count = 8, rarity = '2', type = 'item'},
            {img = 'black_money.png', name = 'black_money', label = 'Dirty Money 15 000$', count = 15000, rarity = '3', type = 'black_money'},
            {img = 'cash.png', name = 'cash', label = 'Cash 20 000$', count = 20000, rarity = '4', type = 'cash'},
            {img = 'jubilee.webp', name = 'jubilee', label = 'Jubilee', count = 1, rarity = '5', type = 'vehicle'},
        },
    },
    [...]
}

Config.Items = {
    {img = 'gelato.png', name = 'gelato', label = 'Gelato 10g', description = '', count = 10, price = 50, vipPrice = 25, type = "item", tag = "items"},

    {img = 'cash.png', name = 'cash', label = 'Cash 50 000$', description = '', count = 50000, price = 75, type = "cash", tag = "money"},
    
    {img = 'black_money.png', name = 'black_money', label = 'Dirty Money 100 000$', description = '', count = 100000, price = 75, type = "black_money", tag = "money"},

    {img = 'WEAPON_CARBINERIFLE_MK2.png', name = 'WEAPON_CARBINERIFLE_MK2', label = 'Carbine Rifle MK2', description = '', count = 1, price = 400, type = "item", tag = "weapon"},

    [...]
}

Config.DailyRewards = {
    ['1'] = {img = 'cash.png', name = 'cash', label = 'Cash 1 000$', count = 1000, type = "cash"},
    ['2'] = {img = 'cash.png', name = 'cash', label = 'Cash 5 000$', count = 5000, type = "cash"},
    ['3'] = {img = 'cash.png', name = 'cash', label = 'Cash 7 500$', count = 7500, type = "cash"},
    ['4'] = {img = 'cash.png', name = 'cash', label = 'Cash 10 000$', count = 10000, type = "cash"},
    ['5'] = {img = 'cash.png', name = 'cash', label = 'Cash 15 000$', count = 15000, type = "cash"},
    [...]
}

> > > > > > You can check my others scripts < < < < < <
:tshirt: vms_clothestore
:disguised_face: vms_charcreator
:busts_in_silhouette: vms_multichars + vms_identity
:dagger: vms_gangmissions
:racing_car: vms_vehicleshop
:dancer: vms_anims
:black_nib: vms_tattooshop
:blonde_man: vms_barber
:world_map: vms_pausemenu
:parachute: vms_skydiving
:checkered_flag: vms_races
:oncoming_automobile: vms_drivingschool
:speedboat: vms_boatschool
:flight_departure: vms_flyingschool
:moneybag: vms_bank
:thought_balloon: vms_notify
:shopping_cart: vms_shops
:keyboard: vms_redeem
:blue_car: vms_garage
:speech_balloon: vms_npctalk
:gun: vms_weaponshop
:credit_card: vms_documents
:handshake: vms_jobcenter
:free: interact
:free: esx_menus

Code is accessible Yes/No
Subscription-based No
Lines (approximately) Lua +915
Requirements ESX / QB-Core
Support Yes
2 Likes

is there any chance to make vip last for 30days ? or it’s permanent ?

Edit : my bad , already read the documentation and it can be set for how many days we wanted . nice script !

yes, you can set as many days as you like, thanks :blush:

Hello wanted to ask if you can use without tebex or some other site

It works with Tebex because it is the only possible site where you can sell things in fivem, when you buy the open source version you have full access to the script and the ability to customize it to your needs

Is it possible to give the code yourself ?

if you create the code it in the table responsible for storing codes then yes

It turns out that you can only issue a volute to a player through tebex without making changes

create the code and give it to the player you can, you didn’t initially describe what exactly you want to get

Just before there was something similar, there is a command issued, and it is stored in the database as I understand it ? The idea is to give the player through the database

yes, you create the code in the database and give it values, code, count of coins or vip status etc. you can also use the command but it is only possible to execute through the console

All right, well, thanks for the answer, I’ll think about buying it.

what I see in the config, drivetest and tag to vehicleshop would be missing, script would be great

Hi i have this script, is there any webhook / way to see what has been won in the cases

1 Like

there is no drive-test in vms_coinshop

Hi, you can create webook-logs in config.server.lua

:computer: UPDATE 1.0.1

[+] Added notifications informing about the lack of coins


:computer: UPDATE 1.0.2

[+] Added Config.PlayerLoaded to load dailyrewards information
[/] Improved loading of dailyrewards
[/] Fixed permament vip status
[/] Changed from callback to trigger to use code

hi mate am trying to join your server but its not allowing me its saying am not whitelisted please help me out bro ,what do i have to do

Seems to be in violation with recent lootbox rules