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:
parent
996c078105
commit
aad10948b9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user