Metabolic/stress system
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
Last updated