diff --git a/client/consumables.lua b/client/consumables.lua index 480a759..62a16ee 100644 --- a/client/consumables.lua +++ b/client/consumables.lua @@ -1,6 +1,7 @@ -RegisterNetEvent('md-drugs:client:consumedrugs', function(time, effect, anim, progresstext, status, item) + + +lib.callback.register('md-drugs:client:consumedrugs', function(time, effect, anim, progresstext, status, item) if not progressbar(progresstext .. GetLabel(item).. "!", time, anim ) then return end - TriggerServerEvent('md-drugs:server:removeconsum', item) for k, v in pairs (status) do if k == 'health' then local cur = GetEntityHealth(PlayerPedId()) @@ -17,7 +18,9 @@ RegisterNetEvent('md-drugs:client:consumedrugs', function(time, effect, anim, pr TriggerEvent('md-drugs:client:recievebuff', k, v) end end - TriggerEvent('evidence:client:SetStatus', 'widepupils', 200) if effect == "alien" then AlienEffect() elseif effect == "ecstacy" then EcstasyEffect() elseif effect == "meth" then MethBagEffect() elseif effect == "coke" then CokeBaggyEffect() elseif effect == "trevor" then TrevorEffect() else end if status == nil then return end + TriggerEvent('evidence:client:SetStatus', 'widepupils', 200) + TriggerEvent('md-drugs:client:applyFeeling', effect) + return true end) RegisterNetEvent('md-drugs:client:recievebuff', function(type, amount) @@ -41,3 +44,19 @@ RegisterNetEvent('md-drugs:client:recievebuff', function(type, amount) SetWeaponDamageModifier(GetHashKey("WEAPON_UNARMED"), 1.0) end end) + +RegisterNetEvent('md-drugs:client:applyFeeling', function(effect) + if effect == "alien" then + AlienEffect() + elseif effect == "ecstacy" then + EcstasyEffect() + elseif effect == "meth" then + MethBagEffect() + elseif effect == "coke" then + CokeBaggyEffect() + elseif effect == "trevor" then + TrevorEffect() + else + + end +end) \ No newline at end of file diff --git a/server/consumables.lua b/server/consumables.lua index ceca025..f05135d 100644 --- a/server/consumables.lua +++ b/server/consumables.lua @@ -1,6 +1,148 @@ local QBCore = exports['qb-core']:GetCoreObject() +--[[ + effect options + alien + ecstacy + meth + coke + trevor + none +]] -for k, v in pairs(Consumables.Items) do +--[[ +add = {} +health = number -- amount of health to give +stress = number -- number of stress to give +speed = number -- number of seconds you a fast boi +hunger = number -- number of hunger to fill +thirst = number -- same shit +strength = number -- how long you are strong boi + +]] +local Consume = { + -- meth +methbags = { time = 4000, effect = 'meth', anim = "smoke", progressbartext = "Injesting", + add = {health = -20, stress = -10, speed = 40, strength = 10, thirst = -30}}, +cokebaggy = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, +cokebaggystagetwo = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, +cokebaggystagethree = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, +-- heroin +heroin_ready = { anim = 'shootup', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +heroin_readystagetwo = { anim = 'shootup', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +heroin_readystagethree = { anim = 'shootup', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +-- crack +baggedcracked = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, +baggedcrackedstagetwo = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, +baggedcrackedstagethree = { anim = 'smell', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +-- xtc +white_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_playboys2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_playboys2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10, hunger = 10 }}, +red_playboys2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_playboy2s = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +white_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +blue_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +red_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +orange_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, +-- weed +specialbrownie = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, +specialcookie = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, +specialchocolate = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, +specialmuffin = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, +blunt = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, +dextroblunts = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, +leanblunts = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, +chewyblunt = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, +-- lean +cupofdextro = { anim = 'cup', effect = 'alien', add = { stress = -10 }}, +cupoflean = { anim = 'cup', effect = 'alien', add = { stress = -10 }}, +-- lsd +smiley_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, +wildcherry_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, +yinyang_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, +pineapple_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, +bart_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, +gratefuldead_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, + +-- pharma +vicodin = { anim = 'pill', effect = 'none', add = { health = 20 }}, +adderal = { anim = 'pill', effect = 'none', add = { stress = -20 }}, +morphine = { anim = 'pill', effect = 'none', add = { health = 40 }}, +xanax = { anim = 'pill', effect = 'none', add = { stress = -40 }}, +} + +for k, v in pairs(Consume) do CUI(k, function(source, item) if not Itemcheck(source, k, 1) then return end local time = v.time or Consumables.defaulttime @@ -8,25 +150,24 @@ for k, v in pairs(Consumables.Items) do local anim = v.anim or Consumables.defaultanim local progressbartext = v.progressbartext or Consumables.defaultprogresstext local add = v.add or {hunger = 0} - TriggerClientEvent("md-drugs:client:consumedrugs", source, time, effect, anim, progressbartext, add, k) + local done = lib.callback.await('md-drugs:client:consumedrugs', source, time, effect, anim, progressbartext, add, k) + if done then + RemoveItem(source, k, 1) + end end) end -RegisterNetEvent('md-drugs:server:removeconsum', function(item) - RemoveItem(source,item, 1) - Log(GetName(source) .. ' Got High With ' .. item .. '!', 'consuming') -end) - RegisterNetEvent('md-drugs:server:updatestatus', function(stat, statval) local Player = getPlayer(source) + local hunger, thirst = Player.PlayerData.metadata.hunger, Player.PlayerData.metadata.thirst if stat == "thirst" then - local value = Player.PlayerData.metadata.thirst + statval - Player.Functions.SetMetaData('hunger', value) - TriggerClientEvent('hud:client:UpdateNeeds', source, Player.PlayerData.metadata.hunger, value) - elseif stat == "hunger" then - local value = Player.PlayerData.metadata.hunger + statval + local value = thirst + statval Player.Functions.SetMetaData('thirst', value) - TriggerClientEvent('hud:client:UpdateNeeds', source, Player.PlayerData.metadata.thirst, value) + TriggerClientEvent('hud:client:UpdateNeeds', source, hunger, value) + elseif stat == "hunger" then + local value = hunger + statval + Player.Functions.SetMetaData('hunger', value) + TriggerClientEvent('hud:client:UpdateNeeds', source, value, thirst) elseif stat == "stress" then local value = Player.PlayerData.metadata.stress + statval Player.Functions.SetMetaData('stress', value) diff --git a/server/functions.lua b/server/functions.lua index 6c24abb..84a21f6 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -347,7 +347,6 @@ CreateThread(function() end) CreateThread(function() - if not lib.checkDependency('md-drugs', '1.5.0') then print('You Suck') end local url = "https://raw.githubusercontent.com/Mustachedom/md-drugs/main/version.txt" local version = GetResourceMetadata('md-drugs', "version" ) PerformHttpRequest(url, function(err, text, headers) diff --git a/server/xtc.lua b/server/xtc.lua index 19eb48e..57c19aa 100644 --- a/server/xtc.lua +++ b/server/xtc.lua @@ -3,9 +3,9 @@ local QBCore = exports['qb-core']:GetCoreObject() local activePresses = {} RegisterServerEvent('md-drugs:server:stealisosafrole', function(num) local src = source - local Player = getPlayer(src) if not checkLoc(src, 'isosafrole',num) then return end if AddItem(src, "isosafrole", 1) then + end end) diff --git a/shared/consumables.lua b/shared/consumables.lua index 435a921..9c193d3 100644 --- a/shared/consumables.lua +++ b/shared/consumables.lua @@ -3,145 +3,3 @@ Consumables.defaulttime = 4000 Consumables.defaultanim = 'pflag2' Consumables.defaultprogresstext = 'Consuming ' -- it will always show the label of the item being used after what you put here, make sure to keep the space at the end :) Consumables.defaultstatval = 0 ---[[ - effect options - alien - ecstacy - meth - coke - trevor - none -]] - ---[[ -add = {} -health = number -- amount of health to give -stress = number -- number of stress to give -speed = number -- number of seconds you a fast boi -hunger = number -- number of hunger to fill -thirst = number -- same shit -strength = number -- how long you are strong boi - -]] -Consumables.Items = { - -- meth - methbags = { time = 4000, effect = 'meth', anim = "smoke", progressbartext = "Injesting", - add = {health = -20, stress = -10, speed = 40, strength = 10, thirst = -30}}, - cokebaggy = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, - cokebaggystagetwo = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, - cokebaggystagethree = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, - -- heroin - heroin_ready = { anim = 'shootup', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - heroin_readystagetwo = { anim = 'shootup', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - heroin_readystagethree = { anim = 'shootup', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - -- crack - baggedcracked = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, - baggedcrackedstagetwo = { anim = 'smell', time = 1000, effect = 'coke', add = { stress = -10 }}, - baggedcrackedstagethree = { anim = 'smell', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - -- xtc - white_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_playboys2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_playboys2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_playboys2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_playboys = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_playboy2s = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_playboys3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_playboys4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_aliens = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_aliens2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_aliens3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_aliens4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_pl = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_pl2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_pl3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_pl4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_trolls = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_trolls2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_trolls3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_trolls4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - white_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - blue_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - red_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_cats = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_cats2 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_cats3 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - orange_cats4 = { anim = 'edible', time = 1000, effect = 'ecstacy', add = { stress = -10 }}, - -- weed - specialbrownie = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, - specialcookie = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, - specialchocolate = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, - specialmuffin = { anim = 'edible', effect = 'alien', add = { hunger = 10, stress = -10 }}, - blunt = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, - dextroblunts = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, - leanblunts = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, - chewyblunt = { anim = 'smokeweed', effect = 'alien', add = { stress = -10 }}, - -- lean - cupofdextro = { anim = 'cup', effect = 'alien', add = { stress = -10 }}, - cupoflean = { anim = 'cup', effect = 'alien', add = { stress = -10 }}, - -- lsd - smiley_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, - wildcherry_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, - yinyang_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, - pineapple_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, - bart_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, - gratefuldead_tabs = { anim = 'edible', effect = 'trevor', add = { stress = -10 }}, - - -- pharma - vicodin = { anim = 'pill', effect = 'none', add = { health = 20 }}, - adderal = { anim = 'pill', effect = 'none', add = { stress = -20 }}, - morphine = { anim = 'pill', effect = 'none', add = { health = 40 }}, - xanax = { anim = 'pill', effect = 'none', add = { stress = -40 }}, -}