- 黄金
- 66.00 黄金
求助各位大佬,这段代码应该放入哪里,有很多个这个
这是需要加的代码
------------------------------------
ut this function in qb-core/server/player.lua under addmoney function
```lua
function self.Functions.SetCharInfo(info, val)
local info = info:lower()
if val ~= nil then
self.PlayerData.charinfo[info] = val
self.Functions.UpdatePlayerData()
end
end
--------------------------------------------

qb-core/server/player.lua我这里有7行这个。。。
谢谢各位帮忙指点一下,谢谢大家。
这是需要加的代码
------------------------------------
ut this function in qb-core/server/player.lua under addmoney function
```lua
function self.Functions.SetCharInfo(info, val)
local info = info:lower()
if val ~= nil then
self.PlayerData.charinfo[info] = val
self.Functions.UpdatePlayerData()
end
end
--------------------------------------------

qb-core/server/player.lua我这里有7行这个。。。
谢谢各位帮忙指点一下,谢谢大家。


