These were the changes, before compiling, can you please tell me if there is something wrong or am I forgetting something?
FGearEffects.h
UFUNCTION(BlueprintCallable, Category = FGear)
void setEnableTireSmoke(bool e) { mEnableTireSmoke = e; }
UFUNCTION(BlueprintCallable, Category = FGear)
bool getEnableTireSmoke() const { return mEnableTireSmoke; }
FGearEffects.cpp
//if (mEnableTireSmoke && cs && physicalMaterial->mSmokeParticle != nullptr)
if (mEnableTireSmoke && cs && physicalMaterial->mSmokeParticle != nullptr && !mVehicle->getIsSleeping())
//if (mStopEffectsWhenSleeping)
//{
// if (mSkidSoundComponent && mSkidSoundComponent->bIsPaused) mSkidSoundComponent->SetPaused(false);
// for (int i = 0; i < mSmokes.Num(); i++)
// {
// if (mSmokes[i]) mSmokes[i]->SetVisibility(true);
// }
//}
//if (mSmokes[i]) mSmokes[i]->SetVisibility(false);
if (mSmokes[i]) mSmokes[i]->Deactivate();