qbcore-framework / qb-shops

Shops For QB-Core
GNU General Public License v3.0
27 stars 215 forks source link

[BUG] #140

Closed Apatt7882 closed 1 year ago

Apatt7882 commented 1 year ago

Describe the bug My stores will not restock. Even after taking the server down and restarting it. This is the only restock I've found in any of the lua's.

Expected behavior I would like it to automatically restock when you get out of the menu or at least on a consistant basis.

Screenshots image

Questions (please complete the following information): I'm just getting into the server building process, the server is the latest QBCore build that's on the fivem server creator option. Not other than vehicles/eup.

CrazyDevelopment commented 1 year ago

In your qb-shops > server.lua around line 15 you should see this -> if not shop or not Config.Locations[shop]?["products"] then return end

Remove the question mark. so that it looks like this - > if not shop or not Config.Locations[shop]["products"] then return end

My guess is someone had happy fingers that day XD Hope this helps