Skip to content

gapadana/esx_supermarket

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

esx_supermarket

This resource based on esx_shops, I just changed the UI.

Download & Installation

Using Git

cd resources
git clone https://github.com/gapadana/esx_supermarket [esx]/esx_supermarket

Manually

Installation

Instal the resource

If you already have esx_shops, just stop esx_shops( and remove it from server.cfg) and start esx_supermarket( and add it to server.cfg), otherwise:

  • Import esx_shops.sql to your database
  • Add start esx_supermarket in your server.cfg:
start esx_supermarket

How to add your items in the shop

  • Add items to the database:
	INSERT INTO `items` (`name`, `label`, `weight`) VALUES ('banana', 'Banana', 10);
  • Add items to the shop:
	INSERT INTO `shops` (store, item, price) VALUES ('TwentyFourSeven','banana',50);
  • Add an image for your item in html/img folder
  • Add path to the image into __resource.lua file like other images
  • Restart the resource:
refresh
restart esx_supermarket

ScreenShot

alt text