mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
fixes
This commit is contained in:
+4
-4
@@ -20,7 +20,7 @@ function OpenShopMenu(zone)
|
||||
table.insert(elements, {
|
||||
label = ('%s - <span style="color:green;">%s</span>'):format(item.label, _U('shop_item', ESX.Math.GroupDigits(item.price))),
|
||||
itemLabel = item.label,
|
||||
item = item.item,
|
||||
item = item.name,
|
||||
price = item.price,
|
||||
|
||||
-- menu properties
|
||||
@@ -79,9 +79,9 @@ Citizen.CreateThread(function()
|
||||
for i = 1, #v.Pos, 1 do
|
||||
local blip = AddBlipForCoord(v.Pos[i])
|
||||
|
||||
SetBlipSprite (blip, v.Type[i])
|
||||
SetBlipScale (blip, v.Size[i])
|
||||
SetBlipColour (blip, v.Color[i])
|
||||
SetBlipSprite (blip, v.Type)
|
||||
SetBlipScale (blip, v.Size)
|
||||
SetBlipColour (blip, v.Color)
|
||||
SetBlipAsShortRange(blip, true)
|
||||
|
||||
BeginTextCommandSetBlipName('STRING')
|
||||
|
||||
+15
-15
@@ -10,13 +10,13 @@ Config.Zones = {
|
||||
TwentyFourSeven = {
|
||||
Items = {
|
||||
{
|
||||
name = bread,
|
||||
label = bread,
|
||||
name = "bread",
|
||||
label = "bread",
|
||||
price = 100
|
||||
},
|
||||
{
|
||||
name = water,
|
||||
label = bread,
|
||||
name = "water",
|
||||
label = "water",
|
||||
price = 100
|
||||
}
|
||||
},
|
||||
@@ -32,19 +32,19 @@ Config.Zones = {
|
||||
},
|
||||
Size = 1.0,
|
||||
Type = 59,
|
||||
Color = {r = 102, g = 102, b = 204, a = 255}
|
||||
Color = 25
|
||||
},
|
||||
|
||||
RobsLiquor = {
|
||||
Items = {
|
||||
{
|
||||
name = bread,
|
||||
label = bread,
|
||||
name = "bread",
|
||||
label = "bread",
|
||||
price = 100
|
||||
},
|
||||
{
|
||||
name = water,
|
||||
label = bread,
|
||||
name = "water",
|
||||
label = "water",
|
||||
price = 100
|
||||
}
|
||||
},
|
||||
@@ -61,19 +61,19 @@ Config.Zones = {
|
||||
},
|
||||
Size = 1.0,
|
||||
Type = 59,
|
||||
Color = {r = 102, g = 102, b = 204, a = 255}
|
||||
Color = 25
|
||||
},
|
||||
|
||||
LTDgasoline = {
|
||||
Items = {
|
||||
{
|
||||
name = bread,
|
||||
label = bread,
|
||||
name = "bread",
|
||||
label = "bread",
|
||||
price = 100
|
||||
},
|
||||
{
|
||||
name = water,
|
||||
label = bread,
|
||||
name = "water",
|
||||
label = "water",
|
||||
price = 100
|
||||
}
|
||||
},
|
||||
@@ -86,6 +86,6 @@ Config.Zones = {
|
||||
},
|
||||
Size = 1.0,
|
||||
Type = 59,
|
||||
Color = {r = 102, g = 102, b = 204, a = 255}
|
||||
Color = 25
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
USE `es_extended`;
|
||||
|
||||
CREATE TABLE `shops` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`store` varchar(100) NOT NULL,
|
||||
`item` varchar(100) NOT NULL,
|
||||
`price` int NOT NULL,
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
INSERT INTO `shops` (store, item, price) VALUES
|
||||
('TwentyFourSeven','bread',30),
|
||||
('TwentyFourSeven','water',15),
|
||||
('RobsLiquor','bread',30),
|
||||
('RobsLiquor','water',15),
|
||||
('LTDgasoline','bread',30),
|
||||
('LTDgasoline','water',15)
|
||||
;
|
||||
Reference in New Issue
Block a user