# Creating an engineswap profile

Creating an enginedata profile is a great way of adding more customization for your vehicles.\
\
In order to create a engine profile, you'll need to call an export to collect the necessary data to fill the engineswap.lua profile, and you can do so by creating a lua resource and paste the following code:<br>

```lua
local chaser = exports['legacydmc_chaser']

RegisterCommand("getengswapdata", function()
    if chaser:chaser_getloadstatus() then
        chaser:chaser_getengineswapdata()
    end
end, false)

```

Then, inside a car type the `"getengswapdata"` command and you'll see that in the F8 console, it will give you the necessary information to fill in the enginedata.lua profile

<figure><img src="/files/6fvgm3NToN36cD3qqoHA" alt=""><figcaption></figcaption></figure>

Now, go into our tutorial about the "enginedata.lua" file to learn how to properly create a engine profile!

{% content-ref url="/pages/mhtVFlEfa6G2vHEQ9cY8" %}
[enginedata.lua](/chaser/the-config-folder/enginedata.lua.md)
{% endcontent-ref %}


---

# 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://legacydmc.gitbook.io/chaser/fundamentals/creating-an-engineswap-profile.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.
