# Adding a Global Setting

Global Settings simplifies your experience by integrating Boolean-based settings management directly into the main interface, partially eliminating the need for additional tabs.\
![](https://2943218207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRtWRcExHV8IBJHoV9bx%2Fuploads%2F5IUSwRLqwA5kuwC798u6%2Fimage.png?alt=media\&token=4b3161eb-07e4-4b80-a934-9a5f6ee90717)

{% hint style="info" %}
You can access the global settings menu by pressing the "Globe" Icon beside the title bar.<img src="https://2943218207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhRtWRcExHV8IBJHoV9bx%2Fuploads%2FgtysEAEPOGLkjq7aADnA%2Fimage.png?alt=media&#x26;token=96b9f1c9-5e4c-4e39-a57d-c71ccf4802b7" alt="" data-size="original">
{% endhint %}

```lua
local Global_Setting = Window:GlobalSetting({
  Name <string>
  Default <boolean>
  Callback <function(): void>
})
```

Example

```lua
local Global_Setting = Window:GlobalSetting({
    Name = "Moderator Join Alerts",
    Default = false,
    Callback = function(State)
        print("Moderator Join Alerts " .. (State and "Enabled" or "Disabled"))
    end,
})
```
