(UPDATE-11/12/2019) [Release] [ESX] Shops with bars (V.1.7) (OLD ESX)

i still cant get mine to work i go in the zone and no items show up then i updated shops and i got the shop to pop up but nothing was in it

1 Like

I found this and don’t know how to do with it.
local name = ‘hunger’
local default = 1000000
local color = ‘#CFAD0F

TriggerEvent(‘esx_status:registerStatus’, name, default, color,
function(status) – Visible calllback, if it return true the status will be visible
return true
end,
function(status) – Tick callback, what to do at each tick
status.remove(200)
end,
{remove = 200} – Client action (add / remove) so the client can be in sync with server
)

1 Like

@ExoticNx So let me know if the bars one work xD*

  1. If they work go to your items table on the database and see if you have there something called “jumelles” if so delete them.

  2. Then go to the shops table and see if there is something called “jumelles” if so delete it again.

  3. Then go to your esx_shops folder get into the config.lua and see if there is something called “jumelles” and “tobbaco” if so delete them both

  4. Restart the server clear the cache and try it out, remember to also check the server.cfg order for this scripts and see if you added correctlly the sql files to the database

that is part of the code from esx_status you don’t need to be there sir xD

That’s on this link: https://github.com/ESX-Org/esx_status

1 Like

ok ill try it when i get home

2 Likes

that is if you want to change the time and how much it removes to the status xD

Tell me if you know what’s wrong then I don’t get it.

Okay so I got the menu to work. But now the menu looks weird. Help?

bf1f57cceb07acd5961f091e30a17e72

EDIT: I solved it. Needed to download the latest version of esx_menu_default

3 Likes

How did u get the menu to work?

1 Like

your menu is like the @Oskarsson one? xD

Sorry for the super late reply but yep that fixed it thanks

1 Like

I am getting an attempt to concenate a nil value (label) on line 34 of esx_shops/client/main.lua

which is

label = item.label .. ' - <span style="color:green;">$' .. item.price .. ' </span>',

1 Like

Are you using all the requitements?
And did you put the correct order on server.cfg?

Yep

start esx_status
start esx_map
start esx_basicneeds
start esx_optionalneeds

start esx_shops

SQL:

INSERT INTO `items` (`id`, `name`, `label`, `limit`, `rare`, `can_remove`) VALUES
(1, 'alive_chicken', 'living chicken', -1, 0, 1),
(2, 'slaughtered_chicken', 'slaughtered chicken', -1, 0, 1),
(3, 'packaged_chicken', 'chicken fillet', -1, 0, 1),
(4, 'fish', 'fish', -1, 0, 1),
(5, 'stone', 'stone', -1, 0, 1),
(6, 'washed_stone', 'washed stone', -1, 0, 1),
(7, 'copper', 'copper', -1, 0, 1),
(8, 'iron', 'iron', -1, 0, 1),
(9, 'gold', 'gold', -1, 0, 1),
(10, 'diamond', 'diamond', -1, 0, 1),
(11, 'wood', 'wood', -1, 0, 1),
(12, 'cutted_wood', 'cut wood', -1, 0, 1),
(13, 'packaged_plank', 'packaged wood', -1, 0, 1),
(14, 'petrol', 'oil', -1, 0, 1),
(15, 'petrol_raffin', 'processed oil', -1, 0, 1),
(16, 'essence', 'gas', -1, 0, 1),
(17, 'whool', 'wool', -1, 0, 1),
(18, 'fabric', 'fabric', -1, 0, 1),
(19, 'clothe', 'cloth', -1, 0, 1),
(20, 'weed', 'Weed', -1, 0, 1),
(21, 'weed_pooch', 'Packaged Weed', -1, 0, 1),
(22, 'coke', 'Coke', -1, 0, 1),
(23, 'coke_pooch', 'Packaged Coke', -1, 0, 1),
(24, 'meth', 'Meth', -1, 0, 1),
(25, 'meth_pooch', 'Packaged Meth', -1, 0, 1),
(26, 'opium', 'Opium', -1, 0, 1),
(27, 'opium_pooch', 'Packaged Opium', -1, 0, 1),
(28, 'bandage', 'Bandage', 20, 0, 1),
(29, 'medikit', 'Medikit', 5, 0, 1),
(30, 'gazbottle', 'Gas Bottle', -1, 0, 1),
(31, 'fixtool', 'Repair Tools', -1, 0, 1),
(32, 'carotool', 'Tools', -1, 0, 1),
(33, 'blowpipe', 'Blowtorch', -1, 0, 1),
(34, 'fixkit', 'Repair Kit', -1, 0, 1),
(35, 'carokit', 'Body Kit', -1, 0, 1),
(36, 'bread', 'Bread', -1, 0, 1),
(37, 'water', 'Water', -1, 0, 1),
(38, 'wine', 'Wine', -1, 0, 1),
(39, 'beer', 'Beer', -1, 0, 1),
(40, 'vodka', 'Vodka', -1, 0, 1),
(41, 'chocolate', 'Chocolate', -1, 0, 1),
(42, 'sandwich', 'Sandwich', -1, 0, 1),
(43, 'hamburger', 'Hamburger', -1, 0, 1),
(44, 'tequila', 'Tequila', -1, 0, 1),
(45, 'whiskey', 'Whiskey', -1, 0, 1),
(46, 'cupcake', 'Cupcake', -1, 0, 1),
(47, 'cocacola', 'Coca-Cola', -1, 0, 1),
(48, 'icetea', 'Iced-Tea', -1, 0, 1),
(49, 'redbull', 'Red-Bull', -1, 0, 1);

