我的FiveM服务器里的钱没有出现,我也买不到任何东西,我想应该和这个有关。在我的数据库中,我看到我的余额中应该有钱。
[ script:vrp] SCRIPT ERROR: @vrp/modules/money.lua:269: attempt to index a nil value (upvalue 'cfg')
[ script:vrp] > fn (@vrp/base.lua:643)
money.lua 中的代码:269 (265-274)
-- money hud
AddEventHandler("vRP:playerSpawn",function(user_id, source, first_spawn)
if first_spawn then
-- add money display
vRPclient.setDiv(source,{"money",cfg.display_css,lang.money.display({vRP.formatMoney(vRP.getMoney(user_id))})})
vRPclient.setDiv(source,{"bmoney",cfg.display_css,lang.money.bdisplay({vRP.formatMoney(vRP.getBankMoney(user_id))})})
vRPclient.setDiv(source,{"Dogecoins",cfg.display_css,lang.money.Dogecoins({vRP.formatMoney(vRP.getDogecoins(user_id))})})
vRPclient.setDiv(source,{"VenomCoins",cfg.display_css,lang.money.Diamante({vRP.formatMoney(vRP.getVenomCoins(user_id))})})
end
end)
base.lua 中的代码:643 (643-647)
TriggerEvent("vRP:playerSpawn",user_id,player,first_spawn)
SetTimeout(config.load_duration*1000, function() -- set client delay to normal delay
Tunnel.setDestDelay(player, config.global_delay)
vRPclient.removeProgressBar(player,{"vRP:loading"})
end)
money.lua 的配置 (vrp/cfg/money.lua) https://paste.to/en/raw/6104059872228