Comments (1)
Created a quick fix by updating the following event:
RegisterNetEvent('qb-banking:updatePin', function(currentBankCard, newPin)
if newPin ~= nil then
local src = source
local xPlayer = QBCore.Functions.GetPlayer(src)
if not xPlayer then return end
MySQL.update('UPDATE bank_cards SET cardPin = ? WHERE record_id = ?', {
newPin,
currentBankCard.record_id
}, function(result)
if result == 1 then
local invItems = xPlayer.PlayerData.items
for _, v in pairs(invItems) do
if v.name == currentBankCard.cardType and currentBankCard.cardNumber == tostring(v.info.cardNumber) then
v.info.cardPin = newPin
end
end
xPlayer.Functions.SetPlayerData("items", invItems)
TriggerClientEvent('qb-banking:openBankScreen', src)
TriggerClientEvent('qb-banking:successAlert', src, Lang:t('success.updated_pin'))
else
TriggerClientEvent('QBCore:Notify', src, 'Error updating pin', "error")
end
end)
end
end)
from qb-banking.
Related Issues (20)
- [BUG] Use of "E" in account number input causes NUI closure
- bank transfer HOT 5
- [BUG] Refused to apply style HOT 1
- [BUG] tag head html
- [SUGGESTION] HOT 2
- [BUG] Banking is not showing an throws error in tx-console
- [BUG] HOT 1
- [BUG] /givecash
- [BUG]atms not working HOT 3
- The line "provides qb-management" in the fxmanifest HOT 1
- ATM dose not work HOT 2
- [BUG] ATMs not working on ox_inventory HOT 4
- [SUGGESTION] Savings Account HOT 1
- [BUG] HOT 1
- [BUG] Creating shared accounts doesn't have lower/upper case sensitive. HOT 3
- [BUG] Unknown column 'account_name' in 'field list' HOT 2
- [BUG] HOT 1
- [BUG]
- Savings log HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qb-banking.