Config File

The script is highly customizable, giving you full control over its functionality and behavior. Below is a list of the configuration files provided with the resource.

chevron-rightshared/config.luahashtag
Config = {}

Config.Debug = false -- debug zones
Config.ImdgDirectory = "nui:/ox_inventory/web/images/" -- Location of vehicle photos
Config.Zones = {
    ["Garaz"] = {
        coords = vec3(240.2, -784.39, 31.0),
        size = vec3(5.5, 29.0, 6.25),
        rotation = 339.0,
        spawn = {
            vec4(245.0965, -773.0219, 30.6815, 68.5623),
            vec4(244.8812, -775.1188, 30.6820, 68.2942),
            vec4(243.9712, -777.5682, 30.6486, 70.6967),
            vec4(243.3046, -780.4046, 30.6116, 65.4426),
            vec4(242.1883, -782.6904, 30.5891, 65.6714),
            vec4(240.0125, -787.8524, 30.5489, 70.4421)
        }
    },
    ["Garaz-2"] = {
        coords = vec3(43.0, -887.0, 30.0),
        size = vec3(8.0, 11, 4.0),
        rotation = 70.0,
        spawn = {
            vec4(38.5734, -886.7894, 30.2087, 160.4350),
            vec4(41.6546, -887.8044, 30.2019, 157.1231),
            vec4(44.6354, -889.0912, 30.1911, 156.6422),
            vec4(46.1670, -886.2452, 30.2368, 337.5978),
            vec4(42.6696, -884.7576, 30.2489, 346.9433)
        }
    }
}

Config.TextUi = function()
    lib.showTextUI("[E] Otwórz garaż", {
        position = "left-center",
        iconAnimation = 'beat',
        icon = "car",
        style = { -- You will find styles on the website https://overextended.dev/ox_lib/Modules/Interface/Client/textui
            borderRadiuds = 0,
            backgroundColor = 'rgba(0, 0, 0, 0.75)',
            color = 'white',
            fontSize = 18,
            padding = "10px 20px"
        }
    })
end


Config.Impound = {
    PedModel = "s_m_y_dockwork_01",
    Coords = vector4(-177.3660, -1158.4995, 23.8137, 0.1019),
    Target = {
        label = 'Zarządzaj pojazdami',
        icon = 'fa-solid fa-car',
        distance = 2.0,
    },
    Blip = {
        sprite = 50,
        scale = 0.7,
        color = 5,
        label = "Odholownik"
    }
}

Config.HideCar = {
    icon = 'fa fa-car',
    label = "Schowaj pojazd",
    distance = 2.0,
}

Config.ImpoundPrice = {
    Account = "money", -- money or bank 
    Price = 5000
}

Config.Blip = {
    sprite = 50,
    scale = 0.7,
    color = 3,
    label = "Garaż"
}

Config.Keys = {
    active = true,
    ifTrue = {
        functions = function(source, plate, type)
            if type == "addKey" then
                -- put your export here
            elseif type == "removeKey" then
                -- put your export here
            end
        end
    }
}
-- You can find notify translations in other tabs

Config.Notifications = {
    AlreadyInVehicle = "Nie możesz wyciągnąć pojazdu będąc w innym pojeździe.",
    IsParkingFull = "Brak wolnych miejsc parkingowych",
    VehicleSpawned = "Pojazd został wyciągnięty.",
    NotCloseEnoughToVehicle = "Nie jesteś wystarczająco blisko pojazdu.",
    VehicleStored = "Pojazd został schowany do garażu.",
    VehicleStorageFailed = "Nie udało się schować pojazdu.",
    VehicleTowed = "Pojazd został odholowany.",
    PlayerIdMissing = "Podaj ID gracza!",
    VehicleTransferred = "Pojazd został przekazany!",
    VehicleTransferFailed = "Nie udało się przekazać pojazdu!",
    NotEnoughCash = "Nie masz wystarczająco pieniędzy w portfelu.",
    NotEnoughBankMoney = "Nie masz wystarczająco pieniędzy na koncie bankowym.",
    VehicleReceivedMessage = "Otrzymałeś pojazd o tablicy: "
}

Last updated