cl_main.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

Last updated