📃Configs

Config = {}

-- General Settings --
Config.Target = "ox" -- "qb" or "ox"
Config.EmoteMenu = "rp" -- "rp" or "dp" or "scully" or "aty_emote" or "cylex_animmenuv2" or "r_animations" ( open code on config_functions.lua )
Config.Notify = "ox" -- "standalone", "qb" or "okok" or "ox" or "codem" ( open code on config_functions.lua )
Config.AutoDatabase = true -- If you set this to true, all the database tables to DB will be done automatically
Config.Debug = false -- Enable debug prints
Config.GlobalVehicleTarget = true -- Enable global vehicle targeting for police officers
Config.Locale = "en" -- "en" or "pt"

-- Command Settings --
Config.Commands = {
    openCitationMenu = {
        enabled = true, -- Enable/Disable the command
        command = "citationmenu", -- Command name
        description = "Open the traffic citation menu" -- Command description
    },
}

-- Society Settings --
Config.Society = {
    enabled = false, -- Enable society money system
    script = "qb-management", -- "qb-management" or "qb-banking" or "okokBanking" or "renewed-banking"
    percentage = 100 -- Percentage of fine amount that goes to society (100% = all money goes to society)
}

-- Police Job Settings --
Config.PoliceTraffic = {
    ["police"] = {
        job = "police",
        society = "police",
        jobLabel = "Police",
        jobLogo = "police.webp",
        paymentNPC = {
            coords = vector3(433.54, -985.81, 30.71),
            heading = 88.77,
            model = "s_f_y_cop_01"
        },
        violations = {
            { label = "Speeding", fineAmount = 150 },
            { label = "Running a Red Light", fineAmount = 200 },
            { label = "Illegal Parking", fineAmount = 100 },
            { label = "Reckless Driving", fineAmount = 250 },
            { label = "Driving Without a License", fineAmount = 300 }
        }
    },
}

-- Insurance Settings --
Config.Insurance = {
    enabled = true, -- Enable insurance discount system
    discountPercentage = 25, -- Discount percentage for insured vehicles (25% = 25% discount)
    checkOnCitation = true, -- Check insurance when issuing citation
    showInPaymentMenu = true -- Show insurance status in payment menu
}

-- Email Notification Settings --
Config.Email = {
    enabled = true, -- Enable email notifications when citations are issued
    script = "lb-phone", -- "gksphone" or "lb-phone"
    sender = {
        name = "Traffic Department", -- Sender name that appears in the email
        email = "traffic@lspd.gov", -- Sender email (for lb-phone)
        image = "/html/static/img/icons/traffic.png" -- Icon/image for the email (gksphone)
    },
    templates = {
        subject = "Traffic Citation Issued - Fine #%s",
        message = [[
🚔 TRAFFIC CITATION NOTICE 🚔

Dear %s,

You have been issued a traffic citation by %s from %s.

VIOLATION DETAILS: 📋 %s

💰 Fine Amount: $%d

📅 Date Issued: %s

📍 Location: %s

🚗 Vehicle: %s (%s)

%s

PAYMENT INFORMATION:
You can pay your fine at any %s payment station or visit our website.
Fine must be paid within 30 days to avoid additional penalties.

Thank you for your cooperation.

%s Traffic Department
        ]]
    }
}

Last updated