# 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"
    },

}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jl-store.gitbook.io/jl-illegalphone/jl_parkingticketjob/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
