# Replacing Textures for Mod Vehicles

## **Summary**

**Published: Dec 11 2024 by SDH0**\
**Last documented edit: Dec 11 2024 by** [mana vortex](https://app.gitbook.com/u/NfZBoxGegfUqB33J9HXuCs6PVaC3 "mention")

This guide will teach you how to replace textures on a modded vehicle.

## Prerequisites

* [ ] A Wolvenkit Project (see[WolvenKit Projects #Create a new WolvenKit mod project](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/usage/wolvenkit-projects#create-a-new-wolvenkit-mod-project "mention"))\
  Make sure to call it something like `###_projectname`, so that it loads [before](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-users/users-modding-cyberpunk-2077/load-order) the existing mod
* [ ] A texture (.png) for replacing

## Changing the texture

### 1. Finding the file in the mod

Switch the [Asset Browser](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/editor/asset-browser) to the [Mod Browser](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/editor/asset-browser#mod-browser):

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-8fc62b046b05c6dee230e40fd8e82ce715d9e485%2F01.png?alt=media" alt=""><figcaption></figcaption></figure>

Now, use the [Wolvenkit Search](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/usage/wolvenkit-search-finding-files) to find the texture that you want to replace.\
\&#xNAN;*(I'm going to replace the Livery texture on my Miura)*

* Textures have the file extension `.xbm`
* You can filter the list on the left by file name, or browse the list on the left until you have found the right mod. \\

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-4bb1a6dfa3c8f6e3fb821651b896000b88bb62d7%2F02.png?alt=media" alt=""><figcaption></figcaption></figure>

## 2. Adding the required files

{% hint style="info" %}
The files you need are different from mod to mod. However, you need at least the `.xbm` with the actual texture.
{% endhint %}

In the example, I will also add the `.mi` ([material instance](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/materials/re-using-materials-.mi)). This file holds the texture's properties (like its path). By adding the .mi file, you can customize the decal even further.

Add the files to your mod by double-clicking them.

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-ab5dc8a7246b20252375ecace804fd8d14fab8fb%2F03.png?alt=media" alt=""><figcaption><p><br></p></figcaption></figure>

### 3. Exporting the texture

After adding the texture, you can now [export it to .png](https://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/textures-and-luts/images-importing-editing-exporting).

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-cd6eba7d4e30f18fac1b015b070c6b3f50d02838%2F04.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-a839f8dafd39fbf7613c8bad459dd8c687f2b80b%2F05.png?alt=media" alt=""><figcaption></figcaption></figure>

The resulting texture will show up in your project's [`raw` folder](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/editor/project-explorer#raw) (use the `source` tab to see all project files)

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-0b623f48984c2aabcb22be2b52c16e116d170c9a%2F06.png?alt=media" alt=""><figcaption></figcaption></figure>

### 4. Overwriting the texture

Click the yellow folder shape next to the `.png` file to open the Windows Explorer.\\

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-920adbaf193715959415a882bf9c49fea14455cb%2F07.png?alt=media" alt=""><figcaption></figcaption></figure>

Now replace the .png with the picture that you want:

{% hint style="warning" %}
The file name must be the same
{% endhint %}

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-6b6bcaef67366602b4db5031619680d89df9c62b%2F08.png?alt=media" alt=""><figcaption></figcaption></figure>

### 5. Importing the texture

Now [import your texture](https://wiki.redmodding.org/cyberpunk-2077-modding/textures-and-luts/images-importing-editing-exporting#importing-a-texture) back into the `.xbm.`

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-979747ba10ff1e23e829c98f424e46775cf90382%2F09.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-aff2507e6fe83a91697afe1b000517a9bd56c6da%2F10.png?alt=media" alt=""><figcaption></figcaption></figure>

\
\
![](https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-6012516e6fdc2b8e14a1da83422764be9338841b%2F11.png?alt=media)\\

{% hint style="success" %}
You can see in the project explorer that your texture has been replaced
{% endhint %}

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-d6d52fa3718bc0fbf7118e08e245069adbafdc6a%2F12.png?alt=media" alt=""><figcaption></figcaption></figure>

### 6. Testing your mod

[Install your mod](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/menu/toolbar#install-and-launch) and launch the game.

{% hint style="info" %}
You can use the **Install and Launch** button to do both at once!
{% endhint %}

If you spawn the car, you will now see that the texture has changed!

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-d927f14a5f9bb7d53ad59cdf1a8c197a8d2ba067%2F13.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you want to share your texture edit, you can do so by sharing the installed .archive.
{% endhint %}
