From e60593591bc3a08928ed8c465feaab289c0882a6 Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 17 Jun 2025 17:45:39 +0200 Subject: [PATCH 1/4] consum --- .../[inventory]/pickle_consumables/config.lua | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/resources/[inventory]/pickle_consumables/config.lua b/resources/[inventory]/pickle_consumables/config.lua index 6a1d699f3..3be6ad6ea 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. @@ -119,7 +119,7 @@ Config.Options = { -- Item Options } Config.MaxValues = { -- If you want a custom maximum for a value, change -1 to the number. This is already handled in the bridge. - hunger = -1, + hunger = 40, thirst = -1, stress = -1, armor = -1, @@ -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) }, From f9fb005c6ed85f80edffdc4a85e59e2d4efa2b8f Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 17 Jun 2025 17:54:40 +0200 Subject: [PATCH 2/4] Update server.lua --- resources/[inventory]/pickle_consumables/bridge/qb/server.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua index dd6d2d180..a9f73f407 100644 --- a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua +++ b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua @@ -58,6 +58,8 @@ 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) + TriggerClientEvent('hud:client:UpdateStress', source, xPlayer.PlayerData.metadata.stress) else Config.ExternalStatus(source, k, v) end From 6140d9b050a9fd9e7b1a4c15f768591dbda5fe9c Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 17 Jun 2025 18:10:31 +0200 Subject: [PATCH 3/4] Update server.lua --- resources/[inventory]/pickle_consumables/bridge/qb/server.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua index a9f73f407..dc261de98 100644 --- a/resources/[inventory]/pickle_consumables/bridge/qb/server.lua +++ b/resources/[inventory]/pickle_consumables/bridge/qb/server.lua @@ -59,7 +59,6 @@ function ExecuteStatus(source, statuses) end xPlayer.Functions.SetMetaData(k, xPlayer.PlayerData.metadata[k]) TriggerClientEvent('hud:client:UpdateNeeds', source, xPlayer.PlayerData.metadata.hunger, xPlayer.PlayerData.metadata.thirst) - TriggerClientEvent('hud:client:UpdateStress', source, xPlayer.PlayerData.metadata.stress) else Config.ExternalStatus(source, k, v) end From 0088f1f64abfeee6df7b1efe2f298ff8ea19984d Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 17 Jun 2025 18:12:31 +0200 Subject: [PATCH 4/4] Update config.lua --- resources/[inventory]/pickle_consumables/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/[inventory]/pickle_consumables/config.lua b/resources/[inventory]/pickle_consumables/config.lua index 3be6ad6ea..1f653686e 100644 --- a/resources/[inventory]/pickle_consumables/config.lua +++ b/resources/[inventory]/pickle_consumables/config.lua @@ -119,7 +119,7 @@ Config.Options = { -- Item Options } Config.MaxValues = { -- If you want a custom maximum for a value, change -1 to the number. This is already handled in the bridge. - hunger = 40, + hunger = -1, thirst = -1, stress = -1, armor = -1,