Config
data/config.lua
This file contains general resource configuration.
local config = {
fast_save = false, -- should data be saved immediately after changes?
save_interval = 5000, -- save interval if not using fast_save.
offset_time = true, -- offset down_time and death_time with players downed/death time.
down_time = 180, -- downed time in seconds. can be overwritten with skins.
death_time = 120, -- death time in seconds. can be overwritten with skins.
wasted_time = 30, -- wasted time in seconds. can be overwritten with skins.
can_start_new_life = true, -- can the player start a new life after down time is over?
force_new_life = false, -- should the player automatically be forced into a new life after down time + death_time is over?
min_field_medics_to_skip = 3, -- min field medics online to allow skip death time and start a new life.
min_hospital_staff_to_skip = 3, -- min hospital staff online to allow skip death time and start a new life.
dying_while_downed_kills = true, -- does dying while downed kill the player?
warp_new_life_to_hospital = true, -- should the player be warped to the hospital on new life?
perform_bed_animation = true, -- perform bed animation sequence on new life?
await_bed_time = 0, -- seconds to wait before the player can get out of bed on new life animation.
injuries_are_deadly = true, -- can injuries kill the player?
new_life_on_failed_treatment = true, -- should the player be forced into a new life if ems treatment goes wrong?
retain_inventory_on_new_life = false, -- retain inventory on new life. can be overwritten with skins.
retain_injuries_on_new_life = true, -- retain injuries on new life. can be overwritten with skins.
retain_memory_on_new_life = false, -- retain memory on new life. can be overwritten with skins.
down_treatment_price = 500, -- cost of reviving at hospital when down. can be overwritten in hospital definition.
dead_treatment_price = 500, -- cost of reviving at hospital when dead. can be overwritten in hospital definition.
can_revive_from_downed_at_checkin = true, -- can the player be revived from down at checkin? can be overwritten in hospital definition.
can_revive_from_death_at_checkin = true, -- can the player be revived from death at checkin? can be overwritten in hospital definition.
can_revive_without_money = true, -- can the player be revived without money? can be overwritten in hospital definition.
overdraw_revive_money = false, -- send account into negative if required to revive player? can be overwritten in hospital definition.
overdraw_revive_account = "bank", -- account to overdraw from if required to revive player. can be overwritten in hospital definition.
revive_accounts = { "cash", "bank" }, -- accounts to use for reviving player. can be overwritten in hospital definition.
medkit_item_name = "firstaid",
remove_medkit_on_use = false,
account_icons = {
bank = "fa-solid fa-credit-card",
cash = "fa-solid fa-money-bill",
},
use_statebags = true,
statebag_values = {
[0] = "alive",
[1] = "downed",
[2] = "dead",
[3] = "wasted"
},
}
_ENV.Config = config
Last updated