🚬 pn-smoking

An innovative FiveM smoking system with automatic prop consumption for a more realistic experience.

Installation

ox_inventory

To install this script while having ox_inventoryarrow-up-right you have to add this code to your items.lua file.

    ["cigarette"] = {
        label = "Cigarette",
        server = {
            export = "pn-smoking.startSmoking"
        }
    },
    ['joint'] = {
        label = 'Joint',
        server = {
            export = "pn-smoking.startSmoking"
        }
    },
    ["lighter"] = {
        label = "Lighter",
        server = {
            export = "pn-smoking.startSmoking"
        },
        consume = 1
    }

Other inventories

If you use any other inventory that works with your framework, first of all you have to set Config.OxInventory in the config.lua file to false like this:

Then, based on your framework you have to add these lines of code to server/editable.lua file:

ESX

QBCore

Last updated