SetCash
Export Function
exports["ab_Hud"]:SetCash(BALANCE)
Parameters:
- BALANCE:The total cash balance to set for the player. This should be a numerical value representing the player's current cash balance. This function directly sets the cash balance, so if the current balance is
1000and you want to set it to1500, simply provide1500as theBALANCE.
Server-Side Event
To update the cash balance from the server-side, use the following code:
TriggerClientEvent("0xHud:SetCash", source, BALANCE)
Parameters:
- source: The player ID to whom the cash balance is being set.
- BALANCE: The new cash balance to be updated for the specified player.