JG Docs
Used Vehicles

Qbox CDN

Qbox CDN is a hosted CDN for FiveM media. JG Used Vehicles asks Qbox for a temporary upload URL, then the in-game browser uploads each photo without exposing your API key to players.

Create a Qbox CDN API token

  1. Open the Qbox dashboard.
  2. Sign in with Discord.
  3. Open the CDN area.
  4. Generate an API token that can upload and delete files.
  5. Copy the token.

The dashboard labels may change. You need a CDN API token with file access.

Configure JG Used Vehicles

Set the provider in config/config.lua:

config/config.lua
Config.ImageStorageProvider = "qbox"

Add the token in config/config.photos.lua:

config/config.photos.lua
Config.ImageStorageProviders.qbox = {
  apiKey = "YOUR_QBOX_CDN_API_TOKEN",
  presignedEndpoint = "https://api.qbox.re/v1/file/presigned-url",
  deleteEndpoint = "https://api.qbox.re/v1/file",
  path = nil,
  presignExpires = 300,
}

Use the exact API key value supplied by Qbox. If the dashboard tells you to include a Bearer prefix, include it in apiKey.

Test the upload

Restart jg-usedvehicles and open the vehicle camera. The camera first uploads and removes a small test image. Take one vehicle photo after the provider check passes and confirm it appears in the photo library.

If the test fails, check:

  • The API token was copied correctly.
  • The token has file upload access.
  • Your Qbox CDN storage limit has not been reached.
  • Your server can make outbound HTTPS requests to Qbox.
  • The in-game browser can reach the temporary Qbox upload URL.

Config fields

FieldRequiredDescription
apiKeyYesQbox CDN API token used to create presigned upload URLs.
presignedEndpointNoDefaults to "https://api.qbox.re/v1/file/presigned-url".
deleteEndpointNoDefaults to "https://api.qbox.re/v1/file". Used to remove unused photos.
pathNoOptional folder path for uploaded photos.
presignExpiresNoPending upload lifetime in seconds. Defaults to 300.

Troubleshooting

Last updated 26 August 2026

On this page