Addiction
Frameworks: VORP
Initialization
local AddictAPI = exports['twh_addiction'].AddictionAPI()Usage
local addictCounter = AddictAPI.getCounter(addiction)
local allAddictCounter = AddictAPI.getAllCounter()
local onAddiction = AddictAPI.getOnAddiction(addiction)
local isOnDrug = AddictAPI.getIsOnDrug() -- returns the current drugAddictAPI.setAddiction(addiction) -- set counter to config amount needed
AddictAPI.removeAddiction(addiction) -- set counter to 0
AddictAPI.removeIsOnDrug(addiction) -- remove drug effect
AddictAPI.setIsOnDrug(addiction) -- trigger drug effect
AddictAPI.increaseAddictionCounter(addiction,amount) -- increase consumed counter with specific amount
AddictAPI.itemUsed(addiction,amount) -- if you config other items you can use this to define what addiction should be increasedAdmin Commands
Instruction manual
Installation
Usage
Last updated