forked from Simnation/Main
Merge branch 'master' of https://git.evolution-state-life.de/Evolution-State-Life/Main
This commit is contained in:
commit
b02d33e7a1
2 changed files with 2 additions and 24 deletions
|
@ -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
|
||||
|
|
|
@ -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) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue