# Configurations

The configuration file is as follows:

```lua
Config = {
    -- Title shown on the deathscreen UI
    title = 'Wasted',

    -- Description shown to the player when knocked out
    description = 'You\'ve been knocked out. Please wait for emergency medical personnel.',

    -- Message shown after successfully calling for medical help
    notifiedText = 'Medical services have been notified.',

    -- Button prompt instructions for calling a medic
    callGuide = {
        beforeKey = 'Hold',         -- Text before the button name
        afterKey = 'to request medical assistance.'  -- Text after the button name
    },

    -- Button prompt instructions for respawning
    respawnGuide = {
        beforeKey = 'Hold',         -- Text before the button name
        afterKey = 'to respawn'     -- Text after the button name
    },

    -- Whether players can call for a medic (true/false)
    callForMedic = true,

    -- Whether the last stand state with the timer should activate (true/false)
    deathTimer = true,

    -- Use a dark gradient background for the deathscreen UI (true/false)
    backgroundGradient = true,

    -- Key to press and hold to respawn (e.g., 'e', 'g')
    respawnButton = 'e',

    -- Key to press and hold to call for medical assistance
    callButton = 'g',

    -- Time in seconds the player must hold the respawn key
    respawnHoldTime = 5,

    -- Time in seconds the player must hold the call for medic key
    callHoldTime = 5,

    -- Total time in seconds before enabling respawn button
    deathTime = 300,  -- 300 seconds = 5 minutes

    -- Color scheme for the deathscreen UI (Use color hex)
    colors = {
        primary = '#cde6ff',   -- Primary color
        onPrimary = '#212529', -- Text color that appears on the primary color
        light = '#cde6ff',     -- Light color for texts
        dark = '#212529'       -- Dark color for the gradient background
    },
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ayccoes-assets.gitbook.io/ayccoes-assets/ayc-deathscreen/configurations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
