@@ -6748,7 +6748,7 @@ bool CClientGame::TriggerBrowserRequestResultEvent(const std::unordered_set<SStr
67486748 return GetRootEntity ()->CallEvent (" onClientBrowserWhitelistChange" , Arguments, false );
67496749}
67506750
6751- void CClientGame::RestreamModel (std::uint16_t model)
6751+ bool CClientGame::RestreamModel (std::uint16_t model)
67526752{
67536753 // Is this a vehicle ID?
67546754 if (CClientVehicleManager::IsValidModel (model))
@@ -6757,8 +6757,9 @@ void CClientGame::RestreamModel(std::uint16_t model)
67576757 // loaded when we do the restore. The streamer will
67586758 // eventually stream them back in with async loading.
67596759 m_pManager->GetVehicleManager ()->RestreamVehicles (model);
6760- }
67616760
6761+ return true ;
6762+ }
67626763 // Is this an object ID?
67636764 else if (CClientObjectManager::IsValidModel (model))
67646765 {
@@ -6775,6 +6776,8 @@ void CClientGame::RestreamModel(std::uint16_t model)
67756776 // eventually stream them back in with async loading.
67766777 m_pManager->GetObjectManager ()->RestreamObjects (model);
67776778 g_pGame->GetModelInfo (model)->RestreamIPL ();
6779+
6780+ return true ;
67786781 }
67796782 // Is this an ped ID?
67806783 else if (CClientPlayerManager::IsValidModel (model))
@@ -6783,12 +6786,16 @@ void CClientGame::RestreamModel(std::uint16_t model)
67836786 // loaded when we do the restore. The streamer will
67846787 // eventually stream them back in with async loading.
67856788 m_pManager->GetPedManager ()->RestreamPeds (model);
6786- }
6787- else
67886789
6789- // 'Restream' upgrades after model replacement to propagate visual changes with immediate effect
6790- if (CClientObjectManager::IsValidModel (model) && CVehicleUpgrades::IsUpgrade (model))
6791- m_pManager->GetVehicleManager ()->RestreamVehicleUpgrades (model);
6790+ return true ;
6791+ }
6792+ // 'Restream' upgrades after model replacement to propagate visual changes with immediate effect
6793+ else if (CClientObjectManager::IsValidModel (model) && CVehicleUpgrades::IsUpgrade (model))
6794+ {
6795+ m_pManager->GetVehicleManager ()->RestreamVehicleUpgrades (model);
6796+ return true ;
6797+ }
6798+ return false ;
67926799}
67936800
67946801void CClientGame::RestreamWorld ()
0 commit comments