feat: getBank export

This commit is contained in:
SamShanks1
2022-09-18 00:03:46 +01:00
parent 5413c76c3a
commit 97197807e7

View File

@@ -82,6 +82,12 @@ local function giveCard(source, card)
Player.Functions.AddItem('visa', 1, nil, info)
end
local function getBank(source)
local Player = QBCore.Functions.GetPlayer(source)
return Player.PlayerData.money["bank"] or 0
end
exports("getBank", getBank)
exports("addCash", addCash)
exports("removeCash", removeCash)
exports("getCash", getCash)