[FREE] [QBCore] NoPixel Inspired Blackout


Hello! This is a simple, NoPixel 3.0 Inspired, Blackout script for QBCore. I made this, to work in conjuction with my upcoming NP inspired coke mission, but decided it was cool enough to share this part with others. Nothing much more to say, check out the preview video :wink:

Preview

Download

Features

  • City wide Blackout, item requirement, cooldown and minimum police requirement (all of which are configurable)
  • Police can repair the lights, after a certain time (configurable in the config)

  • Some pretty explosions and NoPixel stylized global chat messages!

Dependencies:

  • QBCore
  • qb-target
  • qb-weathersync

FiveM Questionnaire

Code is accessible Yes/
Subscription-based No
Lines (approximately) approx. 150
Requirements Listed Above
Support Yes
12 Likes

Could you convert this to work with esx legacy as well?

I really only do QBCore now, I’d need to setup a new ESX based development server :slight_smile:

1 Like

how can i get that nopixel style chat?

Aight fair

1 Like

It’s just an addmessage event, stylized to be like NoPixel

Here is what I use: click me!

Not really sure what you need converting? Just change the callbacks to ESX callbacks and change the target to one that you use, fairly straight forward :slight_smile:

You can’t expect everyone to know how to do that :man_facepalming:

If you are running a server and dont know how to do that then you need to stop running a server :man_facepalming: or at least learn. It’s VERY basic :confused:

EDIT

I mean, how hard is it?

QBCore.Functions.CreateCallback("sd-blackout:server:coolc",function(source, cb)
    if Cooldown then
        cb(true)
    else
        cb(false) 
    end
end)

To 

ESX.RegisterServerCallback('sd-blackout:server:coolc', function(source,cb) 
    if Cooldown then
        cb(true)
    else
        cb(false) 
    end
end)

is it really that hard to do?

QB is not that much different at all to ESX.

Selling outside of Tebex is not allowed under the Terms of Service.

Please remove any other stores.

Is there a way for the lights to turn back on automatically?