[ESX] Second Dealer

40.00EUR

[ESX] Second Dealer

Package Description

πŸš— CLD Second Car Dealer – Advanced Used Vehicle Marketplace (ESX)

A fully dynamic, player-driven second-hand dealership for FiveM

Transform your server’s economy with a realistic, player-to-player used vehicle dealership system.
With CLD Second Car Dealer, players can sell their vehicles to an NPC and have them listed on a public marketplace where other players can view, purchase, and instantly receive them.

This system is designed for maximum compatibility, customization, and smooth integration with any ESX-based server.


⭐ Features

πŸ” Player-Driven Used Car Market

  • Players can sell their owned vehicles to a custom NPC dealer.

  • Vehicles are removed from their garage and appear immediately for sale.

  • All vehicle data is saved, including modifications, colors, damage, plate, etc.

πŸ’΅ Consignment System

  • Sellers receive no instant payment when listing a vehicle.

  • They are automatically paid only when another player buys their vehicle.

  • Fully supports bank or cash payouts via configuration.

🚘 Perfect Vehicle Transfer

  • When a vehicle is purchased:

    • The buyer pays automatically.

    • The seller (if online) receives their payout.

    • The vehicle is registered to the buyer in owned_vehicles.

    • The buyer spawns instantly inside the purchased vehicle at a configurable location.

🧾 Full NPC Interaction

  • Realistic NPC dealer with custom animations.

  • 3D text prompts and interaction zone.

  • Ox_lib menu UI for browsing available vehicles.

πŸ“¦ 100% Customizable Client Layer

Everything related to notifications, garages, and UI is placed inside
client/open_client.lua so server owners can easily add:

  • Custom notify systems (okokNotify, mythic, boii_ui, etc.)

  • Custom text UI

  • Custom garages (cd_garage, qs-garages, your own, etc.)

πŸ› οΈ Optimized, Lightweight & Clean

  • 0.00ms idle usage

  • Fully rewritten database logic (safe plate handling, duplicate protection)

  • Clear code structure for easy modifications


πŸ“ Configurable Dealership Setup

  • Set your own NPC location

  • Set your own BuySpawn (where purchased vehicles appear)

  • Configure display vehicles on the forecourt

  • Add a blip on the map (optional)


πŸ”’ Database-Safe & Error-Proof

  • Plates are automatically sanitized to avoid duplicates.

  • Database checks prevent ownership exploits.

  • Vehicles cannot be bought or sold incorrectly.


πŸ“‚ Requirements

  • ESX Legacy / ESX 1.8+

  • oxmysql

  • ox_lib