[RELEASE] Power Plant hit (blackout) by utku

Ah nevermind: I managed to get it to work.

HOWEVER: In the Silent Way, when you start the first hack, guards spawn near you and automatically start shooting at you, making the silent way impossible.
Also wanted to ask if there was a way to connect triggering the blackout to making all the doors that are set with ‘esx_doorlock’ set to ‘unlocked’, to make for jailbreaks if the power plant is out. Is this possible?

Ofc it is possible, I will also check out the silent way, guards weren’t shooting at me when I tested it :smiley:

Thank you! Do you mind if I add you on Discord to get some help with this?

I mean sure, but it is better if you post your issue here, so that if its fixed everyone can see and benefit.

Sure that’s not a problem.
Just wanted to ask if you know what lines to add in to both your powerplant script and ‘esx_doorlock’ to make the blackout unlock the door locks

@Ventrix
add this code to the server.lua line:69

if status then
   for u = 1, 18, 1 do
       TriggerClientEvent("esx_doorlock:setState", xPlayers[i], u, false)
   end
end

it should look like this:
image

That 18 is the number of doors registered at the esx_doorlock config file. It has 18 doors in default, you should put your number of doors instead of 18.

OK i see it requires ESX but i gotta ask is there a way i can make this work without ESX but use my HeidiSQL DB ???

Thank you so much!
Did you get a chance to test the silent way by any chance to see about the spawning guards?

having problem uploading the database file
SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘’ at line 4 */

I fixed it, get the latest sql file on github

SQL works know

where i can get items to do the job?

you have the item in your inventory right ?

the items are missing from the inventory
i add this video so you can see what i saying
2020-03-20 14-55-16.mkv (14.4 MB)

this video provides no information at all…

sorry
when i start the job it does not show the item required in my inventory to preform the task (C4, C4 mini or Hacker laptop)
do i have to buy from somewhere in the map or the script add the items to you inventory when is activated?

you need to give yourself those items, or just put them in black market or something like that

This was Fixed with new upload

/* SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘’ at line 4 */

loading into heidisql?

Just a question, is it possible to make it so you have to hit this powerplant to hit your utk_ornateheist?? If possible how? Sorry in advance still new to all of this

Can i connect this with your pacific bank heist so you have to blackout first then u can rob the bank?

hey guys Im hoping one of you or the code creator can help me out this is the last script im adding to my server before full release and im not sure how to fix this error or if I have the most updated version of Mythic_notify cuz I dont see this lua anywhere. the script works perfectly fine everything goes the way it is supposed to but this is the only error I got which im sure has something to do with notifying the police or something