โš™๏ธConfiguration

All configuration for Rentals V2 is handled inside config.lua. Below is a breakdown of every option and what it does.

Framework Integrations

Config.Locale = "en"
Config.Notifications = "ox_lib"
Config.Target = "auto"
Config.VehicleKeys = "auto"
Config.Inventory = "auto"
Option
Description
Values

Locale

Language used across the script

"en" "es" "fr" "de"

Notifications

Notification system

"qb-core" "ox_lib" "auto"

Target

Target system

"ox_target" "qb-target" "auto"

VehicleKeys

Vehicle key system

"auto" "qb" "wasabi" "MrNewb"

Inventory

Inventory system for cash handling

"auto" "ox_inventory" "origen_inventory" "tigann-inventory" "qb-inventory" "ps-inventory" "core_inventory"

๐Ÿ’ก Setting any of the above to "auto" will let the script detect your framework automatically. This works for most servers and is recommended unless you run into issues.


Screenshot / Image Upload

Config.Screenshot = {
    url      = 'https://api.fivemanage.com/api/image',
    apiKey   = 'Place_Your_API_HERE',
    encoding = "webp",
}
Option
Description

url

The API endpoint images are uploaded to

apiKey

Your authorization key for the image API

encoding

Format images are saved in: "webp" "jpg" "png"

๐Ÿ’ก You don't have to use FiveManage โ€” however it is what we recommend. It's one of the most popular and completely free image APIs available right now and the easiest to get set up. โ†’ Guide: Getting your FiveManage API Keyarrow-up-right


Feature Flags

Option
Description

allowJGfinanced

If true, vehicles financed through JG-Dealership can be listed for rent

CanEditVehicleName

If true, players can rename their vehicle in the listing UI before posting


World Locations

These coordinates define where the rental hub, vehicle submission zone, garage, and display vehicles are placed in the world. You can adjust these to fit your server's map.

The main NPC the player interacts with at the rental hub.

The zone where players drive up and submit their vehicle to be listed for rent.

The zone where renters interact to retrieve a rented vehicle. spawnVehicle defines the spots the vehicle can spawn at when collected.

A list of vector4 coordinates where listed vehicles are physically spawned in the world for players to browse.


Blacklists

Specific Vehicles

Add any vehicle spawn name here set to true to prevent it from being listed for rent.

Vehicle Classes

Entire vehicle classes can be blacklisted by their class ID. By default, aircraft, boats, service, emergency, military, and commercial vehicles are all restricted. For a full list of class IDs see the FiveM natives referencearrow-up-right.


Blip

Controls the map blip placed at the rental hub NPC location.

Option
Description

enabled

Show or hide the blip

label

Text shown when hovering over the blip

sprite

Blip icon ID

color

Blip color ID (2 = green)

scale

Size of the blip

shortRange

If true, only shows on the minimap when nearby


Markers

Ground markers drawn at interaction zones to help guide players to the right spots.

Option
Description

enabled

Show or hide markers

dist

Distance at which markers start rendering

type

Marker shape ID

scale

Size of the marker on each axis

color

RGBA color of the marker

zOffset

Vertical offset to position the marker flush with the ground


Photo Bay

โš ๏ธ This is a technical section. You rarely need to change anything here unless you know what you're doing.

The photo bay is an off-screen location used to automatically render thumbnail images of listed vehicles. The camera settings control the angle, distance, and framing of the shot and are calculated dynamically based on each vehicle's bounding box.

Last updated