mirror of
https://github.com/project-error/qb-pefcl.git
synced 2026-04-05 09:03:58 -04:00
feat: getBank export
This commit is contained in:
@@ -82,6 +82,12 @@ local function giveCard(source, card)
|
|||||||
Player.Functions.AddItem('visa', 1, nil, info)
|
Player.Functions.AddItem('visa', 1, nil, info)
|
||||||
end
|
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("addCash", addCash)
|
||||||
exports("removeCash", removeCash)
|
exports("removeCash", removeCash)
|
||||||
exports("getCash", getCash)
|
exports("getCash", getCash)
|
||||||
|
|||||||
Reference in New Issue
Block a user