[help] ox_inventory shop limits

Just a quick question with ox inventory shops. Is it possible to put a hourly limit on specific items such as ammunition. Example: character Tommy has gun license and purchases his max limit of 20 pistol bullets. Tommy is now put on a cooldown of 12 hours until he is able to purchase 20 more pistol bullets. If said player logs out of Tommy and into his other char Jenny he will still be allowed to purchase the 12 hourly 20 pistol bullets. If someone could point me in the right direction so that I may learn how to do so I’d appreciate it.

Yes, this is definitely possible. There are several ways to approach this feature. You would need some knowledge in Lua and maybe SQL but this depends on your method of doing it. Do you have an experience in these?

Very basic starter knowledge. I’m currently in the midst of learning lua and fivem more specifically. I have history with SQL but again is limited. If this is something I will need a broader understanding of before be able to do so then I’ll come back once I am capable of understanding more deeply. Thank you for your response!

Well I think even with a basic understanding you can achieve this. It may take a little longer and you may need to google a lot but that’s how it works. If you need any assistance, feel free to shoot me a message. Goodluck!

Have you found a solution? I am trying to limit the number of guns that a player can purchase per hour.