-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Consumable Logic #53
Conversation
Maybe we should have a dedicated script for consumables? Or with core? |
It seems to me the proper place for items is in ox_inventory data/items.lua |
But you still the required event that you manage consumables, in my pr you can remove the createuseable loop, in items.lua you declare the event name, and with few changes with my commit that can be used as a handler |
I'm not sure that I'm following you. What handling is needed for these items that ox_inventory doesn't have? Thirst/Hunger/Stress can be set via the status field https://github.com/overextended/ox_inventory/blob/main/modules/bridge/qb/client.lua#L38 |
ISSUES
This is where my commit comes in place, it acts as a wrapper for items use and fix both of the above issues POINT NOT TO USE MY COMMIT
|
We'll keep that in mind. |
This PR changes on how the consumable works, its a very messy thing to work and people ingenerally make a mess within code while doing it.
This wrapper will improve the efficiency of consumables, remove all possible glitches and help devs to add item easily to consumables
The consumables.md potrays how to add items and all the feautures