Skip to content

Commit

Permalink
Load images on script init
Browse files Browse the repository at this point in the history
Honestly, no idea why I chose to delay it to on-select, that was horrible for user experience.
  • Loading branch information
ikt32 committed Oct 17, 2021
1 parent a514279 commit afdc17b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GTAVAddonLoader/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ void InitTextures() {
noImage = AddonImage(-1, hash, width, height);
logger.Write(ERROR, "Missing img/noimage.png!");
}

for (const auto& [modelHash, modelName] : g_vehicleHashes) {
resolveImage(modelHash);
}
}

bool initialized = false;
Expand Down

0 comments on commit afdc17b

Please sign in to comment.