Studios
Storeshouse-3.jpg

Troubleshooting

SoonStoresQbox
PAGE 05 OF 07  ·  EXAMPLES → TROUBLESHOOTING → COMMANDS & EXPORTSdocs.glitchstudios.dev
Browse docs

The console says ox_inventory is missing the glitch-stores exports#

The patch is not applied, or ox_inventory was updated and the patched files were replaced. Apply install/ox_inventory-2.48.0.patch again and restart ox_inventory, then glitch-stores.

git apply says "patch does not apply"#

Your ox_inventory files have CRLF line endings, or they are not a clean 2.48.0. Try again with --ignore-whitespace. If it still fails, those files have other changes: copy the blocks marked glitch-stores by hand.

The normal ox_inventory shop window still opens#

Check that the shop type is in Config.Shops (the name must match exactly unless pattern = true) and that the patch is applied.

Clerks have no Open Shop option#

The clerk must stand within Config.Clerks.Range of a targets entry in ox_inventory's data/shops.lua, and the player needs that shop's groups. Shops added with RegisterShop have no clerk. Check that Config.Clerks.Enabled is true. If the client console warns that it could not read data/shops.lua, that file needs more than ox_inventory's shared table when it loads, and the clerks have no shops to open.

Food in 24/7s costs four times as much#

The price surge is on for burgershot by default. Change Config.Clerks.FoodJobs, or set it to {}.

"The price of ... changed"#

The price moved between drawing the screen and paying, usually because a restaurant opened or closed. The screen has already redrawn with the new prices, so check the basket and pay again.

"You walked away from the counter" or the screen closes by itself#

The screen closes when the player walks more than Config.CloseDistance from where it opened, dies or gets in a vehicle.

Item pictures, icons or fonts are missing#

Pictures load from <image path>/<item>.png. Set Config.ImagePath, or ox_inventory's inventory:imagepath convar. The Tabler icon font loads from jsDelivr unless glitch-uiElements is running, and the Inter and Barlow Condensed fonts load from Google Fonts. Point Config.IconStylesheet.url at a copy you host if players cannot reach those sites.

Known limits#

  • Every ox_inventory update needs the patch applied again.
  • The screen loads its fonts from Google Fonts and, without glitch-uiElements, its icons from jsDelivr.
  • The price surge switches on or off the next time one of its shops is opened, not the moment a restaurant worker goes on duty.
  • Shop types with no coords in ox_inventory, such as the stock vending machines, have no distance check when they open, the same as in ox_inventory. A purchase still has to come from near where the screen opened.