Santa & Christmas Edition36 maps, limited runlimited runShop the drop
Chapter 08 of 10The Weapon Skins Handbook for FiveM

Weapon skins and textures

In short

A weapon skin is new artwork inside the weapon’s texture dictionary (.ytd), stored as DDS with the right compression and mipmaps. With the format and the size right it stays sharp and costs little memory.

FormatBytes/pixelUse for
BC1 (DXT1)0.5Opaque diffuse where size matters most
BC71High-quality diffuse, with or without alpha
BC3 (DXT5)1Smooth alpha when BC7 is not available
BC5 (ATI2)1Normal maps
A8R8G8B84Tiny UI-like textures only
TextureMemory with mips
1024² BC7~1.3 MiB
2048² BC7~5.3 MiB
4096² BC7~21.3 MiB — over the 16 MiB oversized-asset warning on its own

Memory is width × height × bytes per pixel, plus one third for the mipmaps.

  1. Open the weapon’s .ytd in CodeWalker and export the diffuse texture, the one ending in _d.
  2. Paint the design at the same size. Keep logos large and simple, and put them on flat panels.
  3. Save as DDS in BC7 or BC1 with a full mip chain (texconv -m 0).
  4. In CodeWalker, replace the texture under the identical name. If the weapon has a +hi.ytd, edit that one too.
  5. Stream the .ytd from a resource and check the result in first and third person.

A pink or purple weapon means the model cannot find its texture: the .ytd is missing or misnamed, or a texture name does not match. The pink textures guide goes through each case.

The Weapon Skins Handbook for FiveM

This chapter is one of 10. The handbook also carries the native, control and data-file cheat sheets, a glossary and the official references behind every chapter.

Open the handbook