# 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:\


```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="https://3521707514-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN8X0NxdIQNZ2IvfhLGQd%2Fuploads%2FO3TTm6xJVGSF2XQFBsIo%2Fimage.png?alt=media&#x26;token=d19acf1f-8af1-49e1-8c62-c78ac86f36a9" 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="../the-config-folder/enginedata.lua" %}
[enginedata.lua](../the-config-folder/enginedata.lua)
{% endcontent-ref %}
