Description
It’s a little Blackout Miniheist for ESX and QBCore.
Github: GitHub - MSK-Scripts/msk_blackout: Weather Blackout Miniheist
Preview: MSK Blackout - Weather Blackout Miniheist - YouTube
Installation
- Install the Requirements below
- You only need
ox_libfor ESX. For QBCore it’s optional. - You can set
Config.Skillbar = 'qbcore'for QBCore Servers or useox_libSkillbar.
If you don’t want to use the ox_lib Skillbar then remove it from fxmanifest.lua
Events
If you want to implement a Listener to other Scripts, so the Job Notifications f.e. Robberies won’t get triggert then add this to your scripts.
It works clientside and serverside
local isBlackout = false -- Add this at the TOP of your client/server file
blackoutPowerOn = function()
isBlackout = false
end
blackoutPowerOff = function()
isBlackout = true
end
AddEventHandler('msk_blackout:powerOn', blackoutPowerOn)
AddEventHandler('msk_blackout:powerOff', blackoutPowerOff)
Example
-- Only if Power is ON the Notification to Cops will be triggered
if not isBlackout then
TriggerClientEvent('notifyCops', -1)
end
Requirements
- ESX 1.2 and above or QBCore
- msk_core
- oxmysql - ox_doorlock
- ox_lib - Skillbard
- datacrack by utkuali - Hacking Minigame
Optional Requirements
- doors_creator by Jaksam - To unlock all doors while blackout
- ox_doorlock - To unlock all doors while blackout
