> For the complete documentation index, see [llms.txt](https://ruxo.gitbook.io/ruxo-shop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ruxo.gitbook.io/ruxo-shop/fivem-scripts/ruxo-car-swap.md).

# Ruxo Car Swap

Ruxo car swap FiveM

{% embed url="<https://www.youtube.com/watch?t=69s&v=Sz09H-RWS3g>" %}
Ruxo Car Swap
{% endembed %}

{% hint style="info" %}
Open version (paid): [Car Swap](https://ruxo-shop.tebex.io/package/6247397)\
\
Free Version (escrow): [Ruxo Car Swap](https://ruxo-shop.tebex.io/package/5851653)
{% endhint %}

## Jobs Allowed

Set the allowed jobs that can have access to the menu from config:

```lua

JobList = { -- List of allowrd jobs from your DB
	"mechanic",
	"spongicustoms",
	"bennys",
},
```

## Car list

Set for each car, the models wich it's possible to swap:

```lua
ListedVehicle = {
{
name = "buffalo", -- Original car model
replaceList = { -- List of the possible replace car's models
	"buffaloh",
	"buffalo2",
	"buffalo3",
}
},
{
	name = "contender", 
	replaceList = {
		"contenderc",
	}
},
{
	name = "elegy", 
	replaceList = {
		"elegyrh7",
	}
},
```

## Key

To open menu default key is "F6", you can change it from config:

```lua
DefaultKey = "f6", --you can change this value for open menu ingame
```

## Garage SQL

This script will work with any type of garage, you need only to match the same fields and tables from config:

{% tabs %}
{% tab title="KC Garage" %}

```lua
DBTable = "owned_vehicles", -- Your DB table name for garage system, to insert and delete cars

DBParking = "Legion", -- Your DB Garage name to store new swapped vehicle

DBVehicleType = "car", -- Your DB Garage vehicle type field

DBPlate = "plate", -- Your DB Garage plate field

DBOwner = "owner", -- Your DB Garage owner chardID field

DBGarageFields = "owner, plate, vehicle, stored, type, parking", --Your DB Garage fields
```

{% endtab %}

{% tab title="CD Garage" %}

```lua
DBTable = "owned_vehicles", -- Your DB table name for garage system, to insert and delete cars

DBParking = "Legion", -- Your DB Garage name to store new swapped vehicle

DBVehicleType = "car", -- Your DB Garage vehicle type field

DBPlate = "plate", -- Your DB Garage plate field

DBOwner = "owner", -- Your DB Garage owner chardID field

DBGarageFields = "owner, plate, vehicle, in_garage, garage_type, garage_id"
```

{% endtab %}
{% endtabs %}

## Translations

Chose the local to use in config:

```lua
Local = "en", -- it,es,fr,en,de Transaltion
```

You can change or add translation from config file, just add a code block like that:

```lua
TranslateEN = {
	swap_vehicle = "Swap Vehicle",
	notify_error = "This vehicle belongs to nobody",
	notify_ok = "Vehicle successfully delivered!",
},
```

## Requirements

* ESX
* ESX\_Context

You will recieve also esx\_context as download from tebex.

{% hint style="danger" %}
Common issue: some players have problems to retrieve esx\_context resource, so now we will provide it, if you still have problems open a ticket in our discord
{% endhint %}

## Support

If you have any issue we offer 24/h support:

{% content-ref url="/pages/e58lwPfWuNyRRzPTvcYd" %}
[Support](/ruxo-shop/overview/support.md)
{% endcontent-ref %}
