Documentation
  • Discord Server
  • About Us
  • Free Resources
    • Death Screen
      • PS-Dispatch Integration
    • Battlepass
      • Guides
      • Commands
        • Player Commands
        • Admin Commands
      • API
        • Server
    • Garages
      • Guides
        • Creating Interior
        • Creating Garage
        • How to find entity sets (customizations) for interior
  • Paid Resources
    • Elevator Creator V2
      • Installation
      • Accessible code
    • Radar System V2
      • Installation
      • Accessible code
    • Hotels Creator
      • Accessible code
    • Vehicle Shop Creator
      • Accessible code
    • Stocks Market
      • Accessible code
      • [DEV] - Usable Functions
    • Discord Voice Attendance
      • Installation
    • Deathmatch System
      • Installation
        • esx_ambulancejob
        • qb-ambulancejob
        • wasabi_ambulance
        • qbx_medical
        • codem-inventory
        • core_inventory
      • Accessible code
    • Object Creator
      • Dependencies
      • Accessible code
    • Cocaine Labs
      • Dependencies
      • Accessible code
    • Ownable Crafting Tables
      • Dependencies
      • Accessible code
      • Common Problems
    • Evidence System
      • Dependencies
      • Accessible code
      • Installation
      • API
    • Marketplace V2
      • Accessible code
      • Installation
      • Migration from V1
    • EMS Dispatch
      • Sending Dispatch
      • Accessing the Menu
      • Config File
    • Weed Planting
      • Accessible code
      • How to add new strain?
      • How to install
    • Advanced DarkNet System
      • Config
    • Advanced Taxi Job
      • Accessible code
      • Changelog
    • Advanced Gang Creator
      • Accessible code
      • Installation
        • QB Core
        • QBOX Core
      • API
      • FAQ
    • Advanced Private Cameras
      • ESX
        • Items
      • QBCore
        • Items
      • Accessible code
    • Advanced Elevator Creator
      • Accessible code
    • Advanced Ownable Rent Creator
      • SQL
      • ESX
      • QBCore
      • Config File
    • Advanced Job Creator
      • Installation
        • QB CORE
      • Accessible code
    • Advanced Ownable Shops
      • Installation
      • Accessible code
      • SQL
    • Advanced Ped Creator
      • SQL
      • Config File
    • Advanced Promocode Creator
      • Accessible code
      • SQL File
      • Common problems
    • Advanced Safe Zone Creator
      • Config File
    • Turf Wars
      • Ox Inventory
      • Accessible code
      • API
    • Advanced Gas Station Creator
      • Accessible code
    • Advanced Advertisements System
      • SQL File
      • Accessible code
    • Player Manager
      • Installation
      • Accessible code
    • Mechanic Job
      • Installation
      • Accessible code
      • SQL
    • Advanced Radar System
      • Accessible code
      • SQL
    • Crypto Mining
      • Installation
      • Accessible code
      • Items
      • SQL
    • Racing System
      • Accessible code
    • Car Theft
      • Accessible code
    • Advanced Solar Panels
      • Accessible Code
      • SQL
      • ESX
        • Items
      • QBCore
        • Items
    • Pilot Job
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • Metadata
        • qb-smallresources
      • QBOX
        • Metadata
    • Advanced Ownable Banks
      • Accessible Code
    • Post Office
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • SQL
      • Exports
    • Weather Sync
      • API
    • Billing System
      • Accessible code
      • SQL
      • Common problems
Powered by GitBook
On this page
  1. Paid Resources
  2. Billing System

Accessible code

Config = {
    EnableLogs = false,

    DiscordWebhook = '',
    ServerName = 'SERVER NAME',
    AvatarURL = '',
    EmbedColor = 5527807,

    VersioChecking = true,
    GiveInvoiceDistance = 5.0,
    RolePlayNames = false,
    Tax = 10, -- min 1 max 100
    ExpireDate = 7,

    Commands = {
        Enable = true,
        CreateInvoice = 'createinvoice',
        MyInvoices = 'myinvoices',
        SocietyInvoices = 'societyinvoices',
    },

    ReciveMoneyInCash = true,
    CashType = 'money',

    InvoiceList = {
        ['police'] = { -- JOB NAME
            mingrade = 0,
            reasonlist = {
                { label = 'Other', isforCustom = true }, -- dont touch
                { label = 'Speeding', price = 500 },
                { label = 'Red Light', price = 450 },
                { label = 'Illegal U-Turn', price = 250 },
            },
        },
        ['mechanic'] = {
            mingrade = 0,
            reasonlist = {
                { label = 'Other', isforCustom = true }, -- dont touch
                { label = 'Vehicle Repair', price = 500 },
                { label = 'Vehicle Clean', price = 150 },
            },
        },
    },

    Translate = {
        ['create_invoice'] = 'Create Invoice',
        ['my_invoices'] = 'My Invoices',
        ['society_invoices'] = 'Society Invoices',
        
        ['confirm'] = 'Confirm',
        ['create'] = 'Create',
        ['cancel'] = 'Cancel',
        ['amount'] = 'Amount',
        ['reason'] = 'Reason',
        ['price'] = 'Price',
        ['sender'] = 'Sender',
        ['recipient'] = 'Recipient',
        ['tax'] = 'Tax',
        ['pay'] = 'Pay',

        ['notpaid'] = 'NOT PAID',
        ['paid'] = 'PAID',
        ['canceled'] = 'CANCELED',
        ['expired'] = 'EXPIRED',
        ['view'] = 'VIEW',
        
        ['no_permission'] = 'You do not have permission for this command',
        ['min_grade'] = 'You need a minimum grade to access',
        ['no_money'] = 'You dont have enough money',

        ['invoice_paid'] = 'You have successfully paid invoice #%s for %s$',
        ['invoice_canceled'] = 'You have successfully canceled invoice #%s',

        ['total_price'] = 'Total Price',
        ['select_type'] = 'Select invoice type',
        ['invoice'] = 'Invoice',
        ['status'] = 'Status',
        ['actions'] = 'Actions',
        ['received_date'] = 'Received Date',
        ['expire_date'] = 'Expire Date',
        ['player_info'] = 'If you pay the invoice now, tax will not be included in the price of the invoice!',
        ['search'] = 'Search ID',

        ['time_log'] = 'Time',
        ['getinvoice_log'] = '**INVOICE ID: #%s**\n\n**Action:** Received\n\n**Recipient:** %s\n\n**Sender:** %s\n\n**Price:** %s$\n\n**Reason:** %s\n\n**Job:** %s\n\n**Received Date:** %s\n\n**Expire Date:** %s',
        ['cancelinvoice_log'] = '**INVOICE ID: #%s**\n\n**Action:** Canceled\n\n**Player:** %s',
        ['payinvoice_log'] = '**INVOICE ID: #%s**\n\n**Action:** Paid\n\n**Player:** %s\n\n**Price:** %s$',
    
        ['notify_success'] = 'SUCCESS',
        ['notify_error'] = 'ERROR',
    },
}

function SetMoneyToSociety(amount, job)

end
Utils = {}

Utils.Notification = function(title, description, type, duration)
    lib.notify({
        title = title,
        description = description,
        type = type,
        duration = duration or 5000
    })
end
Utils = {}

Utils.Notification = function(src, title, description, type, duration)
    TriggerClientEvent('ox_lib:notify', src, {
        title = title,
        description = description,
        type = type,
        duration = duration
    })
end
PreviousBilling SystemNextSQL

Last updated 10 months ago