# config.lua

## Language

1. Go to Config.Framework
2. Go to Config.Locale
3. Available Languages
   1. de (German)
   2. en (English)

### Add Custom Language

For adding your custom language you have to edit two files

1. config.lua
2. /html/js/locale/translation.js

#### config.lua

You need to add your language in following data:

1. Config.NoSystemText
2. Config.FixedZonesText
3. Config.NuiNotReadyText
4. Config.NuiNowReadyText

#### translations.js

You need to copy the en or de part and make your translations..

## Config.Framework

do not change this at all, the script will automaticaly find the framework

## Config.MOT\_Validity

Configure how long a MOT is valid when passed.

### num

Amount of Days/Weeks/Months/Years to next MOT

### type

Possible Types:

|   |        |
| - | ------ |
| d | days   |
| w | weeks  |
| m | months |
| y | years  |

if invalid data is set the value for days is picked.

Every time is Real-Life time.

## Open via Fixed Zone

### Config.UseFixedZones

If this is set to true there will be markers to open the tablet, configured in Config.FixedZones

if this is set to false there won’t be any markers

### Config.DrawMarkerDistance

The distance from which the marker is displayed is defined here.

Always use XX.X the decimal point is necessary.

### Config.EnteredMarkerDistance

The distance from which the message appears to open the tablet when you come closer to the marker

Always use XX.X the decimal point is necessary.

### Config.FixedZonesMarkerCfg

Simply the [DrawMarker - FiveM Natives @ Cfx.re Docs](https://docs.fivem.net/natives/?_0x28477EC23D892089) in kinda more simple.

type = Type of marker, find here [Markers - Cfx.re Docs (fivem.net)](https://docs.fivem.net/docs/game-references/markers/#markers)

x = how wide the marker should be

y = how high the marker should be

z = how far from the ground the marker should be

r = red parts (for color - color picker here [HTML Color Picker (w3schools.com)](https://www.w3schools.com/colors/colors_picker.asp))

g = green parts (for color - color picker here [HTML Color Picker (w3schools.com)](https://www.w3schools.com/colors/colors_picker.asp))

b = blue parts (for color - color picker here [HTML Color Picker (w3schools.com)](https://www.w3schools.com/colors/colors_picker.asp))

a = alpha (transparency)

rotate = should the marker spin? true or false

### Config.FixedZones

Here you can add coordinates to open the tablet

there are two exampley configured in the default config.lua.

### Config.RadioHUD

#### Position

**vertical**&#x20;

You can choose right, left, middle here for vertical alignment on the screen

**horizontal**

You can choose top, bottom, middle here for horizontal alignment on the screen

#### extraMargins

here you can add some space to the radio hud

**top**

Extra space in percentage from the top, only works if horizontal is not middle

**left**

Extra space in percentage from the left, only works if vertical is not middle

**bottom**

Extra space in percentage from the bottom, only works if horizontal is not middle

**right**

Extra space in percentage from the right, only works if vertical is not middle

\\

\\

\\

\
\\

\\

\\
