[RELEASE] [FREE] RY_SHOPS - Shop System with NUI

What is RY_SHOPS?
A fully configurable shop system with a modern and simple design.

With the ease of creating infinite shops each with different items, giving the possibility to create, for example, only weapons shops.

preview

Config
Config = {}
Config.Framework = "esx"        -- "esx" or "qb-core"

Config.Options = {
    ['purchase_complete'] = "Successfully Purchased, thank you!",
    ['no_money'] = "You don't have enought money."
}

Config.Locations = {
    ['lossantosavenue'] = {  -- name of the location, you can put whatever you like.
        shop_name = "SuperMarket",
        coords = vector3(25.63,-1347.48,29.48), -- coord for the menu.
        marker = {
            key = 38, -- key to open the menu. Default E
            type = 2, -- type of marker.
            size  = {x = 0.3, y = 0.3, z = 0.3}, -- size of marker.
            color = {r = 255, g = 255, b = 255}, -- color of marker.
            text = '[ ~g~E~w~ ] Shop' -- text of marker.
        },
        blip = {
            name = '24/7 Shop', -- name of the blip in map.
            sprite = 59, -- sprite of the blip.
            scale = 0.8, -- scale of the.
            color = 2 -- color of the. 
        },
        products = {
            [1] = {
                name = "Apple", -- name in the menu
                item = "apple", -- item name in database *remember that you need the item in database to work 100%*
                image = "apple.png", -- image of product in html/assets
                -- IMAGE RESOLUTION --
                -- 150x100 Pixels --
                -- IMAGE RESOLUTION --
                price = 1, -- price of product
                available = true, -- if is available to buy it or not
                type = "item" -- item or weapon
            },
            [2] = {
                name = "Kiwi",
                item = "kiwi",
                image = "kiwi.png",
                price = 4,
                available = true,
                type = "item"
            },
            [3] = {
                name = "Banana",
                item = "banana",
                image = "banana.png",
                price = 2,
                available = true,
                type = "item"
            },
            [4] = {
                name = "Phone",
                item = "phone",
                image = "phone.png",
                price = 100,
                available = true,
                type = "item"
            },
            [5] = {
                name = "Burger",
                item = "burger",
                image = "burger.png",
                price = 100,
                available = true,
                type = "item"
            },
            [6] = {
                name = "Water",
                item = "water",
                image = "water.png",
                price = 100,
                available = true,
                type = "item"
            },
            [7] = {
                name = "Beer",
                item = "beer",
                image = "beer.png",
                price = 1500,
                available = false,
                type = "item"
            },
            [8] = {
                name = "Bandage",
                item = "bandage",
                image = "bandage.png",
                price = 1500,
                available = true,
                type = "item"
            }
        }
    },
    ['weaponshop1'] = {  -- name of the location, you can put whatever you like.
        shop_name = "Weapon Shop",
        coords = vector3(22.19,-1107.09,29.78), -- coord for the menu.
        marker = {
            key = 38, -- key to open the menu. Default E
            type = 2, -- type of marker.
            size  = {x = 0.3, y = 0.3, z = 0.3}, -- size of marker.
            color = {r = 255, g = 255, b = 255}, -- color of marker.
            text = '[ ~g~E~w~ ] Weapon Shop' -- text of marker.
        },
        blip = {
            name = '24/7 Weapon Shop', -- name of the blip in map.
            sprite = 110, -- sprite of the blip.
            scale = 0.8, -- scale of the.
            color = 1 -- color of the. 
        },
        products = {
            [1] = {
                name = "Knife",
                item = "WEAPON_KNIFE",
                image = "Knife.png",
                price = 1500,
                available = true,
                type = "weapon"
            },
        }
    }
}

Updates

08/08/2022

09/10/2022

New Clean Design

Added options to pay with cash or bank.

Now you can separate the items from each store creating more options like weapons stores or something else.

Download - Github
Need Support? Join my Discord Server

Code is accessible Yes
Subscription-based No
Lines (approximately) 1000
Requirements ESX
Support Yes
11 Likes

Would love this for QBCore.

1 Like

It’s open source you can make it qbcore

1 Like

i have suggestion u can make an input box player can chose how much to buy like with left click u add 1+ but with right click u get input box where u chose to input amount

on checkout option another modal open ( cash or credit card )

just a suggestion

this looks soo good <3

1 Like

maybe in the future, many years working with esx :sweat_smile:
But like Tristan_Sanchez1 said, it’s open source so if you feel comfortable to contribute I will be happy to see!

2 Likes

suggestion pointed out, in the next update it will be included :wink:

<3 i’ll make a pr for qbcore

3 Likes

pertfect one boy

1 Like

UPDATE 08/08/2022

2 Likes

Nice :smiley:

1 Like

My boy redyy, working good again ! <3

1 Like

How is it possible to add seperate shops like “Food Store” with Food and “Phone Store” with only phones? Thanks! :slight_smile:

1 Like

Hello, not yet! But in the next update :smile:

Hello I have this installed on new qb-core and the shop pops up but when ‘checkout’ is clicked the shop closes and no items are received and no money is taken? Screenshot by Lightshot

Editing: I was able to catch a message that said no items in cart when i tried to make the purchase but I had bandages and water in the store/cart and those items are both in qbcore shared file.

dont can sell on this shops ?

Hello, sorry for the late but no. At this moment you can’t sell items in the shop, but in a future update yes

can u make this resource for multiple shop for each shop not same item sry for bad english

Change line 20 in the server.lua

local Money = Player.PlayerData.money[“cash”]
to
local Money = xPlayer.PlayerData.money[“cash”]

1 Like

sure, next update! :smile:

how long will it take sir? T^T