[PAID][ESX] Car Rental | MK-Services

This resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5)/ Extendedmode.

This is a configurable car rental script which allows to rent vehicles to players!

Features

  • Fully configurable multi location car rental
  • Configurable prices per vehicle
  • Fully customizable blips & markers
  • Customizable maximum amount of rented vehicles per player
  • Adjustable notification event
  • ESX events and prefix customizable
  • Low performance consumption (0.00ms - 0.05ms)

Showcase: Click me
Buy: Click me (Secured by FiveM Escrow System)

Config Snippets:

MK = MK or {}

-- By default 'en' and 'de' are supported.
-- You can modify or add new translations in the translations.lua file
MK.Language = 'en'

MK.ESXSharedObject = 'esx:getSharedObject'
MK.ESXPlayerLoaded = 'esx:playerLoaded'

MK.RentalLocations = {
    [0] = {
        Position = { x = 313.99291, y = -743.1456, z = 29.194257, h = 245.83389 },
        Blip = {
            Enabled = true,
            Sprite = 226,
            Color = 1,
            Size = 0.8
        },
        Marker = {
            Enabled = false,
            Type = 1,
            Size = { x = 2.0, y = 2.0, z = 0.5 },
            Color = { r = 255, g = 255, b = 255 }
        },
        Ped = {
            Enabled = true,
            Ped = 's_f_y_airhostess_01'
        },

        CarCategory = "Cars1", -- Picks the vehicles from the category list below
        CarSpawn = { x = 322.02023, y = -740.6819, z = 29.349382, h = 161.45597 } 
    }, 
    [1] = {
        Position = { x = 314.79119, y = -740.2845, z = 29.187311, h = 240.92735 },
        Blip = {
            Enabled = true,
            Sprite = 226,
            Color = 1,
            Size = 0.8
        },
        Marker = {
            Enabled = false,
            Type = 1,
            Size = { x = 2.0, y = 2.0, z = 0.5 },
            Color = { r = 255, g = 255, b = 255 }
        },
        Ped = {
            Enabled = true,
            Ped = 's_f_y_airhostess_01'
        },
        CarCategory = "Cars2", -- Picks the vehicles from the category list below
        CarSpawn = { x = 321.75265, y = -734.3334, z = 29.350677, h = 168.33535 }
    }, 
}



MK.CarCategories = {
    ["Cars1"] = {
        {
            spawnname = "adder",
            label = "Adder",
            price = 1000, -- per 5 minutes
        },
        {
            spawnname = "zentorno",
            label = "Zentorno",
            price = 1000, -- per 5 minutes
        }
    },
    ["Cars2"] = {
        {
            spawnname = "zentorno",
            label = "Zentorno",
            price = 500, -- per 5 minutes
        }
    }
}

MK.Notify = function(type, message)
    if type == 'success' then
        TriggerEvent('esx:showNotification', message)
    elseif type == 'warning' then
        TriggerEvent('esx:showNotification', message)
    elseif type == 'error' then
        TriggerEvent('esx:showNotification', message)
    elseif type == 'info' then
        TriggerEvent('esx:showNotification', message)
    end
end

Code is accessible No
Subscription-based No
Lines (approximately) LUA: ~500 UI: ~600
Support Yes
1 Like

Just use GitHub - Benzo00/benzo-carrental: Car Rental Script for esx-legacy

1 Like