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 give money in QBCore.
Returns
boolean — whether it succeeded.
Parameters
moneytypestring'cash', 'bank', or 'crypto'.amountnumberThe amount to add.reasonstringOptional reason for logs.Example
local Player = QBCore.Functions.GetPlayer(src)
if not Player then return end
Player.Functions.AddMoney('bank', 5000, 'paycheck')Common pitfalls
- Always fetch the Player object server-side and null-check it first.
- Never let the client decide the amount — validate everything server-side.
- Use a clear reason string; it shows up in money logs.
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 →