Skip to content
FIVECRATE

FiveM 'Oversized Assets' Warning Explained and Fixed

The FiveM oversized assets warning starts above 16 MiB of physical or virtual memory. See the real FXServer thresholds and how to shrink a YTD file.

Monitor showing a large car texture atlas reduced into compact sheets and a shorter memory bar, with an artist nearby
Author: FiveCrate
Published:
Updated:
Read time: 26 min
Applies to
FiveM Legacy servers and clients (FiveM source code as of November 17, 2026), with notes for FiveM for GTAV Enhanced from the official docs as of November 20, 2026
Last verified

Direct Answer

The FiveM oversized assets warning is the server console line Asset <resource>/<file> uses <size> MiB of physical memory. (or virtual memory). FXServer prints it at resource start when a streamed file’s header declares more than 16 MiB. The line is blue at first, turns yellow above 32 MiB, gains “Oversized assets can and WILL lead to streaming issues” above 48 MiB, and turns red above 64 MiB. The resource still starts; players’ game clients pay the cost. To fix a .ytd, export its textures, delete unused ones, downscale the large ones, rebuild the dictionary, restart the resource and check that the line is gone.

What “uses X MiB of physical memory” means in the FiveM console

Every time a resource starts, FXServer goes through the files in its stream folder and prints one line for each declared size that is too large. The format string in the server source is:

"^%dAsset %s/%s uses %s MiB of %s memory.%s^7\n"

The two %s around the slash are the resource name and the file name. Then come the size with one decimal and the word physical or virtual. ^%d and ^7 are console colour codes. Two lines that a server owner posted on the Cfx.re forum in November 2020 show the result for one addon car:

