> 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/readme.md).

# README

{% hint style="warning" %}
**Support**

If something does not work after the installation steps, read [FAQ](https://docs.rainmad.com/resources/server-optimizer-fivem-and-redm/reference/faq.md) first, then open a ticket in our [Discord](https://discord.gg/rainmad) with your server console output.
{% endhint %}

rm\_optimizer does two jobs for a FiveM or RedM server:

1. **An FPS menu for every player** (`/fps`). Presets from Quality to Potato, an Auto mode that holds a target frame rate, a live frame time graph and a built in benchmark that measures what each change really gives on that player's PC.
2. **A server scan for the owner.** It finds what makes the server heavy: oversized streamed assets, texture dictionaries without mipmaps or far bigger than they need to be, models with far more triangles than anything the game ships, duplicate files, and Lua loops that run every frame. Texture problems can be fixed with one click, with a backup and undo.

## Features

* Draw distance, view distance and ped and vehicle detail, including values below what the game's own menu allows.
* Shadow distance, shadow layers, cheaper shadow filtering and no shadows from street lamps and headlights.
* Cheaper reflections and no water reflections, done the way Rockstar does it in their own heavy missions.
* Distant lights, distant traffic, the far horizon, fog volumes, bullet holes and effect distance.
* Ambient pedestrians and traffic (townsfolk, wagons and wildlife on RedM), with a floor you set.
* Low video memory mode.
* Auto mode, lighter settings while moving fast or inside buildings, and full draw distance while fighting so nobody sees through cover.
* An on screen FPS counter.
* The owner's scan: a report page in your browser and in game (`/optimizer`), with a one click texture fix.
* FiveM and RedM in one resource. Standalone, no framework needed.

## What it does not do

* It cannot change the game's own graphics menu settings (texture quality, MSAA, grass quality). Players still set those in the pause menu; the FPS menu works on top of them.
* Per resource CPU cost is not exposed to scripts. Use `resmon 1` in F8 for that.
