Weather Blackout Miniheist
It's a little Blackout Miniheist for ESX and QBCore.
CFX Forum: https://forum.cfx.re/t/esx-qbcore-msk-blackout-weather-blackout-miniheist/5041917
Preview: https://youtu.be/lS1PQw3oq8k
- Install the Requirements below
- You only need
ox_lib
for ESX. For QBCore it's optional. - You can set
Config.Skillbar = 'qbcore'
for QBCore Servers or useox_lib
Skillbar.
If you don't want to use the ox_lib
Skillbar then remove it from fxmanifest.lua
- Go to
cd_easytime/server/server.lua
to line 71 and change this line to the following:
if type(_source) == 'string' and _source == '' or type(_source) == 'number' and PermissionsCheck(_source) then
- It should look like this:
RegisterServerEvent('cd_easytime:ForceUpdate')
AddEventHandler('cd_easytime:ForceUpdate', function(data)
local _source = source
if type(_source) == 'string' and _source == '' or type(_source) == 'number' and PermissionsCheck(_source) then
if data.hours then
self.mins = 00
self.hours = data.hours
end
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
AddEventHandler('msk_blackout:powerOn', function()
isBlackout = false
end)
AddEventHandler('msk_blackout:powerOff', function()
isBlackout = true
end)
Example
-- Only if Power is ON the Notification to Cops will be triggered
if not isBlackout then
TriggerClientEvent('notifyCops', -1)
end
- ESX 1.2 and above or QBCore
- msk_core
- ox_lib - Skillbar
- datacrack by utkuali - Hacking Minigame
- oxmysql - ox_doorlock
- doors_creator by Jaksam - To unlock all doors while blackout
- ox_doorlock - To unlock all doors while blackout