Asset hellcat/hellcat.yft uses 29.2 MiB of virtual memory.
Asset hellcat/hellcat.ytd uses 172.0 MiB of physical memory. Oversized assets can and WILL lead to streaming issues (models not loading/rendering, commonly known as 'texture loss', 'city bug' or 'streaming isn't great').

The second line carries the wording used from 2020, which is why older forum threads mention ‘texture loss’ and ‘city bug’. Since a source change dated March 5, 2023, the added sentence reads “Oversized assets can and WILL lead to streaming issues (such as models not loading/rendering).” The check behind it is the same.

Five details in the code decide when you see the line:

  • Folder. The server scans stream inside the resource folder, subfolders included.
  • File type. Only files whose header starts with a resource signature are measured. The code accepts three signatures, which its comments label RSC7, RSC8 and RSC\x05, and skips every other file in the folder. In the forum examples the measured files are .ytd texture dictionaries and .yft models.
  • Game. The check runs only when the server’s game is GTA V. RedM servers skip it.
  • Timing. It runs when a resource starts, so ensure and restart print the lines again.
  • Count. Each line adds one to the resource’s warning count. A resource with warnings ends its start with Started resource <name> (1 warning), or (<n> warnings) for more, instead of the plain Started resource <name>. The same counter includes files that the manifest lists but the server could not find.

The check lives in FXServer itself, not in a framework, so it behaves the same on every server, with or without one. The two functions involved, ValidateSize and CheckSizes, contain no Windows-only or Linux-only branch, so the lines and thresholds are the same on both operating systems.

The size is read from the file header, not measured

FXServer does not measure memory use while the server runs. It reads four fields at the start of the file (magic, version, virtPages, physPages), checks the signature and converts the two page fields into byte sizes. Three things follow:

  • Disk size is a different number. In the forum how-to used later in this guide, one .ytd has a compressed size of 11.8 MB and 166.00 MiB of physical memory.
  • Server RAM plays no part. The values are written in the file. A bigger machine does not change them.
  • Players’ clients get the same values. The server puts rscPagesVirtual and rscPagesPhysical into the streamFiles list it builds for each resource.

The real thresholds: 16, 32, 48 and 64 MiB

These are the comparisons in ResourceStreamComponent.cpp, in the function ValidateSize, as they stood on November 17, 2026:

if (size > (64 * 1024 * 1024))
{
    warnColor = 1;
}
else if (size > (32 * 1024 * 1024))
{
    warnColor = 3;
}
else if (size > (16 * 1024 * 1024))
{
    warnColor = 4;
}

The sentence about streaming issues is appended by a separate test, size > (48 * 1024 * 1024). The colour numbers refer to the console’s colour table, where 1 is red, 3 is bright yellow and 4 is blue.

Declared sizeColour codeConsole colourExtra “Oversized assets can and WILL…” sentence
Up to 16 MiBnoneno line is printedno
Above 16 MiB, up to 32 MiB^4blueno
Above 32 MiB, up to 48 MiB^3bright yellowno
Above 48 MiB, up to 64 MiB^3bright yellowyes
Above 64 MiB^1redyes

Four rules from the same function complete the table:

  • The comparisons are strict. A file that declares exactly 16 MiB prints nothing.
  • MiB means 1024 x 1024 bytes. The code divides the byte count by 1024 twice before printing it.
  • Physical and virtual are tested separately. The function ends with checkSize(physSize, "physical"); and checkSize(virtSize, "virtual");, so one file can produce two lines.
  • Nothing is blocked. The function prints and counts. It does not remove the file from the stream list.

Where the “16 MB rule” comes from

Older tutorials describe a hard limit on file size. A forum how-to that was already collecting replies in August 2018 splits vehicle textures to stay under what it calls “the 16Mb streaming limit”, judged by the size of the .ytd file. A tutorial from January 2021 tells readers to get the file “down to Below 16,000kb (16MB)”.

The check in today’s server works differently. It compares declared memory, not file size, and it warns instead of refusing.

A forum table from November 2020, written by the author of the how-to used below, lists the tiers as under 16 MiB (no message), under 32 (blue), under 48 (yellow) and over 64 (red). The code agrees on blue and red. Yellow, however, runs from 32 up to 64 MiB, and 48 MiB only decides whether the extra sentence is added.

“Keep every YTD under 16 MB” is therefore a sound target only when it means 16 MiB of declared memory, which is the point where the console goes quiet.

Physical or virtual memory: which file causes which line

Console lineFiles in the forum examplesWhere to look first
uses <size> MiB of physical memory..ytd texture dictionariesThe textures in the dictionary
uses <size> MiB of virtual memory..yft models, including _hi.yft filesThe model file

The sources behind that split:

  • In the measured example, the texture dictionary is almost all physical memory. The how-to’s author lists one .ytd at 0.05 MiB of virtual and 166.00 MiB of physical memory.
  • The docs tie textures to physical memory. The client variable str_maxVehicleTextureRes limits vehicle texture resolution, and its description says this “can help reduce the incidence of physical memory running out”.
  • Models show up as virtual memory. Forum posts quote goldwing.yft at 16.3 MiB and hellcat.yft at 29.2 MiB of virtual memory.
  • A model can carry textures too. The official assets manual tells creators to “Enable Embedded for each texture if you do not wish to create a texture dictionary”. A model exported that way has no separate .ytd for those textures.

The check is the same for every kind of streamed asset. FiveCrate’s catalogue files them under addon vehicles, MLOs and maps and clothing.

Does the warning hurt the server or the players?

The server is not what suffers. The resource starts and the files are streamed. The check itself arrived in a commit dated August 24, 2020, titled “feat(server): add warning for oversize assets”, whose description gives the reason: “Big streaming assets only lead to end-user issues which end up blamed on an inherent system flaw.”

The player’s game is where the memory is spent, and that memory is finite. The FiveM Legacy client sizes its streaming allocator from the PC’s RAM. On the largest tier its code logs >16 GiB of system RAM, increasing streaming allocator size to 2 GiB, and on the next one >12 GiB of system RAM, increasing streaming allocator size to 1.5 GiB. A PC below both tiers gets neither increase.

Community answers on the Cfx.re forum say the same:

  • A June 2021 reply by the user Linden: “The server isn’t the one being affected by the oversized assets, but rather the clients.”
  • The user nta closed that report with “Not a FiveM bug. The reply given should help resolve these issues”.

The warning text names the symptom: models that do not load or render. A May 2021 thread shows a quick way to test that connection on your own server. An owner with texture loss was told to try “disabling the resources that have assets which throw Physical Memory warnings”, and he confirmed that this fixed it. You can run the same test with stop and the resource name before you spend time on textures.

If players still lose textures after the files named in your console are fixed, continue with the texture loss guide.

How small is small enough

None of the official pages read for this guide gives a size target per asset; the code defines the four warning thresholds and nothing more. The closest thing to a target is a forum answer from October 2020. Asked how much virtual and physical memory is acceptable, the user nta replied: “Around what an equivalent asset type R* made uses in “strmem” on the client.” In other words, compare your addon car with one of Rockstar’s own cars. The strmem section further down shows how.

Two more numbers appear in the sources. Neither is part of the server check:

  • 1024 pixels for vehicle textures. That is the default of the Legacy client’s own cap, str_maxVehicleTextureRes, described further down.
  • Community targets. Linden’s reply calls 16 MiB the “Recommended asset memory usage”, and another forum user gives 1024x1024 as a rule of thumb for liveries.

How to fix an oversized .ytd step by step

The procedure comes from a Cfx.re forum how-to written in November 2020 by the user TigoDEV. It uses two third-party tools, OpenIV and XnResize. Replies in that thread and in related threads supply the cautions in steps 4, 5 and 7. The author states that “All .ytd files can be modified this way”; the thread’s one reported exception, map textures, is covered under Troubleshooting.

Both tools are desktop programs that you click and drag files into. If the server runs on another machine, Windows or Linux, copy the resource to your PC, work on it there and upload the finished file.

  1. List the files to fix. Start the server, or run ensure with the resource name, and copy every Asset line. Note the file name and whether the line says physical or virtual. Work on red lines first. These steps apply to .ytd files; for .yft and .ydr lines see the model section.
  2. Back up the resource. Copy the whole resource folder to a safe place. Several later steps depend on having the original textures.
  3. Open the .ytd in OpenIV and export the textures. Click Export all textures at the bottom left and save them as .dds into an empty folder. Wait until the number of exported files matches the number of textures OpenIV shows. One user in the thread asked how to point OpenIV at a server folder instead of the game folder; the answer was to select “Open Folder” in the drop-down list.
  4. Remove textures the model does not use. Linden’s forum reply describes custom vehicles that carry unused textures in the dictionary, sometimes including the template for making liveries. He removed one such template, 8192x8192 in size, before resizing the rest. Delete such a file from the export folder so it is not imported again. When you are not sure a texture is unused, keep it.
  5. Set aside the textures that should keep their size. Move them out of the export folder before you resize, and import their original .dds files in step 8. A reply in the thread advises not to resize lights and emissive textures, consoles, screens and dirt patterns. The same user later narrowed the rule of thumb to script_rt* and emissive files. A separate bulk how-to skips *light*, *emissive*, *carbon* and *script_rt* textures. Another user in the thread reports no problems after resizing emissives, so read the list as a precaution.
  6. Downscale the remaining textures. Drop the .dds files into XnResize. In the Action tab, switch the unit from pixels to percent, set Width and Height to 50%, uncheck Rotate and check Keep ratio. In the Output tab, choose a new folder and set Format to DDS - Direct Draw Surface. Press Convert. Half the width and half the height leaves a quarter of the pixels.
  7. Check dimensions and mipmaps. Odd sizes, percentage scaling and lost mipmaps are the glitch causes reported in the thread. The Troubleshooting section lists them with their fixes. Use the original .dds for any texture that comes out wrong.
  8. Rebuild the dictionary. With Edit mode enabled in OpenIV, delete the old .ytd, create a new texture dictionary with exactly the same name, open it, click Import and select all resized .dds files. Import the originals you set aside in step 5 the same way. If OpenIV answers “The following files are not imported”, import the original files for those textures instead. Click Save.
  9. Put the file back and restart the resource. Copy the new .ytd into the resource’s stream folder and run ensure with the resource name. The server commands reference describes ensure as restarting a started resource, or starting it if it was stopped. Read the console again.
  10. Check the asset in game. Look closely at the texture types the thread reports as fragile: lights, emissives, screens and dashboard displays. One user found the speed display and the radio texture broken or upside down after a resize. Replace any damaged texture with its original and rebuild.

The how-to publishes its own before and after figures for one car. They show what the method did to that file; they are not a forecast for yours.

Measure (one .ytd)OriginalAfter a 50% resize
Compressed size11.8 MB1.23 MB
Uncompressed size164 MB11 MB
Virtual memory0.05 MiB0.05 MiB
Physical memory166.00 MiB10.69 MiB

If quality suffers, the author’s follow-up suggests a milder pass: resize only the files above 1 MB by 50%, and send smaller files through XnResize at 100%. He also warns that “Textures that are already optimized will be destroyed by this technique”, so do not run it on a dictionary that is already below the thresholds.

How to compress a YTD without resizing it

“Compress” can mean two things.

  • File compression happens by itself. The 2018 how-to notes that OpenIV “will automatically compress” the textures when it builds a dictionary, and the 2020 how-to reads a compressed and an uncompressed size for one file from OpenIV. In its figures the physical memory stays close to the uncompressed size, not the compressed one: 164 MB against 166.00 MiB before the resize, 11 MB against 10.69 MiB after.
  • Texture format compression stores pixels in a block-compressed format. Microsoft’s documentation says BC1, which Direct3D 9 calls D3DFMT_DXT1, reduces a 4x4 block from 48 bytes to 8 bytes. BC3, called D3DFMT_DXT4 and D3DFMT_DXT5, reduces a 4x4 block with alpha from 64 bytes to 16 bytes.

The how-to’s author tried a pass without resizing. He sent the textures through XnResize at 100%, with no change in resolution, and the uncompressed size of his dictionary fell from 168.155 MB to 42.087 MB. His conclusion: “So if your assets are under 50MB, then textures do not need to be resized.” To repeat it, follow the steps above and leave Width and Height at 100% in step 6, then check the console line as usual.

The thread does not say which format the tool wrote, so the cause is not confirmed there. Linden’s reply makes the same point in general terms: “Even just re-importing the textures at the same size can make a difference.”

The official assets manual lists “Textures compressed in the .dds format” as a prerequisite for a new asset and names NVTT (Nvidia Texture Tools) for creating them.

Format compression has limits you need to respect:

  • script_rt textures must stay uncompressed. The Legacy client checks for this and warns; the message is explained under Troubleshooting.
  • Sizes must fit the block format. Microsoft states that “A block-compressed texture must be a multiple of 4 in all dimensions”.
  • Colours can shift. A forum reply reports a yellow or green tint on textures meant to be black after conversion to DXT1, DXT3 or DXT5.

Splitting a vehicle YTD instead of shrinking it

The 2018 forum how-to takes a different route. It moves the textures of one large vehicle .ytd into several smaller dictionaries and chains them in vehicles.meta with txdRelationships. This is the block from that how-to, for a car whose textures were split over focusrs, focusrs1 and focusrs2:

<txdRelationships>
  <Item>
    <parent>focusrs1</parent>
    <child>focusrs</child>
  </Item>
  <Item>
    <parent>focusrs2</parent>
    <child>focusrs1</child>
  </Item>
  <Item>
    <parent>vehicles_dom_interior</parent>
    <child>focusrs2</child>
  </Item>
</txdRelationships>

The author’s selling point is that “there is no loss of texture quality”. That also means no texture gets smaller. The same textures now sit in several files, and the server measures each file on its own. Splitting can therefore quiet the console without making the car any lighter. Resize first. A split on its own changes which files the lines name, not how much texture data the car carries.

Tools that automate the work

  • ToolKitV is a community tool released on the Cfx.re forum. Its author describes an Only oversized textures option that checks only dictionaries larger than 16 MB of physical size, recommends using the backup folder option, and warns that format optimization “can add noise and distort colors in some cases”. After a user reported script_rt warnings, the author announced a version that fixes script_rt texture issues in December 2022.
  • A bulk how-to on the forum resizes many vehicles at once with Folder2YTD and ImageMagick. Its backup step, placed before the first working step, reads “Backup whatever cars you’re going to modify.”

Whichever tool you use, the test is unchanged: restart the resource and read the console.

Model files: “uses X MiB of virtual memory” on .yft and .ydr

The .ytd steps do not touch this line. It is about the model file, and changing a model is 3D work: the official assets manual does it in Blender with Sollumz.

The strmem comparison with an equivalent Rockstar asset applies here too. Beyond that, the sources offer three things:

  • One reply puts the weight on textures, not the mesh. A January 2021 forum reply says “the model itself usually isn’t such a problem” and that streaming issues “are mostly caused by the gigantic textures”.
  • One user’s rule of thumb. A forum post from July 2018 advises staying under 300.000 polygons per vehicle, giving each vehicle LODs, and checking the polygon count by opening the .yft or .ydr in OpenIV. These are one community member’s figures, not limits from Cfx.re.
  • LODs are part of the official workflow. The assets manual’s LOD part has creators prepare an HD model and a LOD model with “simplified geometry and materials”.

Why a car prints the same size twice

Many addon cars ship name.yft and name_hi.yft with identical sizes, as in the hellcat example where both lines read 29.2 MiB. A comment in the Legacy client source explains the habit: many creators define only the highest level of detail, the game then crashes when no _hi file is present, and “As a workaround many people duplicate the #ft and append _hi”.

The client has handled that case itself since a fix merged on December 25, 2024, which returns any suitable level of detail when the original function finds none. A community tool on the forum, Stream file assistant, exists to find such duplicates. Its author’s first instruction is to back up everything you plan to modify.

What the FiveM Legacy client does with large vehicle textures

The Legacy client has a cap of its own, str_maxVehicleTextureRes. The docs list it as a user command with a default of 1024 and describe it as limiting “the maximum resolution of vehicle textures”, “at the cost of visual quality”. The client source shows how narrow it is:

  • Vehicles only, matched by file name. The code takes the name of the file being loaded up to the first dot and looks for a vehicle model with that name. A dictionary named after the car is covered. A dictionary with any other name, such as the extra files a split creates, is not matched by that lookup.
  • Mipmapped textures only. The code acts only when a texture has more than one mip level. It then picks a smaller level until width and height fit under the cap.
  • A second, lower cap for two formats. str_maxVehicleTextureResRgba defaults to 512 and applies to format codes 21 and 32. In Microsoft’s D3DFORMAT list those numbers are D3DFMT_A8R8G8B8 and D3DFMT_A8B8G8R8, both 32-bit formats with 8 bits per channel.

Two practical points follow. A vehicle texture without mipmaps escapes the cap, which is one more reason to keep mipmaps when you rebuild a dictionary. And the cap does nothing for clothing, props or interiors.

The same client adds a setting labelled “Extended Texture Budget”, stored in the variable vid_budgetScale, which scales the game’s physical memory budget. Both are settings on the player’s PC. Neither changes what your server streams.

Check asset memory in game with strmem

strmem is the tool the forum answer refers to. The docs describe it as showing “a listing of streaming memory used by specific streaming assets, as well as a global overview”.

  1. Enable developer mode. strmem is a developer command. On FiveM Legacy, launch the client with +set moo 31337 or use a non-production update channel such as Beta or Latest. On FiveM for GTAV Enhanced that argument was removed, and developer mode requires sv_devMode true on the server. The server reference notes that sv_devMode limits the server to 8 clients, so use a test server.
  2. Open the client console with F8 and enter strmem true.
  3. Read the Streaming Memory window. In the Legacy client it shows totals such as Virtual memory and Physical memory, then a sortable table with the columns Name, Virt, Phys and Total. Only loaded assets are listed.
  4. Compare. Spawn your addon car next to a similar Rockstar vehicle and compare the two rows.
  5. Close it with strmem false.
CommandKindWhat the docs say it does
strmemDeveloperLists streaming memory used by specific assets, plus a global overview
strlistDeveloperGraphical list of the entries registered in the GTA streamer and their status
strdbgDeveloperShows what is currently being loaded in the GTA streamer
str_maxVehicleTextureResUserLimits the maximum resolution of vehicle textures; default 1024
con_streamingMonitorEnhanced onlyShows the Streaming Tool dev tool
resmonDeveloperOpens the resource monitor, which tracks CPU and memory usage per resource

resmon and strmem answer different questions. The first reports CPU and memory usage per resource, and the resmon and profiler guide covers it. The second lists streamed files.

FiveM for GTAV Enhanced: what is different

All source code quoted in this guide comes from the public citizenfx/fivem repository, whose README describes FiveM as a framework for “Grand Theft Auto V Legacy” and FXServer as its server component. That server code scans the stream folder only. The Enhanced pages listed in the sources do not describe a size check, so do not assume the same lines or thresholds on a server for Enhanced until you see them in its console.

What the official Enhanced pages do say:

  • A separate folder. A resource can include a stream_enhanced folder. When it is present, Enhanced loads it instead of stream. On Enhanced the stream folder still works without it but is deprecated.
  • One resource for both platforms. The docs suggest placing Gen8 assets in stream and Gen9 assets in stream_enhanced.
  • Conversion with Alchemist. Alchemist converts Legacy assets for Enhanced, supports YDR, YTD, YFT, YPT and YDD files, and requires Windows 11. Its Asset Refinement mode corrects Legacy assets that were created with older tools.
  • Conversion is not optimization. The Alchemist page does not mention lowering texture resolution or memory use. An oversized Legacy file is still your job to shrink.

Troubleshooting

The YTD is under 16 MB on disk, but the console still warns

The check compares declared memory, not file size. The how-to’s example file was 11.8 MB compressed and 166.00 MiB in physical memory. Ignore the size your file manager shows and go by the console line.

The warning is still there after resizing

  • The file is still above 16 MiB. The line changes colour as you cross 64 and 32 MiB, and disappears only at 16 MiB or below. Resize further or remove more unused textures.
  • Some textures went back in at full size. Every file that failed to import and was replaced by its original keeps its old size.
  • The line is about another file. Check the file name and the word physical or virtual. A virtual memory line on a model does not react to texture work.
  • The resource was not restarted. The check runs at resource start.

Textures look green, purple, glitchy or washed out after resizing

These are the causes users reported in the how-to thread, with their fixes:

  • Odd dimensions. One reply reports that sizes such as 513x512 or 2048x1025 glitch. Its fix is to scale such a texture to a regular size, 512x512 in that example, in an image editor.
  • Percentage scaling. Another reply blames a percentage result that is not a power of 2. It recommends setting the size by hand, for example 512x512 for a 1024x1024 texture.
  • Missing mipmaps. A third reply points out that XnResize does not preserve or regenerate mipmaps.
  • Format change. The same reply reports black textures turning yellow or green in DXT formats.
  • Already small textures. Very small dictionaries look washed out when downsized further; the bulk how-to’s author leaves out files below 2 MB.

The how-to’s own fallback is the same each time: put the original .dds back for that texture.

The warning got bigger after resizing map textures

One user in the thread resized custom road textures at 50%, 90% and 100% and saw the warning rise from 53 to 61 MB each time. The reply he received says the method “mainly works for vehicles and clothing items (EUP)” and that roads and other large objects “use completely different ways of storing their data”. For map and MLO files, try the method on one dictionary first and keep the backup.

“Texture … was set to a compressed texture format, but ‘script_rt’ textures should always be uncompressed”

This is a FiveM Legacy client warning, shown in the F8 console after a tool compressed a texture whose name starts with script_rt. The client decompresses the texture at load and continues, and the message adds: “This file was likely processed by a bad tool. To improve load performance and reduce the risk of it crashing, fix or update the tool used.” Import the original, uncompressed script_rt texture again and exclude those textures from future passes.

It is a different message from the same server file. FXServer tries to create a hard link for each streamed file in its own cache, in a stream_cache folder kept per resource (cache/files/<resource>/stream_cache/ in the forum examples). It prints this line, in yellow and only once per run, when that fails. It says nothing about the size of your assets.

Can the oversized assets warning be turned off?

The size check has no setting in the code: any declared size above 16 MiB prints a line. The server commands reference documents console channel filters: con_addChannelFilter takes a filter and an action, and the action noprint stops a channel from printing. This warning is printed on the channel resources:<resource name>:stream. A filter hides the text only. Players still receive the same files.

The warning names a file you cannot edit

The Asset Escrow page lists “Lua, YFT, YDD, and YDR files” as supported. A model file in an escrowed resource may therefore be encrypted, and a smaller version has to come from its creator. YTD is not on that list. This applies to FiveM Legacy: the page on FiveM for GTAV Enhanced lists Asset Escrow as “Not implemented yet”.

The car is invisible or will not spawn after the edit

Restore the backup first. One user in the how-to thread reported that some cars no longer spawned after the resize. Then work through the addon car not spawning guide to rule out the manifest and the meta files.

Next Steps

Browse Addon vehicles

Addon vehicles with custom handling, audio and visual modifications for FiveM servers.

Browse catalogue →

Official documentation and repository references