Running into an issue with qb-phone where contact lists don't properly refresh after using /reloadchar. The phone interface continues showing the old character's contacts even though the server-side data has updated correctly.
What I'm seeing:
The phone functions work but with the wrong contact overlay. I can see the event handlers in my current setup aren't properly clearing the NUI cache on character unload. Any ideas on how to force the contact list to refresh without requiring a full reconnect?
RegisterNetEvent('QBCore:Client:OnPlayerUnload') AddEventHandler('QBCore:Client:OnPlayerUnload', function()
-- Contacts remain cached in NUI state
SendNUIMessage({action = 'clearContacts'}) -- This doesn't clear internal JS state
end)
RegisterNetEvent('QBCore:Client:OnPlayerLoaded') AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
-- New contacts queried but old cache persists in React state
TriggerServerEvent('qb-phone:server:GetContacts')
end)CloudStrife · 01/09/2026
Sign in to reply.