NVT RENT A CAR

Config = {}

QBCore = exports['qb-core']:GetCoreObject()  -- if you use QBCore
-- ESX = exports["es_extended"]:getSharedObject() -- if you use ESX

Config.Settings = {
    Framework = "QB", -- QB/ESX/ST - (ST = Standalone)
    Target = "QB", -- QB/OX/BT/ST - (ST = No Target)
    Blip_name_map = "Rent a", -- Blip name 
    target_message = "Open rent a car menu", -- QB TARGET MESSAGE
    ST_MESSAGE = "[E] RENT A CAR", -- Standalone ped message
    Returncar = "Return Car", -- Return car
    Ped = "a_m_y_business_02", -- Ped fivem docs
    Blipid = 500, -- Blip id fivem docs
    BlipColor = 33, -- Blip color
    RentLocation = vector4(-9.46, -1096.81, 26.67, 101.76),
    TestDriveLocation = vector4(-930.05, -3278.49, 13.94, 61.23),
    CarSpawn = vector4(-11.56, -1102.34, 26.67, 97.73),
    ReturnLocation = vector3(-13.6, -1105.9, 26.67),
    TestDriveTime = 60, -- For how long players can test drive a car.
    TestDriveLocationSize = 250, -- How far can a player go with a test drive car.
    MaxTune = false, -- If the rented cars are full tunning or no.
    LimitCars = false, -- If true players will be able to rent only 1 car and will have to return it to rent another one.
    CarBlip = true -- If true the rental car will be marked on the map.
}
Config.Lang = {
    this_is_not_the_same_car = "This is not the same car you rented!",
    press_e_return_car = "Press [E] to return the car",
    seconds_left = "Seconds Left ",
    you_dont_have_money = "You don't have enough money!",
    You_rented = "You rented ",
    For = " For ",
    symbol = " $ ",
    you_already_have_a_car_rented_out = "You already have a car rented out.",
}

Config.CarsName = {
	{
		name = 'Elegy',
        carname = "Nissan Skyline R34",
        price = 1500, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194701440158027806/800px-Elegy.png?ex=65b14f6b&is=659eda6b&hm=49cb8fa5bc7c297e1d075b378b43434cf1a2f888d25e519cef73206b10518c92&',
        seat = " 2 Seat",
        automatic = "Automatic",
        diesel = "Diesel",
	},
    {
        name = 'Zentorno',
        carname = "Zentorno",
        price = 1750, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194701754634354809/800px-Zentorno.png?ex=65b14fb6&is=659edab6&hm=021191f547587ee0fceb736d947a7087c3257460d658a8d4f8893d7a0c2c2b9a&',
        seat = " 2 Seat",
        automatic = "Automatic",
        diesel = "Diesel",
    },
    {
        name = 'Faggio',
        carname = "Faggio",
        price = 250, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194702062940852365/800px-Faggio.png?ex=65b15000&is=659edb00&hm=d02f8fbfa0235f5280942c28609a49b744c618906878e85c0d6217c0ce8bfa11&',
        seat = " 2 Seat",
        automatic = "Automatic",
        diesel = "Gasoline",
    },
    {
        name = 'Asea',
        carname = "Asea",
        price = 250, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194702244831043706/800px-Asea.png?ex=65b1502b&is=659edb2b&hm=0db09f955cc929fd52ff6e2f91ffa8c46e27e95c1cb4e7e02f58cb4d079f2d43&',
        seat = " 4 Seat",
        automatic = "Manuel",
        diesel = "Gasoline",
    },
    {
        name = 'f620',
        carname = "Aston Martin",
        price = 1150, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194702595239989309/800px-F620.png?ex=65b1507f&is=659edb7f&hm=1151ff750e22c6e1a13ba395a766163dcc0d3e29234e872b150d7d08b4f0ca9c&',
        seat = " 2 Seat",
        automatic = "Automatic",
        diesel = "Diesel",
    },
    {
        name = 'carbonrs',
        carname = "Carbon RS",
        price = 1400, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194702935276400680/800px-CarbonRS.png?ex=65b150d0&is=659edbd0&hm=9f655d68bf3412801001f8e54fdc8deb8c647f705d1188f5369ecd92c81b2959&',
        seat = " 2 Seat",
        automatic = "Automatic",
        diesel = "Diesel",
    },
    {
        name = 'baller',
        carname = "Baller",
        price = 750, -- Price to rent
        url = 'https://cdn.discordapp.com/attachments/1194701424467132518/1194703190906646658/800px-Baller.png?ex=65b1510d&is=659edc0d&hm=404e86d38e27af9eb882825fbc01de6dfe3cbb37add686f2f2d60bf8068ba59a&',
        seat = " 4 Seat",
        automatic = "Automatic",
        diesel = "Gasoline",
    },
}

Last updated