Config File

Config file for "Ownable Rent Creator"

This script contains 4 files that can be edited with the escrow version:

  • locales/*.lua

    • You can create as many locales you want and configure which one you will use in config/config.lua. This resource can be completely translated with locales.

  • client/editable.lua

    • Edit notifications

  • server/editable.lua

    • Edit logs system

    • Edit /rentcreator command

  • config/vehicles.lua:

    • Edit rentable vehicles & their categories

  • config/config.lua:

Shared = {
    Locale = 'en',

    Notify = {
        duration = 5000, -- miliseconds
        position = 'top-right' -- 'top' or 'top-right' or 'top-left' or 'bottom' or 'bottom-right' or 'bottom-left' or 'center-right' or 'center-left'
    },
    
    Logs = {
        enabled = true,
        webhook = '',
        servername = 'Uniq Scripts',
        color = 6579450,
        icon_url = 'https://dunb17ur4ymx4.cloudfront.net/webstore/logos/248d77847b320034db12949cf577772b654daadd.png'
    },

    Commands = {
        rentcreator = {
            name = 'rentcreator',           -- command for accessing creator menu: create rent station, delete rent station, rent stations list
            restricted = 'group.admin',     -- group that will have acces to command 
        }
    },

    Keys = { -- https://docs.fivem.net/docs/game-references/controls/
        finish = 191,
        cancel = 194,
        delete = 256,
        accessRent = 38,
        rotateRight = 174,
        rotateLeft = 175,
        accessBossMenu = 38,
    },

    TextUI_Position = 'top-center', -- 'right-center' or 'left-center' or 'top-center'

    JobsOptions = {
        ['police'] = 'Police',
        ['fbi'] = 'FBI',
        ['ambulance'] = 'EMS',
        ['mechanic'] = 'Mechanic'
    },
    
    ClosestRadius = 10, -- radius in which the script will search for the nearest station that needs to be deleted when the "closest" option is selected

    Marker = {
        enabled = true, -- whether to use marker or not (textUI will still be shown)
        type = 29, -- https://docs.fivem.net/docs/game-references/markers/
        color = {r = 100, g = 100, b = 250}, -- https://www.rapidtables.com/web/color/RGB_Color.html
        scale = {x = 0.5, y = 0.5, z = 0.5}
    },

    VehiclesTable = 'player_vehicles', -- player/owned vehicles table in sql

    VehicleKeys = false, -- whether you are using vehiclekeys system or not

    MinVehicles = 1, -- minimum amount of vehicles admin must submit when creating stations
    MaxVehicles = 5, -- maximum amount of vehicles admin can submit when creating stations
    MinRentPrice = 100, -- minimum rent price allowed for admins to set
    MaxRentPrice = 10000, -- maximum rent price allowed for admins to set

    RentVehColor = { -- https://pastebin.com/pwHci0xK
        color1 = 0,
        color2 = 0
    },
    
    Distance = {
        marker = 10, -- distance from which the rent station marker will be seen
        textui = 2 -- distance from which the textui will be seen
    },

    DisplayBlips = true, -- whether to display business blips or not
    OwnerOnlyBlips = true, -- whether to display blips only for owner, if false blips will be displayed to everyone

    Blips = { -- https://docs.fivem.net/docs/game-references/blips/
        id = 475,
        color = 7,
        scale = 1.0
    }
}

-- Framework
-- framework loader, configured for the framework you bought (ESX/QB)

-- Vehicle Keys
function addVehicleKeys(plates)
    -- your code here
end

Last updated