[ESX/QBCore] Player Owned Yachts

This script is written to work with QBCore and ESX Legacy

This resource requires ox_lib

This script adds the ability for your players to have the chance to buy their very own private yacht

Features of Player Owned Yachts:

  • Ability to Change The Livery on Yacht.
  • Ability to Change the Light Color on the Yacht.
  • Ability for Players to share keys with friends .
  • Ability for Players to Sell their yacht to a friend.
  • Each Yacht has a boat and helicopter garage (works with any garage system - this simply saves and retrieves the vehicle stored)
  • Each Yacht has its own outfit section for players to change outfits (requires supported clothing resource).
  • Each Yacht has its own storage space which can be configured in config (requires supported inventory resource).
  • Each Yacht has an NPC bartender that can sell items defined in config
  • Supports OX and QB Target.
  • Config Option to Set Expiry Days if the yacht has not been entered for x days.

Performance: 0.00ms while not near a yacht | 0.02-0.04ms while in a yacht.

This is compatible with the following inventory systems:

This is compatible with the following clothing systems:

Support can be added for additional inventory, clothing and garage resources, simply give your suggestions and I can work on adding them.

Escrow Protected
Purchase Link

Unescrow Protected
Purchase Link

This resource uses FiveM’s Asset Escrow System
Editable Language settings - Editable Functions File

Total of 36 Yachts

Video Preview

Code is accessible No (config.lua and editable functions)
Subscription-based No
Lines (approximately) ~1200
Requirements Ox Lib
Support Yes

My Other Scripts


2 Likes

nice. I tried to find the gabz map but no luck. might be subscripton only :frowning:

yes, sadly the map is only available via gabz’s subscription.

now do the yachts actually move or its just in one place?

these are stationary on the map

Added Support for OX & QB-Target

-- Supported Resources: ox_target, qb-target
enableTarget = false
targetResource = 'qb-target'
  • Added NPC Bartender to Each Yacht - Configurable in Config
enableBartender = true
-- The list of items the bartender will sell
bartenderInventory = {
 {name = 'Bottle Of Beer', item = 'beer', price = 10},
}


Screenshot 2023-08-23 205135

  • Added Ability to set days to expire if the yacht has not been entered - Configurable in Config.
-- How many days should the yacht be left before it is removed if no one has entered it?
-- Example if set to 14, the yacht will be removed if no one has entered it in 14 days
enableExpiry = true
expireDays = 14 

Changelog

  • Removed the dependency of any garage system - This script will work with any garage system as the garages simply store the vehicles data until next spawned.

  • Anyone with access to the yacht can now access the stored vehicles in the shared boat / helicopter garage,

How many yachts can he have at stake? did you choose the position of the boat, can it move or not?

their are a total of 36 maps positioned around the map, the positions can’t be changed nor can they be moved as the yachts are static implemented by gabz mlo.

Quick one, does this have support for ps-inventory since its basically a Frankenstein between LJ and QB? Just wanna check before I buy

Hey, Just having a quick look over the ps documention, it does use the same functions so as a result yes this would work with PS-Inventory, if their are any issues with it after purchase, feel free to open a support ticket and I can assist with any issues,

Wonderful, thanks for the clarification!

1 Like

Love the system, but I have a couple of questions…

  1. Will this be supported with 3D text?
  2. Does having multiple yachts affect optimization?

sorry for the delay in response,

  1. do you mean like a 3d text instead of a ox_lib prompt?

  2. not really as the yachts are only loaded when you are near them, and they are that far apart that you can’t really load 2 at once so performance doesn’t take a hit.

Update:

Added Door to Yachts for added realism.

Can you update open source version too? I can not see it updated on keymaster

I will push an update now yes, sorry for the delay on this.

1 Like

Update:

  • Added Support for JG-Garages
  • Added GTA 5 Yachts to Script (No longer requires gabz map.)