A FiveM script for QBX framework that allows players to sell their vehicles to an NPC car buyer.
- Map Blip: Car buyer location is marked on the map
- Proximity-Based NPC: Ped only spawns when players are nearby (performance optimized)
- Professional Appearance: Suited businessman NPC for realistic experience
- ox_target Integration: Players can interact with the NPC using ox_target
- Enhanced ox_lib Menus: Rich, detailed menu system with metadata and confirmations
- Database Integration: Checks vehicle ownership and values from the database
- Negotiation System: Two offer options:
- Quick Cash Deal: 50% of vehicle value (instant payment)
- Bonus Package Deal: 40% of vehicle value + $1000 bonus
- QBX Core
- ox_lib
- ox_target
- oxmysql
- Ensure all dependencies are installed and running
- Add
ensure symple_carsalesto your server.cfg - Restart your server
Preview: https://medal.tv/games/gta-v/clips/l37aehsSoHue56jkJ?invite=cr-MSx1TkMsMzQ5ODgxOTk5&v=60
Edit config/config.lua to customize:
- Car Buyer Location: Change
carBuyer.coordsto move the NPC - NPC Model: Change
carBuyer.modelto use a different ped (suited models available) - Proximity Settings: Adjust spawn/despawn distances for performance
- Blip Settings: Customize the map blip appearance
- Sale Percentages: Adjust the offer percentages and bonus amount
- Players can find the car buyer via the blip on the map
- Drive to the location in the vehicle you want to sell
- Use ox_target to interact with the car buyer NPC
- Choose from the negotiation options:
- Accept 50% of vehicle value
- Accept 40% of vehicle value + $1000 bonus
- Decline the offer
The script requires:
player_vehiclestable withcitizenidandplatecolumnsvehiclestable withmodelandpricecolumns
- Players must own the vehicle (checked via database)
- Players must be the driver of the vehicle
- Vehicle is automatically deleted after successful sale
- All transactions are logged to console
Support: https://discord.gg/rX7bWcNm