Skip to content

Commit

Permalink
Update v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Musiker15 committed Mar 11, 2023
1 parent b89f9cb commit 172e4dd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5
1.5.1
3 changes: 1 addition & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ end

local startedBlackout, startBlackoutTeleport, hackedLaptop = false, false, false
local showHackLaptopHelp, teleportedOutOfBuilding, startedSabotage = false, false, false
local addTimeout, setBlackout, sendJobNotify, sendJobBlip = false, false, true, true
local addTimeout, setBlackout = false, false
local Blips, JobBlips, SabotageLocations = {}, {}, {}

CreateThread(function()
Expand Down Expand Up @@ -347,7 +347,6 @@ stopBlackoutTask = function(success)
end

stopBlackout = function()
sendJobBlip = false
TriggerServerEvent('msk_blackout:syncBlackout', false)
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.5'
version '1.5.1'

lua54 'yes'

Expand Down
7 changes: 6 additions & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ AddEventHandler('msk_blackout:syncBlackout', function(state)
TriggerClientEvent('msk_blackout:setBlackout', -1, state)

if not Config.useDoorlock then return end
if not Config.DoorlockScript then return end
if not (GetResourceState(Config.DoorlockScript) == "started") then
return logging('error', 'Doorlock script ' .. Config.DoorlockScript .. ' not found')
return logging('error', ('Doorlock Script ^3%s^0 not found'):format(Config.DoorlockScript))
end

if state then -- If Blackout is enabled
Expand All @@ -68,6 +69,8 @@ AddEventHandler('msk_blackout:syncBlackout', function(state)
end
end
end)
else
logging('error', ('Unsupported doorlock script: ^3%s^0'):format(Config.DoorlockScript))
end
elseif not state then -- If Blackout is disabled
if Config.DoorlockScript:match('doors_creator') then
Expand All @@ -84,6 +87,8 @@ AddEventHandler('msk_blackout:syncBlackout', function(state)
end
end
end)
else
logging('error', ('Unsupported doorlock script: ^3%s^0'):format(Config.DoorlockScript))
end
end
end)
Expand Down

0 comments on commit 172e4dd

Please sign in to comment.