--[[ CLIENT DIAGNOSTIC Afiseaza informatii in consola F8 cand te conectezi pe server. Ajuta sa identifici probleme client-side. ]] CreateThread(function() -- Asteptam sa fim complet spawned while not NetworkIsSessionStarted() do Wait(100) end Wait(3000) print('========================================') print(' CLIENT DIAGNOSTIC') print('========================================') local playerId = PlayerId() local playerPed = PlayerPedId() print('[INFO] Player ID: ' .. tostring(playerId)) print('[INFO] Server ID: ' .. tostring(GetPlayerServerId(playerId))) print('[INFO] Ped valid: ' .. tostring(DoesEntityExist(playerPed))) local coords = GetEntityCoords(playerPed) print('[INFO] Pozitie: ' .. string.format('%.1f, %.1f, %.1f', coords.x, coords.y, coords.z)) -- Verificam daca suntem sub mapa (cadere infinita) if coords.z < -50.0 then print('[WARN] Esti SUB MAPA! Pozitia Z este: ' .. string.format('%.1f', coords.z)) print('[WARN] Posibil problema cu spawn-ul sau spawnmanager.') end -- Verificam daca modelul playerului este valid local model = GetEntityModel(playerPed) if model == 0 then print('[FAIL] Modelul playerului este invalid (0)!') print('[FAIL] Posibil problema cu esx_skin / skinchanger.') else print('[INFO] Model player: ' .. tostring(model)) end -- Verificam starea de sanatate local health = GetEntityHealth(playerPed) print('[INFO] Sanatate: ' .. tostring(health)) if health <= 0 then print('[WARN] Playerul este mort la spawn. Verifica esx_ambulancejob sau respawn scripts.') end -- Verificam resurse critice client-side local clientResources = { 'es_extended', 'spawnmanager', 'chat', } for _, resName in ipairs(clientResources) do local state = GetResourceState(resName) if state == 'started' then print('[OK] "' .. resName .. '" - activ') elseif state == 'stopped' or state == 'missing' then print('[FAIL] "' .. resName .. '" - ' .. state) end end print('========================================') print(' Daca vezi erori ROSII mai sus sau') print(' mai jos, copiaza-le si trimite-le') print(' dezvoltatorului.') print('========================================') end)