Config Settings
Config Settings
⚙ Config Settings (frkn-rentacar)
This section provides detailed explanations of each setting in the FRKN configuration file.
🔧 General Settings
FRKN.ServerCallbacks
FRKN.ServerCallbacksType:
tableUsed internally to manage server callbacks for async operations. (No manual changes required.)
FRKN.VehicleTableName
FRKN.VehicleTableNameDefault:
'player_vehicles'Description: The database table where player-owned vehicles are stored. If your framework uses a different table (e.g.,
owned_vehiclesin ESX), update this value.
FRKN.ExpireSystem
FRKN.ExpireSystemType:
booleanDefault:
falseDescription: Enables or disables the vehicle expiration system.
true: Vehicles not returned within the set time will expire.
false: No expiration, players can keep rented vehicles indefinitely.
FRKN.AutoExpireDays
FRKN.AutoExpireDaysType:
numberDefault:
7Description: The number of days before a rented vehicle automatically expires (if expiration is enabled).
FRKN.ExpirePenaltyAmount
FRKN.ExpirePenaltyAmountType:
numberDefault:
2500Description: Amount (in $) deducted from the player's bank account if the vehicle is not returned after expiration.
FRKN.GarageName
FRKN.GarageNameType:
stringDefault:
'pillboxgarage'Description: The garage where rented vehicles will be stored/spawned after a rental transaction.
FRKN.VehicleSpeedUnit
FRKN.VehicleSpeedUnitType:
stringOptions:
'kmh'or'mph'Description: The speed unit displayed in the rental UI and used for mileage tracking.
👔 Job Settings
FRKN.Job.JobName
FRKN.Job.JobNameDefault:
'rentacar'Description: The job name used for the Rent-A-Car system. Players with this job can add vehicles to the rental list and manage rentals.
🚗 KM & Pricing Settings
FRKN.Kmh.KmhControl
FRKN.Kmh.KmhControlType:
booleanDefault:
trueDescription: Whether to use km/h (
true) or mph (false) in rental calculations.
FRKN.Kmh.MaxKmhValue
FRKN.Kmh.MaxKmhValueType:
numberDefault:
150Description: The maximum km/h (or mph) limit that can be selected when renting a car.
FRKN.Kmh.KmhPrice
FRKN.Kmh.KmhPriceType:
numberDefault:
1Description: Price charged per km driven during the rental.
FRKN.Kmh.DurationPrice
FRKN.Kmh.DurationPriceType:
numberDefault:
10Description: Price charged per hour of rental time.
FRKN.Kmh.UnlimitedPrice
FRKN.Kmh.UnlimitedPriceType:
numberDefault:
500Description: Flat price for unlimited mileage rentals.
🎯 Target & Spawn Settings
FRKN.Rent.targetSystem
FRKN.Rent.targetSystemOptions:
"qb-target"or"ox_target"Description: Determines which targeting system is used for interacting with the Rent-A-Car NPC or zone.
FRKN.Rent.targetCoords
FRKN.Rent.targetCoordsType:
vector3Default:
vector3(-835.9119, -2350.4626, 14.6904)Description: Location of the Rent-A-Car NPC or interaction point.
FRKN.Rent.VehicleSpawnCoord
FRKN.Rent.VehicleSpawnCoordType:
vector4Default:
vector4(-820.4969, -2343.7712, 14.5707, 157.2429)Description: Coordinates and heading where rented vehicles will spawn.
🖥 UI Settings
FRKN.InGameUIPlace
FRKN.InGameUIPlaceOptions:
'top-left','top-right','bottom-left','bottom-right'Default:
'bottom-right'Description: Position of the rental in-game UI.
🎨 Vehicle Colors
FRKN.VehicleColors
FRKN.VehicleColorsType:
tableDescription: A list of available paint colors for rented vehicles. Each entry includes:
label: Display name.index: GTA color index.rgb: RGB preview values.price: Additional cost for the selected color.
Example:
{label = "Red", index = 27, rgb = { r = 255, g = 0, b = 0 }, price = 150}🤖 Discord Integration
FRKN.BotToken
FRKN.BotTokenType:
stringDefault:
""Description: Your Discord Bot token (used to fetch player profile images in the UI).
Leave empty to disable Discord avatar integration.
🔑 Vehicle Keys
AddVehicleKey(plate)
AddVehicleKey(plate)Description: Gives the renter keys to the rented vehicle by triggering:
TriggerEvent('vehiclekeys:client:SetOwner', plate)
Last updated