[ESX/QBCore] MSK Blackout - Weather Blackout Miniheist

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_lib for ESX. For QBCore it’s optional.
  • You can set Config.Skillbar = 'qbcore' for QBCore Servers or use ox_lib Skillbar.

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

Optional Requirements

5 Likes

Update v1.1

  • Added Jaksam Doors Creator (To unlock all doors while blackout)

Update v1.2

  • Added Minimum Amount of Player with Police Job
1 Like

Items was man benötigt für die einzelnen schritte wären noch cool.
Man muss sich erst zb. ne Zange kaufen irgendwo, oder nen messer für die trafos, zum tür knacken brauchst nen lockpick oder ein brecheisen, für den laptop brauchst ne zugangskarte, usb stick, festplatte what ever oder sowas die man durch nen anderen heist als beispiel erst besorgen muss oder irgendwas was andere jobs haben die man überfallen muss…

und für die Trafostation auch nochmal das minigame was zb. bei der tür ist. ansonsten sieht es für mich dem video nach doch recht “einfach” und zu schnell aus. ansonsten top geworden.

gibt es einen server weiten cooldown? gibt es einen cooldown für irgendwelche “crimejobs” das man zb. einstellen kann das man das als fraktion zb. nur einmal die woche machen kann?

2 Likes

It would be alot better if you adapt it to ox_target.
Also some item to be used would be great.

Ein paar Punkte geben tatsächlich Sinn und werde ich mir überlegen.
Allerdings war es nie meine Intension da ein rießen Script draus zu machen sondern einfach nur n ganz kleines einfach Script bei dem man trotzdem noch ne Kleinigkeit zu tun hat.

1 Like

Update v1.3

  • Fixed Config.Cops function
  • Added Support for ox_doorlock
1 Like

Update v1.4

  • Added needed Items
  • Added Skillbar for Trafostations
1 Like

Update v1.4.1

  • Fixed SCRIPT ERROR: @msk_blackout/client.lua:361: attempt to perform arithmetic on a nil value (field: 'duraction')
1 Like

Update v1.5

  • Added Job Blips if break through the door
  • Added Events for other Scripts when blackout is triggered
1 Like

Update v1.6

  • Fixed serious error
  • Added Admin Command

Please also update msk_core!

1 Like