> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/server-optimizer-fivem-and-redm/configuration/cfg-lua.md).

# cfg lua

`cfg.lua` is open and editable. Everything is under `cfg.boost`:

| Setting           | Default | What it does                                                                          |
| ----------------- | ------- | ------------------------------------------------------------------------------------- |
| `command`         | `'fps'` | Opens the FPS menu.                                                                   |
| `key`             | `'F10'` | Default key on FiveM; players can rebind it. RedM uses the command only.              |
| `preset`          | `'off'` | What a new player starts on: `off`, `quality`, `balanced`, `low`, `potato` or `auto`. |
| `counter`         | `false` | Show the FPS counter to new players.                                                  |
| `minLod`          | `0.5`   | Lowest draw distance a player can pick (1.0 is normal).                               |
| `minViewDistance` | `800`   | Lowest view distance in metres.                                                       |
| `combatSafe`      | `true`  | Full draw distance while aiming or shooting.                                          |
| `population`      | `true`  | `false` hides the pedestrian and traffic sliders.                                     |
| `minPopulation`   | `0.3`   | Lowest pedestrian and traffic density a player can pick.                              |
| `disabled`        | `{}`    | Options players can't touch, for example `{ 'horizon', 'fog' }`.                      |

{% hint style="info" %}
With OneSync the player closest to an area owns the ambient peds and cars there, so one player's low population setting also thins them out for players right next to them. Raise `minPopulation` or set `population = false` if that matters on your server.
{% endhint %}

Option ids for `disabled`: `lod`, `view`, `entityLod`, `horizon`, `distantCars`, `shadowRange`, `cascades`, `shadowTracker`, `shadowFilter`, `lightShadows`, `reflections`, `water`, `distantLights`, `particles`, `decals`, `fog`, `peds`, `traffic`, `animals`, `lowVram`, `auto`, `driving`, `interiors`, `counter`.
