mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix(billing/server): incorrect result index
This commit is contained in:
@@ -90,7 +90,7 @@ ESX.RegisterServerCallback('esx_billing:payBill', function(source, cb, billId)
|
||||
cb()
|
||||
end
|
||||
else
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', result[1].target, function(account)
|
||||
TriggerEvent('esx_addonaccount:getSharedAccount', result.target, function(account)
|
||||
if xPlayer.getMoney() >= amount then
|
||||
MySQL.update('DELETE FROM billing WHERE id = ?', {billId},
|
||||
function(rowsChanged)
|
||||
|
||||
Reference in New Issue
Block a user