Skip to content

Commit

Permalink
Update v1.7.2
Browse files Browse the repository at this point in the history
Updated Callbacks for msk_core
  • Loading branch information
Musiker15 committed Mar 4, 2024
1 parent 58d9e32 commit 11a7306
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.2
1.7.3
6 changes: 3 additions & 3 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ CreateThread(function()
MSK.HelpNotification(Translation[Config.Locale]['open_blackout'])

if IsControlJustPressed(0, Config.Hotkey) and (not Config.blacklistedJobs.enable or not MSK.Table_Contains(Config.blacklistedJobs.jobs, playerJob)) then
local blackoutInProgress = MSK.TriggerCallback('msk_blackout:isBlackoutInProgress')
local blackoutInProgress = MSK.Trigger('msk_blackout:isBlackoutInProgress')

if not blackoutInProgress then
local OnlineCops = 0

if Config.Cops.enable then
OnlineCops = MSK.TriggerCallback('msk_blackout:getCops')
OnlineCops = MSK.Trigger('msk_blackout:getCops')
end

if not Config.Cops.enable or (Config.Cops.enable and OnlineCops >= Config.Cops.amount) then
Expand Down Expand Up @@ -422,7 +422,7 @@ end

logging = function(code, ...)
if not Config.Debug then return end
MSK.logging(code, ...)
MSK.Logging(code, ...)
end

AddEventHandler('onResourceStop', function(resource)
Expand Down
2 changes: 1 addition & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ AddEventHandler('msk_blackout:powerOff', function() isBlackout = true logging('d

logging = function(code, ...)
if not Config.Debug then return end
MSK.logging(code, ...)
MSK.Logging(code, ...)
end

GithubUpdater = function()
Expand Down

0 comments on commit 11a7306

Please sign in to comment.