# Metabolic/stress system

You can finish the functions yourself during the coating process and easily connect it to your stress system, etc.

```lua
function metabolismAdd(effect,itemName,leftPuff,tobaccoType)      
    if Config.Debug then 
        print('metabolismAdd',effect,itemName,leftPuff,tobaccoType)
    end

    -- Example 

    -- if leftPuff < 1 then
        -- TriggerClientEvent('hud:client:RelieveStress',src, math.random(20, 40))
    -- end

    -- OR 

    -- TriggerEvent('hud:server:RelieveStress', math.random(20, 40))

    -- tobaccoType = is the name of the item that was used as fuel, if it is an item that does not have fuel, it goes nil

    -- extra docs: http://www.d-labs.site/docs/paid-scripts/smoking
end

```
