> 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_dutypanel/cl_main.lua.md).

# cl\_main.lua

```lua
function formatCurrency(amount, locale)
    local formattedAmount = nil
    if locale == "sv" then
        formattedAmount = string.format("%s %s", amount, Config.CurrencySymbols[locale])
    elseif locale == "en" then
        formattedAmount = string.format("%s%s", Config.CurrencySymbols[locale], amount)
    end
    return formattedAmount
end

function showTextUI(text, options)
    if Config.TextUI == 'ox_lib' then
        lib.showTextUI(text, options)
    elseif Config.TextUI == 'okok' then
        exports['okokTextUI']:Open(text, 'lightgreen', 'right', true) 
    end
end


function closeTextUI()
    if Config.TextUI == 'ox_lib' then
        lib.hideTextUI()
    elseif Config.TextUI == 'okok' then
        exports['okokTextUI']:Close()
    end
end
```
