> For the complete documentation index, see [llms.txt](https://neveradev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neveradev.gitbook.io/docs/paid/private-yacht.md).

# Private Yacht

{% embed url="<https://www.youtube.com/watch?v=QAXTeuM5Pbo>" %}

{% hint style="success" %}
This script is compatible with **ESX and QB.**
{% endhint %}

{% hint style="warning" %}
This script requires the [**ox\_lib**](https://github.com/overextended/ox_lib/)
{% endhint %}

### Script

{% embed url="<https://forum.cfx.re/t/esx-qb-have-a-private-yacht/5261557>" %}

### Installation

{% tabs %}
{% tab title="ESX" %}

1. Download from [keymaster](https://keymaster.fivem.net/login?return_url=/asset-grants) and **unzip** the `Private Yacht`. Move `nv_private_yacht` in your server's resource folder.
2. Add the resource to your server start config: `ensure nv_private_yacht`, the name of the folder must not be changed or the resource will not function correctly. **Ensure the script is the latest one.**

{% code title="server.cfg" %}

```tsconfig
# ...
# All the other resources
ensure nv_private_yacht
```

{% endcode %}

3. Open the **config.lua** and configure it correctly, paying attention to all the variables!
4. Set `config.framework` to `"ESX"`
5. Restart server or type `ensure nv_private_yacht` in **console.**
   {% endtab %}

{% tab title="QB" %}

1. Download from [keymaster](https://keymaster.fivem.net/login?return_url=/asset-grants) and **unzip** the `Private Yacht`. Move `nv_private_yacht` in your server's resource folder.
2. Add the resource to your server start config: `ensure nv_private_yacht`, the name of the folder must not be changed or the resource will not function correctly. **Ensure the script is the latest one.**

{% code title="server.cfg" %}

```tsconfig
# ...
# All the other resources
ensure nv_private_yacht
```

{% endcode %}

3. Open the **config.lua** and configure it correctly, paying attention to all the variables!
4. Set `config.framework` to `"QB"`
5. Restart server or type `ensure nv_private_yacht` in **console.**
   {% endtab %}
   {% endtabs %}

### Code

{% tabs %}
{% tab title="config.lua" %}

```lua
config = {}

--=========== Framework ===========--
-- ESX - ESX Framework
-- QB - QBCore Frameowk
config.framework = "ESX"
--=================================--

--=========== Targets ===========--
config.ox_target = true -- If you want to turn on, set this to -> true
config.qb_target = false -- If you want to turn on, set this to -> true
--===============================--
config.targetIcon = "fas fa-anchor"

--=========== Shop / Laptop ===========--
config.shopPedPos = vec3(569.2382, -3126.7739, 18.7686)
config.laptopModel = "prop_laptop_01a"
--=====================================--

--=========== Notification ===========--
config.notifyName = "YACHT"
config.notifyDesc = "Jhon Smith"
config.notifyIcon = "CHAR_BOATSITE"
--====================================--

--=========== Pricing ===========--
config.upgradePrice = {
	-- Model:
	orion = 6000000,
	pisces = 7000000,
	aquarius = 12000000,

	-- Fittings
	chrome = 270000,
	gold = 850000,

	-- Light
	presidential = 250000,
	vivacious = 512000,

	-- Light Color
	l_yellow = 0,
	l_blue = 60000,
	l_purple = 90000,
	l_green = 100000,

	-- Yacht Color
	yc1 = 0,
	yc2 = 90000,
	yc3 = 130000,
	yc4 = 160000,
	yc5 = 190000,
	yc6 = 240000,
	yc7 = 260000,
	yc8 = 290000,
	yc9 = 310000,
	yc10 = 350000,
	yc11 = 370000,
	yc12 = 420000,
	yc13 = 476000,
	yc14 = 512000,
	yc15 = 564000,
	yc16 = 592000
}	
```

{% endtab %}
{% endtabs %}

### Support

{% hint style="info" %}
If you have any problems or need help, contact us on [Discord!](https://discord.gg/NeveraDev/tw28AqrgWU)
{% endhint %}
