Hello, Running into a problem where the script is being run at server start up, and says its runnning in the resource management screen of TXAdmin, but the script is not working. After restarting the script after server startup, the script does work, but it takes a restart of the script to get it working after server startup.
Just curious if you have any idea why, if not i can look into the code, to try to be of some assistance.
-Edit-
We were loading Renzu_shops before Ox_Lib, The load order was wrong, that again was my fault, Sorry.
For anyone else, Load this script after Ox_lib if your having the issue above.
Hey bro! I’m currently using your shops script, and I’m a noob dev so sorry if I ask the wrong questions but
My main issue atm is that the NPCs/locals in the on-demand selling of shops just stand in front of the cashier without any orders. After killing them, that’s the only time their orders pop up (1x milk, 1x beer etc)
Could you help me figure that out? This only happens to the general store for some reason, but for Ammunation and other store types they order just fine.
Hey Renzu, Love the script! I do have a question though. I have a lot of “Undefined” items in shops. I do have others even custom items that do show the item name, but others don’t and I’m not really understanding what the difference between the items are, any input?
yes, i use ox_iventory and I only get undefined if an item is in the shop that is not registered in the inventory. Not sure if the same logic applies to qb
Thanks for the input, appreciate it. I did compare the items that are working and the undefined items in the items.lua and they seem to be the same other than names, not really seeing any difference which kind of has me stumped.
One of the items is actually part of qb-core (weapon_fireextinguisher) and still shows undefined.
Edit:
Yeah qb-weapons has them all too…
All the default weapons are showing undefined as well, I tried weapon_bat just now and same thing. Maybe an issue with adding weapons into the shop and it not reading the item for some reason?