#alguém já viu esse erro? faz crashar quando está carregando
1 messages · Page 1 of 1 (latest)
como esta o seu resources.cfg quando o pickle ta startando
esse erro de retonar nil ocorre pq o player nao esta totalmente carregado quando a funcção e chamada provalmente
se quiser testar coloca um print na função GetIdentifier
```function GetIdentifier(source)
local source = tonumber(source)
local xPlayer = QBCore.Functions.GetPlayer(source)
if not xPlayer then
print("^1[ERROR] GetIdentifier: Jogador não encontrado para source: " .. tostring(source) .. "^0")
return nil
end
if not xPlayer.PlayerData then
print("^1[ERROR] GetIdentifier: PlayerData não existe para source: " .. tostring(source) .. "^0")
return nil
end
return xPlayer.PlayerData.citizenid
end```
Esse erro do pickle não faz player dar crash, vai ser outra coisa
