# setVehicleStanceData

This is the export to use when loading a vehicle from the garage and applying the stance **before** the player joining the vehicle, it also loads the AutoStance data for the vehicle model and mods, if present.\
\
Requires the stanceData to be given in this specific format:

```lua
local testStanceData = {
    suspensionRaise = 0.0,
    vehicleFront = {
        trackWidth = 0.0,
        wheelCamber = 0.0,
    },
    vehicleCenter = {
        trackWidth = 0.0,
        wheelCamber = 0.0,
    },
    vehicleRear = {
        trackWidth = 0.0,
        wheelCamber = 0.0,
    },
    tireProfile = {
        width = 0,
        aspectRatio = 0,
        rimSize = 0,
    }
}
```

If an option isnt desired, it should be parsed as nil. If the stanceData table is nil, it will only load the AutoStance data for the vehicle model and mods, if available.\
\
Example:

```
local testStanceData = {
    suspensionRaise = nil, -- No suspension raise will be applied, if it was 0, it would reset
    vehicleFront = {       -- the suspension raise back to 0.
        trackWidth = nil,  -- Same for the trackWidth.
        wheelCamber = 0.0,
    },
    vehicleCenter = {
        trackWidth = 0.0,
        wheelCamber = 0.0,
    },
    vehicleRear = {
        trackWidth = 0.0,
        wheelCamber = 0.0,
    },
    tireProfile = {
        width = 0,
        aspectRatio = 0,
        rimSize = 0,
    }
}
```

{% hint style="info" %}
This should be called in the client side.
{% endhint %}

{% hint style="warning" %}
**No syncing is needed, the script automatically syncs all exports calls.**
{% 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://trueseries.gitbook.io/truestancer/exports/stance-data-exports/setvehiclestancedata.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.
