[help] balance [vRP]

I’m trying to show my bank balance, but I’m not successful.
my balance: $NaN

My client:

AddEventHandler("atm:openATM",function(data,cb)
	SetNuiFocus(true,true)
	local saldo = vSERVER.getSaldo(bank)			    
	SendNUIMessage({ action = "show", saldo = tostring(saldo) })
	vRP._playAnim(false,{"amb@prop_human_atm@male@base","base"},true)
end)

My server:

function getSaldo()
	local source = source
	local user_id = vRP.getUserId(source)
	if user_id then
		return vRP.getBank(user_id)
	end
end

helppp

Hey mate, pretty sure this is what you need instead of vRP.getBank

vRP.getBankMoney({user_id})

Have a check within your code for something similar to this

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.