1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Emit the ScriptLoaded event before importing server entities to allow the scripts to prepare.

This commit is contained in:
Sandu Liviu Catalin 2016-06-26 16:30:19 +03:00
parent 996c078105
commit aad10948b9

View File

@ -385,6 +385,9 @@ bool Core::Execute()
LogScs("Successfully executed script: %s", s.mPath.c_str());
}
// Notify the script callback that the scripts were loaded
EmitScriptLoaded();
// Import already existing entities
ImportPlayers();
ImportBlips();
@ -394,9 +397,6 @@ bool Core::Execute()
ImportPickups();
ImportVehicles();
// Notify the script callback that the scripts were loaded
EmitScriptLoaded();
// Successfully executed
return (m_Executed = true);
}