Vehicle Selling and Auction System
Resource folder:
gs_sellvehicles
Installation Instructions for Vehicle Selling and Auction System
Follow these steps to install and configure
gs_sellvehicles on your FiveM server.
-
Download the Resource
- Go to portal.cfx.re
-
Navigate to Assets > Granted Assets >
gs_sellvehicles - Download the resource
-
Extract the Files
-
Open the downloaded
.zipfile -
Inside, you'll find a folder named
gs_sellvehicles -
Move the entire
gs_sellvehiclesfolder into your desired server resources folder (e.g.,/resources/[scripts])
-
Open the downloaded
-
Add to Server Configuration
- Open your
server.cfg -
Add the following line:
ensure gs_sellvehicles
- Open your
-
Restart the Server
- Restart your FiveM server (Important!)
-
Configure the Script (Optional)
- Navigate to
gs_sellvehicles/config.lua - Edit the configuration options to fit your server's needs
- Navigate to
I get database errors when listing a vehicle
The sellvehicles table and your framework vehicle table (player_vehicles or owned_vehicles) must use the same collation on the plate column. Run:
ALTER TABLE `sellvehicles` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Also download the latest Keymaster version. The insert.sql file was added and fixed in recent updates (1.1.3+).
On Qbox I get "Table owned_vehicles doesn't exist"
Edit Functions.FetchVehicles and Functions.FetchVehicleByPlate in the server bridge. Change the joined table name to match your framework's vehicle table (for Qbox, typically player_vehicles).
I own the vehicle but get "Not your vehicle" when listing
On ESX, the owner column format may not match what the bridge expects. Verify your owned_vehicles.owner column and update the ownership query in the server bridge. Third-party persistence scripts (for example AdvancedParking) can also interfere with player or vehicle state.
Listed vehicles still show in my garage (JG Advanced Garages)
Set Config.tempTransfer = true in config (available in v1.2.0+). This temporarily transfers ownership to a system identifier while the vehicle is listed. The vehicle returns to the owner when the listing expires, is removed, or is sold.
How do I block players from taking a listed vehicle out of the garage?
Use the export in your garage script:
local isListed = exports.gs_sellvehicles:IsVehicleListed(plate)
if isListed then
-- block spawn and notify the player
end
JG Advanced Garages is encrypted, so you need to add this check in whatever hook or event your garage setup allows.
My server uses cash, not bank accounts
Edit the money functions in the server bridge. Change 'bank' to 'cash' in Functions.HasMoney, Functions.RemoveMoney, Functions.AddMoney, and Functions.AddMoneyByIdentifier (for offline seller payouts).
How do I block donator or specific vehicles from being sold?
Add a blocklist in config and check it in Functions.CanListVehicle in the server bridge. Return canList = false with a message for blocked models.
Addon vehicles show NULL as the name in the UI
Register display names client-side with AddTextEntry using the vehicle spawn/model name as the first argument and your display label as the second.
Non-owners see "edit price" or "remove" in the target menu
This is cosmetic. Permission checks run after the player clicks. Non-owners cannot perform those actions even if the option appears. This is by design for performance.
I could not edit my own listing until I relogged
Update to the latest version (1.2.1 through 1.2.3+). These builds fixed cases where owners could not edit their listing after other players listed vehicles first.
Display vehicles are missing after a server restart
Vehicle spawn is client-side, so slight desync between players is normal. Try clearing server and client cache. Ensure ESX or QBCore starts before gs_sellvehicles. If the issue persists, manually restart the resource as a temporary workaround.
A door disappears when I list my vehicle
gs_sellvehicles has no door-removal logic. Another resource is interfering. Test with a vanilla vehicle and disable suspect scripts one by one.
Can I run multiple dealership locations?
No. Only one dealership location is supported. Multi-location support would require a major rewrite and is not planned in the near term.
Can buyers test drive listed vehicles?
No. Test drives are not supported.
Does it work with FD Banking and JG Advanced Garages?
Framework-related code is unencrypted in the bridge files. Compatibility is achievable with custom bridge edits for your banking and garage setup.
I bought the ESX version but need QBCore
All framework code lives in editable bridge files. Replace the server bridge with the QBCore version or adapt the existing bridge for your framework's vehicle table, identifier, and money functions.