Server scan
Run optimizer scan in the server console, then open the printed report address in a browser (the address and port players connect to, then /rm_optimizer/?key=...). Staff with the command.optimizer ace can also open it in game with /optimizer.
What it finds
Assets: every streamed file of every started resource, biggest first, with the memory it costs. Texture dictionaries with textures over 2048 px, textures without mipmaps and uncompressed textures, with how much a fix saves.
Models (FiveM): the triangle count of every streamed car, weapon, ped and prop, measured against the heaviest model GTA V itself ships of the same kind, and every car that has no lower detail levels. A poly count cannot be lowered by a script, so these are reported for you to replace or send back to the author. The limits: car 190,000 triangles, weapon 20,000, one ped component 23,000, prop 72,000; twice that is critical.
Duplicates: the same file in two resources, and one file name streamed by two resources with different contents.
Lua: loops that never wait,
Wait(0)loops calling costly natives, network events every frame, threads or handlers created inside a loop, database calls in loops.Combine (FiveM): five or more resources that are only cars (or only weapons) can be merged into one, written to
[rm_combined]. The originals are never touched.
Fix textures
Fix textures on the report (or optimizer fix safe|balanced|strict in the console) rewrites the texture dictionaries that have a texture finding: oversized textures are shrunk, missing mipmaps are built, uncompressed textures are compressed. A file is only replaced when the result is smaller, and the original goes to backups/<time>/ first. optimizer undo puts the last backup back.
Restart the server afterwards so players download the new files.
What is here?
In game, What is here? on the /optimizer window counts every object within 150 m by model and names the resource that streams it, heaviest first. Buildings placed by map files are not visible to scripts and are not listed.