Skip to content

Commit

Permalink
Update v1.4.1
Browse files Browse the repository at this point in the history
Fixed `SCRIPT ERROR: @msk_blackout/client.lua:361: attempt to perform arithmetic on a nil value (field: 'duraction')`
  • Loading branch information
Musiker15 committed Mar 9, 2023
1 parent 9981539 commit f63228a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4
1.4.1
6 changes: 5 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,16 @@ stopBlackout = function()
TriggerServerEvent('msk_blackout:syncBlackout', false)
end

RegisterCommand('blackouton', function(source, args, raw)
stopBlackoutTask(true)
end)

RegisterNetEvent('msk_blackout:setBlackout')
AddEventHandler('msk_blackout:setBlackout', function(state)
setBlackout = state

if state then
addTimeout = MSK.AddTimeout(Config.Blackout.duraction * 60000, function()
addTimeout = MSK.AddTimeout(Config.Blackout.duration * 60000, function()
stopBlackout()
MSK.DelTimeout(addTimeout)
end)
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ games { 'gta5' }
author 'Musiker15 - MSK Scripts'
name 'msk_blackout'
description 'Weather Blackout Miniheist'
version '1.4'
version '1.4.1'

lua54 'yes'

Expand Down

0 comments on commit f63228a

Please sign in to comment.