QBCoreserver
Player.Functions.AddMoney
QBCore server documentation with a FiveM Lua example.
Summary
Adds money to a player's account (cash, bank, or crypto). Called on the server-side Player object. The correct, safe way to pay players in QBCore.
Returns
boolean — whether the money was added.
Parameters
moneytypestring'cash', 'bank', or 'crypto'.amountnumberHow much to add.reasonstringOptional reason for logs.Example
local Player = QBCore.Functions.GetPlayer(src)
if Player then
Player.Functions.AddMoney('bank', 5000, 'paycheck')
endCommon pitfalls
- Always do this server-side on a validated Player object — never let the client decide payments.
- Check the return and guard
if Player then. - Use the reason field so your money logs are traceable.
Related functions
Related guides
FiveM scripts done right
Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.
Browse Scripts →