mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +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());
|
LogScs("Successfully executed script: %s", s.mPath.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify the script callback that the scripts were loaded
|
||||||
|
EmitScriptLoaded();
|
||||||
|
|
||||||
// Import already existing entities
|
// Import already existing entities
|
||||||
ImportPlayers();
|
ImportPlayers();
|
||||||
ImportBlips();
|
ImportBlips();
|
||||||
@ -394,9 +397,6 @@ bool Core::Execute()
|
|||||||
ImportPickups();
|
ImportPickups();
|
||||||
ImportVehicles();
|
ImportVehicles();
|
||||||
|
|
||||||
// Notify the script callback that the scripts were loaded
|
|
||||||
EmitScriptLoaded();
|
|
||||||
|
|
||||||
// Successfully executed
|
// Successfully executed
|
||||||
return (m_Executed = true);
|
return (m_Executed = true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user