> For the complete documentation index, see [llms.txt](https://moon-scripts-3.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moon-scripts-3.gitbook.io/docs/ms_deathtimeout/configuration.md).

# Configuration

### config.lua:

```lua
MS = {}

MS.ESXSettings = {
    new = false,

    -- New Export
    resName = 'es_extended',

    -- Old Event
    event = 'esx:getSharedObject',
}

-- Death / Revive Event (client)
MS.Event = 'esx_ambulancejob:revive'

-- UI Text
MS.TranslationTitle = 'DU BIST'
MS.TranslationText = 'KAMPFUNFÄHIG'

-- Timeout in Sekunden / Timeout in seconds
MS.TimeoutTime = 180

-- Nach Quit speichern (oxmysql) / Saving timeout after quit (oxmysql)
MS.UseSQL = true

-- Humpel Animation verwenden / Use limp animation
MS.UseLimp = true

MS.Limp = {
    clipset = 'move_m@injured',
}

-- Jobs ohne Deathtimeout / Jobs without deathtimeout
MS.WhitelistJobs = {
    enable = false,
    jobs = {
        'police',
        'ambulance',
    },
}

-- Admin System
MS.AdminSystem = true

MS.AdminTeam = {
    'superadmin',
    'admin',
}

MS.AdminCommand = {
    giveDeathtime = 'setdeathtime',     -- /setdeathtime [id] [seconds]
    removeDeathtime = 'removedeathtime', -- /removedeathtime [id]
}

MS.Locale = { -- de
    start = 'Du bist für %s Sekunden kampfunfähig!',
    stop = 'Du bist jetzt nicht mehr kampfunfähig!',
    adminGive = 'Deathtimeout vergeben.',
    adminRemove = 'Deathtimeout entfernt.',
    noPerms = 'Keine Berechtigung!',
    noId = 'Spieler nicht gefunden!',
}

-- MS.Locale = { -- en
--     start = 'You are incapacitated for %s seconds!',
--     stop = 'You are no longer incapacitated!',
--     adminGive = 'Deathtimeout granted.',
--     adminRemove = 'Deathtimeout removed.',
--     noPerms = 'No permission!',
--     noId = 'Player not found!',
-- }

MS.DisableControlAction = function(ped)
    DisablePlayerFiring(PlayerId(), true)

    DisableControlAction(0, 24, true)  -- Attack (LMB)
    DisableControlAction(0, 25, true)  -- Aim (RMB)
    DisableControlAction(0, 37, true)  -- Weapon wheel
    DisableControlAction(0, 45, true)  -- Reload (R)
    DisableControlAction(0, 47, true)  -- Detonate
    DisableControlAction(0, 58, true)  -- Throw grenade
    DisableControlAction(0, 140, true) -- Melee light
    DisableControlAction(0, 141, true) -- Melee heavy
    DisableControlAction(0, 142, true) -- Melee alternate
    DisableControlAction(0, 143, true) -- Melee block
    DisableControlAction(0, 257, true) -- Attack 2
    DisableControlAction(0, 263, true) -- Melee attack 1
    DisableControlAction(0, 264, true) -- Melee attack 2
end

function Notify(msg)
    ESX.ShowNotification(msg)
end

function SNotify(src, msg)
    TriggerClientEvent('esx:showNotification', src, msg)
end
```
