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
