[Preview Video]
Dependencies
Baseevents
This script protected escrow system
[Discord]
Script escrow will never restrict your access to important things.
Most of the important things, such as adding and removing status bars, are open source. 80% of the script is open source according to general statistics.
izzy-carsell β FiveM Player-to-Player Car Marketplace
π¦ Overview
* π List vehicles from your garage on a player marketplace
* π Browse other playersβ listings, inspect with a 3D preview, and buy what you like
* πΌ Works with ESX and QBCore (auto-detects whichever runs on your server)
* πΎ All listings are stored in `data.json` β they persist across restarts
* π‘ When someone lists, edits, or buys, the market updates live for everyone
* β¨οΈ Open the menu with `/carsell` (command name is configurable)
π€ Profile area (what you see in the menu)
* β οΈ **No in-game character mugshot.**
* **Your card (top right of the menu):**
Β * Discord profile picture (may be empty if you have no Discord or the bot isnβt set up)
Β * Character name (RP name from ESX/QB)
Β * βPlayerβ label underneath
* On listing cards, the seller is shown by character name; listings use **your vehicle photos** (taken or linked), not Discord avatars on each ad.
π Main menu
* **Two options:**
Β * Sell your vehicles β vehicles you own in the garage
Β * Buy vehicles β everything on the market
* **Left side:** Server logo, server name, and tagline (`serverName`, `serverDesc`)
* **Information box:** Short text from `cfg.lang`
π€ Sell
* Shows vehicles you own from the database.
* **Each card:** Vehicle name, plate, sale status
* **Status labels:**
Β * π’ **Can be sold** β no listing for this plate yet
Β * π΄ **For sale** β you already have a listing
* **Click a vehicle to set up:** Title, description, price, and vehicle photos (paste a URL or take photos in-game).
* **Taking photos:** Menu closes, phone camera opens. Switch front/back camera, and confirm to upload via Discord webhook.
* **Edit/Remove:** If already listed, you can edit details or use the red delete button to remove the listing.
* *Note:* Models in `blacklistVehicles` cannot be listed.
π Buy
* **Search & Filter:** Filter by vehicle name and sort by price (high to low).
* **Each listing:** Vehicle name, seller name, plate, sliding photo gallery, and price.
* **Clicking a listing:**
Β * Vehicle spawns in 3D (showroom position from config) β drag with the mouse to rotate it.
Β * Displays FiveM vehicle image, custom listing photos, title, description, and price panel.
* **Purchase:** Payment uses bank or cash per config. Successful purchase transfers the vehicle to you.
* **Seller payout:** Sale amount goes directly to the sellerβs bank (offline record is updated if they are not online).
πΌοΈ Images & names
* **Listing photos:** URL link or in-game capture.
* **Vehicle name:** In-game label or custom names from `customVehicles` in config.
* **Preview images:** FiveM docs β fallback `vehicles/` folder β default image.
π Language
* English strings included in config (`locale = 'en'`).
* Add a new block under `cfg.locales` for Turkish or other languages β no built-in pack of 16 languages.
π οΈ Setup (server owners)
* **shared/cfg.lua:** `openCommand`, `serverName`, `serverDesc`, `paymentType` (bank/cash), colors, showroom coords, `customVehicles`, `blacklistVehicles`, and language blocks.
* **shared/sv_cfg.lua:** `WEBHOOK` (required for photo uploads) and `BOT_TOKEN` (for Discord profile pictures).
* **Dependencies:** `oxmysql` (garage/vehicle ownership), `screenshot-basic` (photo capture).
* **Optional:** `izzy-garagev2` (vehicle mods apply more accurately).
* **Data:** `data.json` β stores all marketplace listings.