# Liveries as .yft with CodeWalker

I'll show you the easiest and fastest way to change the lovery in an existing .yft file.\
To edit a .yft file tou must have a program called CodeWalker.

{% hint style="danger" %}
I advise you download the last version from their [discord](https://discord.gg/BxfKHkk), not from gta5mods.
{% endhint %}

***

### 1. We are going to start by opening the application called CodeWalker RPF Explorer, located in your ColdeWalker folder

<figure><img src="/files/dmuCj3xd22iMQ4HIR46J" alt=""><figcaption></figcaption></figure>

***

### 2. Next, drag the livery.yft file into the RPF Explorer (in this example, nkstanier\_livery\_lspd)-

{% hint style="warning" %}
DO NOT FORGET TO ENABLE ***EDIT MODE***!
{% endhint %}

{% hint style="info" %}
You can rename the file to whatever you want, just don't forget step 5, or you can simply leave it as it is, your choice.
{% endhint %}

<figure><img src="/files/wSaD2HQI1lRpY6DLaapv" alt=""><figcaption></figcaption></figure>

***

### 3. Open the .yft file inside the RPF Explorer, click the » icon, then select the second icon called ***Texture Editor.***

**After that, you should see two windows.**

<figure><img src="/files/9E4IYvYC1wBFulHTjL0x" alt=""><figcaption></figcaption></figure>

#### **3.1. Click&#x20;*****Replace*****&#x20;and select your livery .dds file.** (Alternatively, tou can *Remove* the existing one and *Add* a new texture).

<figure><img src="/files/yQp6Z8R0T71k5yOK936b" alt=""><figcaption></figcaption></figure>

#### **3.2. That's it, you new livery should be visible now!** You might notice the ***Save*** button in the top-left corner, but you don't need to use it here. You can simply close the window, as changes are saved automatically.

{% hint style="info" %}
The **texture name** does not matter at this stage.
{% endhint %}

<figure><img src="/files/45chUKmO7eG6Zq4e2EZu" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The ***Save*** button is only needed if you want to manually save the textures currently in the file.
{% endhint %}

<figure><img src="/files/FHP6yqg0D6kfi7kPPXN1" alt=""><figcaption></figcaption></figure>

***

### 4. Now it's time to save!

After closing the Texture Editor, click the ***Save*** button in RPF Explorer.\
And, that's it, your updated livery .yft file is now ready yo use.\
\
Place your .yft file inside the vehicle liveries folder, in this case ***nkstanier\_livery\_lspd.***

<figure><img src="/files/3P9FDVpRQa2or0QVmEFf" alt=""><figcaption></figcaption></figure>

***

### 5. Now, open the carcols.meta file and update it as shown below.

{% hint style="danger" %}
Make sure that the **modelName** matches the exact **name of your livery** .yft file that you just added.
{% endhint %}

<figure><img src="/files/2MfQsj1Vq8Ju95hXgyYN" alt=""><figcaption></figcaption></figure>

***

### 6. Open your vehiclenames.lua file and add the entry as shown in the screenshot below.

The name must match the name used in your carcols.meta file under **modShopLabel**. In this case **\["NKSTAN\_LIVLSPD"] = LSPD LIVERY.**

<figure><img src="/files/C1Vpcnj7ywvBXOLpgana" alt=""><figcaption></figcaption></figure>

**What this does?** It ensure that when you change your livery using a mechanic or extras script, the label appears as **LSPD Livery** instead if showing **NULL**.

***

### *<mark style="color:green;">**After all these steps, your liveries should work without any problems.**</mark>*

{% hint style="success" %}
I used [Noisiak](https://store.noisiak.com/) / [Lorewave](https://lorewave.com/) cars in this example, and, did this for him/his community.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mula.gitbook.io/mula-docs/liveries-as-.yft-with-codewalker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
