> For the complete documentation index, see [llms.txt](https://jl-store.gitbook.io/jl-illegalphone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jl-store.gitbook.io/jl-illegalphone/jl_parkingticketjob/installation.md).

# Installation

## <mark style="color:blue;">Choosing your own billing system</mark>

Start by checking if your billing system is supported by looking in the config.lua file.

```lua
Config.Billingsystem = "okok"
```

We currently have okokBilling, qs-billing and Dusa Billing already supported for this resource. But don't stress if your billing system isn't supported. You can add it yourself in server/custom.lua file. If you don't know how to add it we will help you!

```lua
ESX.RegisterServerCallback("jl_parkingticketjob:sendInvoice", function(_, cb, data)
    
    local Target = QBCore.Functions.GetPlayerByCitizenId(data.identifier)
    
    if Config.Billingsystem == "okok" then
        TriggerEvent("jl_parkingticketjob:okokBilling", Target, data)
        
    elseif Config.Billingsystem == "quasar" then
        TriggerEvent("jl_parkingticketjob:quasarBilling", Target, data)
        
    elseif Config.Billingsystem == "dusa" then
        TriggerEvent("jl_parkingticketjob:dusaBilling", Target, data)
        
    elseif Config.Billingsystem == "custom" then
        -- Custom Billing System Handling
    end

    cb(true)
end)
```

## <mark style="color:blue;">Translations</mark>

This resource is fully translationable through the locales files.

```lua
Language["en"] = {

    parkingticket = {
        currency = "$",
        nophonenumber = "No phone number associated",
        search = "Search",
        invoice = "Invoice", 
        send = "Send",
        novehicles = "No Vehicles Found.",
        activecolleagues = "Active Colleagues",
        plate = "Plate",
        amount = "Amount",
        from = "From",
        reason = "Reason"
    },

}
```
