Yet again, more lies.
This is nestled right into the server.lua
-- Commands
QBCore.Commands.Add('bill', 'Bill A Person', {{name = 'id', help = 'ID Player'}, {name = 'amount', help = 'Amount'}}, false, function(source, args)
local biller = QBCore.Functions.GetPlayer(source)
local billed = QBCore.Functions.GetPlayer(tonumber(args[1]))
local amount = tonumber(args[2])
if biller.PlayerData.job.name == "police" then
if billed ~= nil then
if biller.PlayerData.citizenid ~= billed.PlayerData.citizenid then
if amount and amount > 0 then
if billed.Functions.RemoveMoney('bank', amount) then
TriggerClientEvent('QBCore:Notify', source, 'Billed ' .. billed.PlayerData.charinfo.firstname .. ' ' .. billed.PlayerData.charinfo.lastname .. ' for $' .. amount, 'success')
TriggerClientEvent('QBCore:Notify', billed.PlayerData.source, 'Billed by Police Department for $' .. amount)
exports['qb-management']:AddMoney(biller.PlayerData.job.name, amount)
elseif billed.Functions.RemoveMoney('cash', amount) then
TriggerClientEvent('QBCore:Notify', source, 'Billed ' .. billed.PlayerData.charinfo.firstname .. ' ' .. billed.PlayerData.charinfo.lastname .. ' for $' .. amount, 'success')
TriggerClientEvent('QBCore:Notify', billed.PlayerData.source, 'Billed by Police Department for $' .. amount)
exports['qb-management']:AddMoney(biller.PlayerData.job.name, amount)
else
-- QBPhone Charge
MySQL.Async.insert('INSERT INTO phone_invoices (citizenid, amount, society, sender, sendercitizenid) VALUES (?, ?, ?, ?, ?)',{billed.PlayerData.citizenid, amount, biller.PlayerData.job.name, biller.PlayerData.charinfo.firstname, biller.PlayerData.citizenid}, function(id)
if id then
TriggerClientEvent('qb-phone:client:AcceptorDenyInvoice', billed.PlayerData.source, id, biller.PlayerData.charinfo.firstname, biller.PlayerData.job.name, biller.PlayerData.citizenid, amount, GetInvokingResource())
end
end)
TriggerClientEvent('qb-phone:RefreshPhone', billed.PlayerData.source)
end
else
TriggerClientEvent('QBCore:Notify', source, 'Amount must be higher than 0', 'error')
end
else
TriggerClientEvent('QBCore:Notify', source, 'You Cannot Bill Yourself', 'error')
end
else
TriggerClientEvent('QBCore:Notify', source, 'This person is not online', 'error')
end
end
end)
But I guess it doesnât exist there, right? Itâs funny that the only two errors you posted were from you restarting the script when you donât do that on QBCore, and you changing this export
and renaming it to âqbclothingâ and expecting it to just work.
You claimed to be a âdeveloperâ and âknew what you were doingâ but clearly do not.
Thereâs a reason only YOU are having issues with this and no one else. Itâs not because you know what youâre doing, and itâs NOT because of the script. That is for sure.