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.
| Format | Bytes/pixel | Use for |
|---|---|---|
| BC1 (DXT1) | 0.5 | Opaque diffuse where size matters most |
| BC7 | 1 | High-quality diffuse, with or without alpha |
| BC3 (DXT5) | 1 | Smooth alpha when BC7 is not available |
| BC5 (ATI2) | 1 | Normal maps |
| A8R8G8B8 | 4 | Tiny UI-like textures only |
| Texture | Memory 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.
- Open the weapon’s
.ytdin CodeWalker and export the diffuse texture, the one ending in_d. - Paint the design at the same size. Keep logos large and simple, and put them on flat panels.
- Save as DDS in BC7 or BC1 with a full mip chain (
texconv -m 0). - In CodeWalker, replace the texture under the identical name. If the weapon has a
+hi.ytd, edit that one too. - Stream the
.ytdfrom 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.
Go deeper:How to make a custom FiveM-compatible weapon skin →Design tips for FiveM-compatible weapon skins →Editing .ytd files with CodeWalker →What a .ytd file is, and how to edit one safely →DDS compression formats for GTA V and FiveM textures →Mipmaps explained for FiveM texture artists →Choosing texture resolutions for FiveM weapons →Normal and specular maps on GTA V weapons →Embedded or external textures for weapon models? →Why a FiveM weapon is pink, white or untextured →