Skip to content

Configuration

Configuration

config.luasystem의 작동 방식을 정의합니다. 각 물질의 효과는 에디터와 데이터베이스에 저장됩니다.

General

config.lua
Config.Debug = false
Config.Inventory = 'auto'
Config.Target = 'auto'
Config.ToleranceDamping = true

ToleranceDamping은 중독 내성 감소 루프입니다. 캐릭터의 내성이 높아질수록 느끼는 취기(High)는 약해집니다.

Access

Config.Creator는 에디터와 관리자 패널을 열 수 있는 권한을 결정합니다. ACE (bupa.substances), ACE 대체 권한, 프레임워크 관리자 그룹, 그리고 독립형 개발 서버를 위한 개발자 식별자 목록을 지원합니다. Config.Admin.CommandConfig.Admin.Refresh는 패널 명령어와 새로고침 주기를 설정합니다.

Overdose and mixing

config.lua
Config.Overdose = {
    Enabled = true,
    Threshold = 100,
    BleedOut = 120,
    Hospital = vec4(298.6, -584.7, 43.26, 68.0),
    AllowRescue = true,
    MixMultiplier = 1.5,
    DangerousMixes = {
        { 'opioid', 'depressant', 2.2 },
        { 'stimulant', 'opioid', 2.0 },
        { 'depressant', 'stimulant', 1.8 },
    },
}

Restrictions

config.lua
Config.Restrict = {
    BlacklistJobs = { 'police', 'sheriff' },
    SafeZones = {
        -- { coords = vec3(441.0, -982.0, 30.7), radius = 80.0 },
    },
}

블랙리스트에 등록된 직업은 약물을 전혀 사용할 수 없으며, 세이프존 안에서는 약물 사용이 거부됩니다.

Drug test and rehab

Config.DrugTest/drugtest 명령어를 사용할 수 있는 직업과 대상과의 최대 거리를 설정합니다. Config.Rehab은 클리닉 위치를 지정합니다. Rehab clinic 페이지를 참조하세요.

Withdrawal

config.lua
Config.Withdrawal = {
    Enabled = true,
    RunsOffline = true,
    OfflineCap = 12,
    ClearOnDeath = false,
    PauseWhileTreated = true,
}

Interface and sounds

Config.UI는 포인트 컬러, HUD 표시 여부, 위기 경고, 그리고 이름을 변경한 포크(fork) 버전을 위한 인벤토리 이미지 경로를 설정합니다. Config.Sounds는 인터페이스 사운드와 볼륨을 토글합니다. 별도로 설치해야 할 오디오 뱅크는 없습니다.

Webhook

config.lua
Config.Webhook = {
    Enabled  = false,
    Url      = '',
    Log = {
        Use = false, Addicted = true, Overdose = true, Death = true,
        Treated = true, Edited = true, Admin = true, Rehab = true,
    },
}

Admin은 기록 초기화, 투여 및 부활 로그를 남기고, Rehab은 치료소 체크인 시 제거된 항목과 재발한 항목을 기록합니다.

Exports

server-side
exports['bupa-addictioncreator']:GetAddictions(source)
exports['bupa-addictioncreator']:IsAddicted(source, 'meth_syringe')
exports['bupa-addictioncreator']:ClearAddictions(source)