ESX_Shops add new shop

Im trying to add a new category of shops into my server but when i add something into the config.lua and launch my server all of the shops are not working/shown on the map

THIS IS THE CODE

Config = {}

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 = {},
    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 = {},
    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},
        {x = 127.830,   y = -1284.796, z = 28.280}, --StripClub
        {x = -1393.409, y = -606.624,  z = 29.319}, --Tequila la
        {x = -559.906,  y = 287.093,   z = 81.176}  --Bahamamas
    }
},

LTDgasoline = {
    Items = {},
    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}
    }
},

test = {
    Items = {},
    Pos = {
        {x = -68.819,   y = -1811.514, z = 31.420},
    }
}

}

tried to add the “test” but when i do my shops wont work. do I get to change more code in other files? if so please let me know which

You need to add them in the sql

Like that? or somewhere else

I guess that would work yes

thanks man
Works like magic. but anyway i can place the circle on the ground? it looks funny when floating

Look at an DrawMarker function. https://runtime.fivem.net/doc/reference.html#_0x28477EC23D892089

1 Like

Thanks man you helped me a lot

1 Like

Remeber to mark it as done.

Do you know any way to disable the marker for the new shops i added?

1 Like

Why do you wanna disable the marks? Just dont draw the marker then

Aight look thats the code of the shop i want to not be shown on the map.

MarketBurger = {
	Items = {},
	Pos = {
		{x = 462.646,	y = -699.314, z = 27.5263},
	}
}

do i got to add something to it to make it disappear?

Make an seperat DrawMarker for that then

Sorry lol i meant how do i remove the blip for it not the marker. i used to play arma 3 so markers and blips are mixin up for me sorry.

Make a seperat Blip for that then Insert LUL emote here

i got 0 clue on how to do it. im new to scripting L…U…L

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.