[QB/ESX] - m-CarRental - Advanced Car Rental System

A script by m-Scripts

No reviews yet.
[QB/ESX] - m-CarRental - Advanced Car Rental System main image

Full Description

:exclamation: About

Welcome, I present m-Car Rental, a car rental script.
This script allows anyone to rent their own car for whatever price they want. That is, they can have a new source of money by renting their cars to other players in the city.

:bookmark_tabs: Features

  • 0.00ms
  • Optimized
  • Easy setup
  • Rent your car:
    • When you rent your car, with your modifications, the person renting it can modify the car again because, when the rental period ends, it returns to you with your initial modifications.
    • It is possible to define: Car name, Category and Price per day.
  • Notifications:
    • When the rent time ends, both players are notified.
  • Supported (QBCore):
  • Supported (ESX):
  • Notifications Supported: qb-core / okok / ox_lib / custom
  • The history listing is defined through ( Config.HistoryLimit )
  • The maximum rental days are defined through ( Config.MaxRentDays )
  • Option to vehicle fade through ( Config.VehicleFade )
  • It is possible to change the date format through ( Config.DateFormat )
  • Is it possible to change the currency through ( Config.Currency )
  • It is possible to add your own images to the cars
  • It is possible to change the avatar in the upper right corner

:camera_flash: Screenshots:

See Screenshots




4

:spiral_notepad: Config Preview:

Config, Locales = {}, {}

Config.Locale = 'en' -- en

Config.Core = "qb-core" -- Your core folder name

Config.Display = 'qb-target' -- "okokTextUI" | "qb-target" | "ox_target" | "qbTextUI"

Config.Notify = "qb" -- Choose between "qb", "okok" or "ox" notify

Config.Currency = '€' -- Currency used on the script

Config.UseKMH = false -- Speed system used on the script

Config.MaxRentDays = 7 -- Max days that a vehicle can be rented

Config.OpenKey = 38 -- Key to open the UI

Config.HistoryLimit = 25 -- Limit of the rental history on history tab 

Config.DateFormat = "%d/%m - %H:%M" -- Date format

Config.GarageToSend = 'pillboxgarage' -- Garage to send the rented vehicle

Config.vehicleNameFromFile = false -- If you want to use the vehicle name from the file, set to true

Config.VehicleFade = true -- Fade the vehicle when the rent is finished

Config.VehicleFadeTime = 60 -- Time to get the ped out of the vehicle in seconds

Config.BlipSprite = 523 -- The blip itself

Config.BlipDisplay = 4 -- Blip Display

Config.BlipScale = 0.8 -- Blip Scale

Config.BlipColour = 5 -- Blip Colour


Config.Categories = {
    ['coupes'] = 'Coupes',
    ['sedans'] = 'Sedans',
    ['compacts'] = 'Compacts',
    ['muscle'] = 'Muscle',
    ['sportsclassics'] = 'Sports Classics',
    ['sports'] = 'Sports',
    ['super'] = 'Super',
    ['motorcycles'] = 'Motorcycles',
    ['offroad'] = 'Off-Road',
    ['suvs'] = 'SUVs',
    ['vans'] = 'Vans',
}

Config.Locations = {
    {coords = vector3(-41.1, -1675.02, 29.45)},
    --{coords = vector3(1958.83, 4628.03, 41.07)},
}

-- Don't touch in this function
	
function _fx(id)
    if Locales[Config.Locale][id] then
        return Locales[Config.Locale][id]
    else
        print("The locale '"..id.."' doesn't exist!")
    end
end

:pushpin: Links

Code is accessible 2 Files Configuration
Subscription-based No
Lines (approximately) ~800
Requirements N/A
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily