> For the complete documentation index, see [llms.txt](https://docs.tzmc.dev/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tzmc.dev/docs/qb-core/city-blackout-power-cut/config.md).

# Config

```lua
TZMCBlackoutConfig = {}
 
--[[
 
    INSTALLATION 
 
    This resource requires 'memorygame'. You can install this by following this link: https://github.com/pushkart2/memorygame.
 
]]--
 
-- TARGET --
 
TZMCBlackoutConfig.TargetText = 'Tamper'
 
-- BLACKOUT --
 
TZMCBlackoutConfig.CooldownPeriod = 30 -- How many seconds does a player have between each attempt failed
TZMCBlackoutConfig.BlackoutDuration = 900 -- How many seconds does a blackout last for
TZMCBlackoutConfig.RunAwayTime = 10 -- How many seconds does the player have to run away after completing the hack before the explosions occur in the electricity boxes
 
-- MINIGAME --
 
TZMCBlackoutConfig.CorrectCubesRequired = 10 -- How many cubes that need to be correct before passing
TZMCBlackoutConfig.IncorrectCubesRequired = 3 -- How many cubes that need to be incorrect before failing
TZMCBlackoutConfig.PatternPreviewTime = 3 -- How many seconds a player can see the complete patern to memorise it
TZMCBlackoutConfig.PatternCompleteTime = 10 -- How many seconds a player has to complete the minigame
 
-- ITEM --
 
TZMCBlackoutConfig.ItemRequired = 'thermite'
 
-- NOTIFICATIONS --
 
TZMCBlackoutConfig.UseQBNotify = true
TZMCBlackoutConfig.NotificationEvent = "" -- If you're using your own notification system, enter the event here. If you leave this blank and set QBNotify to false this will use the FiveM chat to notify the player. The parameters are (text, status) Status can be either 'success' or 'error'.
 
TZMCBlackoutConfig.SuccessTitle = 'Success'
TZMCBlackoutConfig.ErrorTitle = 'Error'
TZMCBlackoutConfig.HackFailedText = 'You failed.'
TZMCBlackoutConfig.MissingItemText = "Seems that you've forgotten something."
TZMCBlackoutConfig.RecentlyAttemptedText = "Someone's already attempted this."
TZMCBlackoutConfig.BlackoutActiveText = "The city has already lost power."
TZMCBlackoutConfig.BlackoutRunText = 'You have '..TZMCBlackoutConfig.RunAwayTime..' seconds till detonation.'
TZMCBlackoutConfig.CityPowerCompany = 'LS Water & Power'
TZMCBlackoutConfig.CityPowerOutageText = "City power is currently out, we're working on restoring it!"
TZMCBlackoutConfig.CityPowerRestoredText = "City power has been restored. Apologies for the inconvenience."
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tzmc.dev/docs/qb-core/city-blackout-power-cut/config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
