How do I make an item break using ox_inventory for qbcore?

Hello everyone, I have a doubt. I want the phone item below, when reaching durability 0, the phone item is replaced by the brokenphone, how can I do this feature? Can anyone help me? I carried out some tests but all were unsuccessful.

	['phone'] = {
		label = 'Celular',
		weight = 800,
		stack = true,
		degrade = 5,
		consume = 0
	},  

    ['brokenphone'] = {
        label = 'Celular Quebrado',
        weight = 200,
        stack = true,
        close = true,
        degrade = 11520,
        description = "Cara, como vocĂȘ achou isto?..."
    },

Thank you very much for your help in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.