# Configuration

```
Config = {}

-- Chat message after dice settle (false by default - avoids chat spam complaints)
Config.ChatEnabled = false

-- Per-player UI toggle default (if player has no saved preference yet)
Config.DiceUiDefaultEnabled = true

-- Anti-spam cooldown (server-side)
Config.CooldownMs = 4000

-- Roll/visual timings (ms)
Config.RollMs = 2200
Config.ShowMs = 6500

-- Dice limits
Config.MaxDice = 6
Config.MaxSides = 100

-- Group roll radius limits (in meters)
-- I advise keeping Min at least 10 to avoid excessive network load
-- And Max at most 40 to avoid performance issues on lower-end clients
Config.GroupRadius = {
  Min = 10,
  Max = 40
}

-- Group roll default radius
Config.DefaultGroupRadius = 10

-- UI above head settings (Don't change)
Config.UiHeadBone = 31086  -- SKEL_Head
Config.UiHeadHeight = 0.55 -- how high above head
Config.UiScale = 0.9       -- size multiplier for NUI dice

-- Animation played on the roller (client-side)
Config.RollAnim = {
  Dict = 'anim@mp_player_intcelebrationmale@wank',
  Name = 'wank',
  DurationMs = 1000,
  Flag = 49
}
```


---

# 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://docs.mdevelopment.xyz/m-development-docs/documentation/m-rollin-dice/configuration.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.
