Removed

Here to remove old posts

If you want to get the current cash that a player has, you can use xPlayer.getMoney() assuming you’re using ESX ofcourse. This function will return the cash that the player has.

do you have soulotion to qbus?

Here you go, this should work with a bit of change.

local Player = QBCore.Functions.GetPlayer(source)
if Player.PlayerData.money.cash == price then
    Player.Functions.RemoveMoney("cash", price, "paid-mechanic")
else
    TriggerClientEvent("nv-mechanic:purchaseFailed", src)
end
1 Like