diff --git a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua index dd6d2d180..dc261de98 100644 --- a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua +++ b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua @@ -58,6 +58,7 @@ function ExecuteStatus(source, statuses) xPlayer.PlayerData.metadata[k] = (value > 0 and value or 0) end xPlayer.Functions.SetMetaData(k, xPlayer.PlayerData.metadata[k]) + TriggerClientEvent('hud:client:UpdateNeeds', source, xPlayer.PlayerData.metadata.hunger, xPlayer.PlayerData.metadata.thirst) else Config.ExternalStatus(source, k, v) end diff --git a/resources/[inventory]/pickle_consumables/config.lua b/resources/[inventory]/pickle_consumables/config.lua index 6a1d699f3..1f653686e 100644 --- a/resources/[inventory]/pickle_consumables/config.lua +++ b/resources/[inventory]/pickle_consumables/config.lua @@ -2,7 +2,7 @@ Config = {} Config.Debug = true -Config.Language = "en" -- Language to use. +Config.Language = "de" -- Language to use. Config.RenderDistance = 100.0 -- Scenario display Radius. @@ -127,29 +127,6 @@ Config.MaxValues = { -- If you want a custom maximum for a value, change -1 to t } Config.Items = { - ["cigarette"] = { - uses = 3, - prop = { model = `prop_cigar_03`, boneId = 28422, offset = vec3(-0.05, 0.0, 0.0), rotation = vec3(0.0, 0.0, 0.0) }, - idle = { dict = "amb@world_human_aa_smoke@male@base", anim = "base", time = 2000, params = { nil, nil, nil, 49 } }, - animation = { dict = "amb@world_human_aa_smoke@male@idle_a", anim = "idle_b", time = 2000, params = { nil, nil, nil, 49 } }, - effect = { name = "high", time = 5000, intensity = 1.0 }, - status = { -- Per use. Values are based on percentage of the max value of the status. If below zero, it will remove the status percentage. - hunger = 0, - thirst = 20, - stress = 0, - armor = 0, - alcohol = 0, - stamina = 0, - } - }, - ["cigbox"] = { - uses = 3, - prop = { model = `v_res_tt_cigs01`, boneId = 28422, offset = vec3(0.0476, 0.02817, -0.0104), rotation = vec3(0.0, 0.0, 0.0) }, - animation = { dict = "mp_arresting", anim = "a_uncuff", time = 2000, params = { nil, nil, nil, 49 } }, - rewards = { -- Per use. Types include: "item", "money" - {type = "item", name = "cigarette", amount = 1}, - }, - }, ["hamburger"] = { uses = 3, prop = { model = `prop_cs_burger_01`, boneId = 18905, offset = vec3(0.1114, 0.0389, 0.0497), rotation = vec3(160.2057, 77.8283, -7.5425) },