Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

annocuoi

Member
Joined
Nov 6, 2021
Messages
4
Reaction score
23
Points
146
Location
VietNam
Ai đó có thể giúp tôi ở đây.
Tôi bị mắc kẹt tại esx_shops

Anh ấy không thể tìm thấy bất kỳ mặt hàng nào trong cửa hàng hoặc bị mắc kẹt
bb62f727bff1194839ccb39545b7ec78.png


Config.lua của tôi
Code:
 TwentyFourSeven = {
        Các mặt hàng = {
            {
                 name = "bread",
                 type = "item",
                 giá = 100
            },
        },
       
        ...
        ...[/MÃ SỐ]
[/QUOTE]
delete sql shop in database
 

Mr.Unkown

Gold Elite
Joined
Mar 16, 2021
Messages
136
Reaction score
135
Points
266
Location
malaysia
I think client, were you able to integrate it to your shops?
change this at client main.lua (esx_shops)

function OpenShopMenu(zone)
local items = {}
for i=1, #Config.Zones[zone].Items, 1 do
local item = Config.Zones[zone].Items
table.insert(items, {
type = item.type,
name = item.name,
price = item.price
})
end
TriggerEvent('inventory: openShop', tostring(zone), 'Shop', items)
end

at line 15-26 (function OpenShopMenu)
 

definitelynotjs

Silver Elite
Joined
Dec 6, 2021
Messages
47
Reaction score
22
Points
166
Location
PH
change this at client main.lua (esx_shops)

function OpenShopMenu(zone)
local items = {}
for i=1, #Config.Zones[zone].Items, 1 do
local item = Config.Zones[zone].Items
table.insert(items, {
type = item.type,
name = item.name,
price = item.price
})
end
TriggerEvent('inventory: openShop', tostring(zone), 'Shop', items)
end

at line 15-26 (function OpenShopMenu)
Thanks. But is it just me or whenever I put that on my main.lua, my server seems to lose almost all of its data? Is it possible for you to send me your main.lua?
 

ALEN TL

ALEN TL#5009
Gold Elite
Joined
Sep 18, 2021
Messages
387
Solutions
1
Reaction score
6,954
Points
321
Age
20
Location
KOCHI
Thanks. But is it just me or whenever I put that on my main.lua, my server seems to lose almost all of its data? Is it possible for you to send me your main.lua?
You mean the entire main.lua of the server side or the client side stuff
 

definitelynotjs

Silver Elite
Joined
Dec 6, 2021
Messages
47
Reaction score
22
Points
166
Location
PH
You mean the entire main.lua of the server side or the client side stuff


I wanted to integrate it with my shops. The one that Mr. Unkown doesn't seem to work for me. If you are using the same scripts maybe you can send your esx_shops\client\main.lua? Thank you.
 

ALEN TL

ALEN TL#5009
Gold Elite
Joined
Sep 18, 2021
Messages
387
Solutions
1
Reaction score
6,954
Points
321
Age
20
Location
KOCHI
I wanted to integrate it with my shops. The one that Mr. Unkown doesn't seem to work for me. If you are using the same scripts maybe you can send your esx_shops\client\main.lua? Thank you.
Currently using esx_stores. I will change and let you know.
 

fascinating

Bronze Elite
Joined
May 26, 2021
Messages
19
Reaction score
4
Points
156
Anyone else knows how to fix this problem. I'm using esx_shops. The first time i open the store all the item's load up, but the second time i tried to open a store again. It's stuck on loading. Nothing will happen. Also does it work on esx_properties?
 

Mr.Unkown

Gold Elite
Joined
Mar 16, 2021
Messages
136
Reaction score
135
Points
266
Location
malaysia
Anyone else knows how to fix this problem. I'm using esx_shops. The first time i open the store all the item's load up, but the second time i tried to open a store again. It's stuck on loading. Nothing will happen. Also does it work on esx_properties?
this file.lua i used for my shops and you can change at line 70 for add account for gov or compny...when you buy the item will remove cash money and add to account society
 

Attachments

  • config.txt
    5.1 KB · Views: 407
  • client.txt
    3 KB · Views: 410
  • server.txt
    2.3 KB · Views: 361

fascinating

Bronze Elite
Joined
May 26, 2021
Messages
19
Reaction score
4
Points
156
Thanks for the script. But it is still not working. Did you make any changes on your inventory script ? I tried printing the data of item. Here's what it prints after opening the store the second time. I

1638963048525.png
1638963060346.png
 

Mr.Unkown

Gold Elite
Joined
Mar 16, 2021
Messages
136
Reaction score
135
Points
266
Location
malaysia
Thanks for the script. But it is still not working. Did you make any changes on your inventory script ? I tried printing the data of item. Here's what it prints after opening the store the second time. I

View attachment 3720View attachment 3721
i no change anything at inventory i just put this. at client lua.


function OpenShopMenu(zone)
local items = {}
for i=1, #Config.Zones[zone].Items, 1 do
local item = Config.Zones[zone].Items
table.insert(items, {
type = item.type,
name = item.name,
price = item.price
})
end
TriggerEvent('inventory:eek:penShop', tostring(zone), 'Shop', items)
end
 
Top