Player Data Missing?

Symptoms:

  • GetPlayerData returns nil

  • Item descriptions show blank placeholders

Solutions:

  1. Ensure character is fully loaded

    Some frameworks have a delay between login and full character load.

  2. Add debug logging

    function GetPlayerData(source)
        local player = QBCore.Functions.GetPlayer(source)
        print('[DEBUG] GetPlayerData for ' .. source .. ': ' .. tostring(player))
        if not player then return nil end
        -- ...
    end
  3. Check player object structure

    Framework updates may change the player object structure.


Last updated