Installation

Installation

⚙️ Initial Setup

Follow these steps to install and configure the frkn-rentacar script on your server:

Map : https://www.gta5-mods.com/maps/mlo-cardealer-airport-altv-fivem-sp (Not mandatory, you can change the coordinates from config.)

📁 1. File Placement

resources/[your-category]/frkn-rentacar
resources/[your-category]/kolle_cardealer_airport

📄 2. Start the Resource

Add the following line to your server.cfg to ensure the script starts with the server:

ensure frkn-rentacar

🧩 3. SQL Import

Import the provided SQL file into your database so that the necessary information is recorded correctly.

For QB Add Job

qb-core/shared/jobs.lua


    rentacar = {
        label = 'Rent a car',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            ['0'] = { name = 'Recruit', payment = 50 },
            ['1'] = { name = 'Sales', payment = 75 },
            ['2'] = { name = 'Business Sales', payment = 100 },
            ['3'] = { name = 'Finance', payment = 125 },
            ['4'] = { name = 'Manager', isboss = true, payment = 150 },
        },
    }, 

For ESX Add Job

INSERT INTO `jobs` (`name`, `label`, `whitelisted`)
VALUES ('rentacar', 'Rent a car', 0);

INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`)
VALUES 
('rentacar', 0, 'employee', 'Employee', 10, '{}', '{}'),
('rentacar', 1, 'rentacar', 'Rent a car', 20, '{}', '{}');

If you want, you can change the job name in config.

Job = {
    JobName = 'rentacar', -- Job name for the job system
},

Last updated