INSERT INTO `shops` (`id`, `name`, `item`, `price`) VALUES
(1, 'TwentyFourSeven', 'bread', 30),
(2, 'TwentyFourSeven', 'water', 15),
(3, 'RobsLiquor', 'bread', 30),
(4, 'RobsLiquor', 'water', 15),
(5, 'LTDgasoline', 'bread', 30),
(6, 'LTDgasoline', 'water', 15),
(7, 'Bar', 'wine', 50),
(8, 'Bar', 'beer', 50),
(9, 'Bar', 'vodka', 50),
(10, 'TwentyFourSeven', 'chocolate', 20),
(11, 'RobsLiquor', 'chocolate', 20),
(12, 'LTDgasoline', 'chocolate', 20),
(13, 'TwentyFourSeven', 'sandwich', 30),
(14, 'RobsLiquor', 'sandwich', 30),
(15, 'LTDgasoline', 'sandwich', 30),
(16, 'TwentyFourSeven', 'hamburger', 30),
(17, 'RobsLiquor', 'hamburger', 30),
(18, 'LTDgasoline', 'hamburger', 30),
(19, 'Bar', 'tequila', 40),
(20, 'Bar', 'whisky', 40),
(21, 'TwentyFourSeven', 'cupcake', 15),
(22, 'RobsLiquor', 'cupcake', 15),
(23, 'LTDgasoline', 'cupcake', 15),
(24, 'TwentyFourSeven', 'cocacola', 25),
(25, 'RobsLiquor', 'cocacola', 25),
(26, 'LTDgasoline', 'cocacola', 25),
(27, 'TwentyFourSeven', 'icetea', 20),
(28, 'RobsLiquor', 'icetea', 20),
(29, 'LTDgasoline', 'icetea', 20),
(30, 'TwentyFourSeven', 'redbull', 30),
(31, 'RobsLiquor', 'redbull', 30),
(32, 'LTDgasoline', 'redbull', 30);

2 Likes

Can you show me the config.lua from esx_shops sir? xD


Config.DrawDistance = 100
Config.Size         = {x = 1.5, y = 1.5, z = 1.5}
Config.Color        = {r = 0, g = 128, b = 255}
Config.Type         = 1
Config.Locale = 'en'

Config.Zones = {

    TwentyFourSeven = {
        Items = {bread,water,chocolate,sandwich,hamburger,cupcake,cocacola,icetea,redbull,tobbaco},
        Pos = {
            {x = 373.875,   y = 325.896,  z = 102.566},
            {x = 2557.458,  y = 382.282,  z = 107.622},
            {x = -3038.939, y = 585.954,  z = 6.908},
            {x = -3241.927, y = 1001.462, z = 11.830},
            {x = 547.431,   y = 2671.710, z = 41.156},
            {x = 1961.464,  y = 3740.672, z = 31.343},
            {x = 2678.916,  y = 3280.671, z = 54.241},
            {x = 1729.216,  y = 6414.131, z = 34.037}
        }
    },

    RobsLiquor = {
        Items = {bread,water,chocolate,sandwich,hamburger,cupcake,cocacola,icetea,redbull,tobbaco},
        Pos = {
            {x = 1135.808,  y = -982.281,  z = 45.415},
            {x = -1222.915, y = -906.983,  z = 11.326},
            {x = -1487.553, y = -379.107,  z = 39.163},
            {x = -2968.243, y = 390.910,   z = 14.043},
            {x = 1166.024,  y = 2708.930,  z = 37.157},
            {x = 1392.562,  y = 3604.684,  z = 33.980}
        }
    },

    LTDgasoline = {
        Items = {bread,water,chocolate,sandwich,hamburger,cupcake,cocacola,icetea,redbull,tobbaco},
        Pos = {
            {x = -48.519,   y = -1757.514, z = 28.421},
            {x = 1163.373,  y = -323.801,  z = 68.205},
            {x = -707.501,  y = -914.260,  z = 18.215},
            {x = -1820.523, y = 792.518,   z = 137.118},
            {x = 1698.388,  y = 4924.404,  z = 41.063}
        }
    },

    Bar = {
        Items = {wine,beer,vodka,tequila,whisky},
        Pos = {
            {x = 127.830,   y = -1284.796, z = 28.280}, --StripClub
            {x = -1393.409, y = -606.624,  z = 29.319}, --Bahamamas
            {x = -559.906,  y = 287.093,   z = 81.176}, --Tequila la
            {x = 1986.18,   y = 3054.31,   z = 46.32}
        }
    }
}```
1 Like

are you supposed to be able to get drunk? that’s optional needs correct? i cant get drunk tho i used 35 vodka and nothing

1 Like

Every place where it says tobbaco delete it only tobbaco

The vodka has a little error, go into server/main.lua from esx_optialneeds, and where its says vodka send you have to change something where os says vodka and put drunk you can see examples with the other drinks in the same file