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
- Open the Qbox dashboard.
- Sign in with Discord.
- Open the CDN area.
- Generate an API token that can upload and delete files.
- 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.ImageStorageProvider = "qbox"Add the token in 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
| Field | Required | Description |
|---|---|---|
apiKey | Yes | Qbox CDN API token used to create presigned upload URLs. |
presignedEndpoint | No | Defaults to "https://api.qbox.re/v1/file/presigned-url". |
deleteEndpoint | No | Defaults to "https://api.qbox.re/v1/file". Used to remove unused photos. |
path | No | Optional folder path for uploaded photos. |
presignExpires | No | Pending upload lifetime in seconds. Defaults to 300. |
Troubleshooting
Check that Config.ImageStorageProviders.qbox.apiKey is correct and still active. If Qbox requires a bearer value, set it as:
apiKey = "Bearer YOUR_QBOX_CDN_API_TOKEN"Check that:
Config.ImageStorageProvideris set to"qbox".config/config.photos.luais loaded on the server.- Your server can make outbound HTTPS requests to
https://api.qbox.re. - The Qbox CDN API token has not expired or been revoked.
Check that the API token can delete files and deleteEndpoint is set to https://api.qbox.re/v1/file.
Last updated 26 August 2026