# ⚙️ 360 Camera

## 1. Cam360

This option is used to enable or disable the 360 camera

<table><thead><tr><th width="239.77777099609375">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360 = true
</code></pre></td><td>When set to true, you can use the command or keybinding to change your camera to 360 camera for better parking experience</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360 = false
</code></pre></td><td>This will turn off the custom 360 camera mode</td></tr></tbody></table>

***

## 2. Cam360CMD

This option is used to set the camera mode command

<table><thead><tr><th width="261.77777099609375">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360CMD = "360"
</code></pre></td><td>With this option, the script register <code>/360</code> command which will change the camera mode between default camera and 360 camera</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360CMD = "cam"
</code></pre></td><td>With this option, the script register <code>/cam</code> command which will change the camera mode between default camera and 360 camera</td></tr></tbody></table>

***

## 3. Cam360Key

This option is used to set the camera mode keybinding

{% hint style="info" %}
If you change this option after the first start of the script, players who connected after the first start will have to change the keybinding themselves.
{% endhint %}

{% hint style="success" %}
There is also an alternative way to change the keybinding for all players, no matter they were previously connected or not!

With changing the `Cam360Key`, also change the `Cam360CMD`.
{% endhint %}

<table><thead><tr><th width="259.99993896484375">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360Key = "F9"
</code></pre></td><td>With this option, the script register <code>F9</code> key which will change the camera mode between default camera and 360 camera</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360Key = "F10"
</code></pre></td><td>With this option, the script register <code>F10</code> key which will change the camera mode between default camera and 360 camera</td></tr></tbody></table>

***

## 4. Cam360AnimDur

This option is used to change the duration of the camera mode change animation

{% hint style="info" %}
durations are in milliseconds!
{% endhint %}

<table><thead><tr><th width="295.9998779296875">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360AnimDur = 500
</code></pre></td><td>With this option, fade animations will take 500 milliseconds</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360AnimDur = 1000
</code></pre></td><td>With this option, fade animations will take 1000 milliseconds</td></tr></tbody></table>

***

## 5. Cam360FOV

This option is used to change the camera's FIELD OF VIEW

<table><thead><tr><th width="259.9998779296875">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360FOV = 90.0
</code></pre></td><td>With this option, the camera's field of view will be 90.0.</td></tr></tbody></table>

***

## 6. Cam360Offset

This option is used to change the camera offset

{% hint style="info" %}
For offset to work properly, it must be vector3 or vector4!
{% endhint %}

<table><thead><tr><th width="380.9998779296875">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360Offset = vector3(0, 0, 7)
</code></pre></td><td>With this option, the camera moves up <code>7</code> meters from the vehicle.</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.Cam360Offset = vector3(x, y, z)
</code></pre></td><td>With this option, the camera will move:<br><code>x</code> meters from the vehicle to the left or right<br><code>y</code> meters from the vehicle forward or backward<br><code>z</code> meters from the vehicle up or down, respectively.</td></tr></tbody></table>
