Configuration

If you are using ox_lib, then for using ox_lib progressbar you must unblock 1 line on fxmanifest.lua, then type to game/server console "refresh" and "ensure ug_parkingmeter" Config.lua

Config.Framework = "newesx" -- newesx / oldesx / newqb / oldqb / autodetect

Config.Notification = "esx" -- esx / qb / other
Config.Progress = "ox_lib" -- ox_lib_circle / ox_lib / qbcore / progressBars
Config.Target = "ox_target" -- qb-target / ox_target

Config.Cooldown = 1 -- cooldown for parking to expire (minutes)
Config.MoneyPrice = 100 -- Money for paying parking slot

Config.DispatchAlert = true
Config.Dispatch = "cd_dispatch" -- cd_dispatch / linden_outlawalert 
Config.DispatchCooldown = 1 -- cooldown for notify police when parking expire (minutes)
Config.Jobs = {
    [1] = "police",
    [2] = "sheriff"
}

Config.Locale

Config.progressbar = {
    pay = {
        duration = 3000,
        label = "Making payment..."
    },
    checkpay = {
        duration = 3000,
        label = "Checking payment..."
    },
}

Config.Locale = {
    ["BEENPAID"] = {
        label = "Parking is already paid!",
        type = "error",
        time = 5000,
    },
    ["CANCEL"] = {
        label = "Canceled!",
        type = "error",
        time = 5000,
    },
    ["YOUPAID"] = {
        label = "You paid parking fee!",
        type = "success",
        time = 5000,
    },
    ["EXPIRED"] = {
        label = "Parking payment expired!",
        type = "error",
        time = 5000,
    },
    ["NOTCASH"] = {
        label = "You don't have enough cash!",
        type = "error",
        time = 5000,
    },
    ["ISPAID"] = {
        label = "Parking is Paid",
        type = "success",
        time = 5000,
    },
    ["ISNTPAID"] = {
        label = "Parking isn´t Paid",
        type = "error",
        time = 5000,
    },
    -- TARGET
    ["TARGET"] = {
        label = "Pay Parking $"..Config.MoneyPrice.."",
    },
    ["CHECK"] = {
        label = "Check payment",
    }
}

Last updated