# ⚙️ Parking Sensor

## 1. ParkSensor

This option is used to enable or disable the parking sensor

<table><thead><tr><th width="303.77777099609375">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.ParkSensor = true
</code></pre></td><td>When set to true, the parking sensors work and when vehicle is getting closer to peds, vehicles or objects, vehicle starts beeping (like IRL)</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.ParkSensor = false
</code></pre></td><td>This will turn off the park sensor system</td></tr></tbody></table>

***

## 2. DebugDistance

This option is used to help you to easily configurate the script:)

<table><thead><tr><th width="303.77777099609375">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.DebugDistance = true
</code></pre></td><td>When set to true, the debug system turns on and everytime you are reversing and get close to any vehicles, the distance starts printing in the F8 console. this distance can be used on Config.Thresholds</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.DebugDistance = false
</code></pre></td><td>This will turn of this system</td></tr></tbody></table>

***

## 3. BeepSound

This option is used to change the beep sound

{% hint style="info" %}
Complete list of the sounds can be found on <https://wiki.rage.mp/wiki/Sounds>
{% endhint %}

<table><thead><tr><th width="385.99993896484375">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Name = "Beep_Red",
</code></pre></td><td>This is the BEEP sound name to play</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Ref = "DLC_HEIST_HACKING_SNAKE_SOUNDS"
</code></pre></td><td>This is the BEEP sound set name</td></tr></tbody></table>

***

## 4. BeepInvertals

This option is used to change the beep sound

{% hint style="warning" %}
Invertals are in milliseconds!
{% endhint %}

{% hint style="danger" %}
The number can not be lower than 200, this is because of script cpu usage optimizations
{% endhint %}

<table><thead><tr><th width="205.9998779296875">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">far = 1200,
</code></pre></td><td>When you are at far distance, BEEP sound plays every 1.2 seconds!</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">medium = 700,
</code></pre></td><td>When you are at medium distance, BEEP sound plays every 0.7 seconds!</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">close = 500,
</code></pre></td><td>When you are at close distance, BEEP sound plays every 0.5 seconds!</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">veryClose = 200
</code></pre></td><td>When you are at very close distance, BEEP sound plays every 0.2 seconds!</td></tr></tbody></table>

***

## 5. Thresholds

This option is used to change the beep sound

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

{% hint style="danger" %}
The number can not be lower than 200, this is because of script cpu usage optimizations
{% endhint %}

<table><thead><tr><th width="205.9998779296875">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">far = 10.0,
</code></pre></td><td>When you are 10 meters away from the target vehicle, it is considered as far distance</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">medium = 8.0,
</code></pre></td><td>When you are 8 meters away from the target vehicle, it is considered as medium distance</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">close = 6.0,
</code></pre></td><td>When you are 6 meters away from the target vehicle, it is considered as close distance</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">veryClose = 5.0
</code></pre></td><td>When you are 5 meters away from the target vehicle, it is considered as veryClose distance</td></tr></tbody></table>

***

## 6. DetectPed, DetectObj, DetectVeh

This option is used to change the sensor detection logic

<table><thead><tr><th width="262.9998779296875">Config value</th><th>Information</th></tr></thead><tbody><tr><td><pre class="language-lua"><code class="lang-lua">Config.DetectPed = true
</code></pre></td><td>With this option, sensors will detect nearby peds!</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.DetectObj = true
</code></pre></td><td>With this option, sensors will detect nearby objects!</td></tr><tr><td><pre class="language-lua"><code class="lang-lua">Config.DetectVeh = true
</code></pre></td><td>With this option, sensors will detect nearby vehicles!</td></tr></tbody></table>
