Skip to main content

qs-phone

For quasar phone you can just replace this part from the first RegisterServerCallback qs-smartphone:server:GetInvoices. Set your Config.billingSystem = 'default' for this to work.

qs-phone/client/custom/misc/invoices.lua
          if Config.billingSystem == 'default' then
local invoices = MySQL.Sync.fetchAll("SELECT * FROM billings WHERE `identifier` = '"..Player.identifier.."'", {} )
if invoices[1] ~= nil then
for k, v in pairs(invoices) do
local Ply = ESX.GetPlayerFromIdentifier(v.biller_id)
v.number = ''
v.label = v.description
v.amount = v.price
if Ply ~= nil then
v.number = QS.GetPlayerFromId(source).PlayerData.charinfo.phone
else
local resultNumber = MySQL.Sync.fetchAll("SELECT charinfo FROM `users` WHERE `identifier` = '"..v.biller_id.."'", {} )
if resultNumber and resultNumber[1] then
v.number = json.decode(resultNumber[1].charinfo).phone
else
v.number = v.biller or 'Company Bill'
end
end
end
cb(invoices)
else
cb({})
end