Open alex070609 opened 1 year ago
Leaving durability/degradation out of the discussion for now.
Groups are already a thing and you cannot access the crafting table if you don't have the required group(s); works the same as stashes and shops. ESX jobs are converted into the group structure.
for example (as stash or shop ...) :
groups = {['mechanic'] = 0},
No need to look too far @alex070609 ...
ok thanks, and for the "reversed" durability ? what do you think ?
Is your feature request related to a problem? Please describe. I would like to enquire a request because the crafting table is frustating regarding items and jobs
Describe the solution you'd like I Would love to see a job specific use to see the craftings tables to prevent peoples not having the correct job from using it
Also it'll be great to be able to "inverse" the usage of the Durabitity setting so that an item can "expire" as seen on the item.lua using the "degrade" metadata as if for exemple meat is below 20% then you cannot use it anymore for crafting if possible ? and if crafted the item that is used as ingredients can be removed even if a designated durability is used maybed zith a true/false check ?
Describe alternatives you've considered Maybe if using ESX check if the framework is related and if the job under ESX.PlayerData.job.name is "ok" with a "job" setting in data/crafting.lua
example i did on my server
data/crafting.lua
modules/crafting/client.lua, line 101