v4.6.1
Uses the table forms that msk_core 4.1.0 introduced, so the deprecation warnings in the server console are gone.
The notifications are sent as a table, which an older msk_core takes as the title. The resource checks the version on start and logs an error when msk_core is too old. Update msk_core along with this script.
Added
- The msk_core version is checked on start.
MSK.Check.Dependency('msk_core', '4.1.0', true)logs an error in the server console when msk_core is older, instead of leaving you to wonder why the notifications look wrong.
Changed
-
Config.Notificationpasses a table toMSK.Notification. The form with title, message, type and duration is deprecated since msk_core 4.1.0 and logs a warning once per resource. If you keep your own config, change the twoMSK.Notificationlines the same way. Leaving them works too, the old form is still accepted for now. -
Config.progressBaruses the table form of the progress bar. The table form waits until the bar has run out, the old one returned right away. The bar runs in its own thread, so everything takes exactly as long as before.
Changed files
fxmanifest.lua
config.lua
server/versionchecker.lua