[Release] [ESX] WH-Robbery. System built to utilise safe cracking minigame

WH-Robberies

VERSION 2 RELEASED HERE: WH-Robberis V2 Safe Cracking Minigame Version 2

SMALL NEW UPDATE

I have part of the script remade to run more efficiently with optimisation however due to recent events this has been delayed so for the time being I have adapted the original to remove the vulnerability there was with getting paid money, this is fixed! Anyone getting any issues with the script I would advise that you get a completely fresh install and try again. Remember to keep the name to wh-robberies!

Dependencies:
Mythic_Notify (The script is configured to this version however could be easily be changed if you know what to do)
WH-outlawalert

DOWNLOAD: https://github.com/WindiestHook381/wh-robberies

Description
This is a script I have made to utilise pd-safe by MrFrk. The idea of it is to replace esxholdup with a more interactive method however doesn’t conflict with anything in it if you want to use both for whatever reason. It enables you to add spots to the map (Three different types, CashRegister, Safe and Vault) each of them have different random rewards (Which can be configured in config), different cooldowns (Which can be conifgured in config) and different amount of ‘pins’ to crack (Which can’t be configured in config but is easy enough to change). This also currently gives you two ways of notifying police with the requires alerts: Straight up name and location or send an alert saying a camera has been triggered (configured for st-cctv but this is not required as it is a script that has to be purchased) which you can choose from. The script conatins 3 stores each with 2 cash registers and a safe in the backroom. The pacific standard vault is also in there by default too.

How the cracking game works

Use A and D to move side to side, W to select current position and S to cancel.
Hopefully this explains it better, I can make a video tutorial if you think it would help and be easier than instructions :slight_smile:

(I have included the safe cracking minigame file in this resource for ease of download, I take zero credit for this, as said in a separate readme)

Footage from the original developer of the cracking minigame:
image
Sample Video

The cooldown system has been bodged really. It works but not how I would want it to so may come back to it and re do the whole thing now I know what needs to happen and where.
Might add an option so instead of the 3D text to use a specific configurable item nearby to start ‘cracking’.

Any other suggestions let me know!

I have a long list of further scripts I would like to make so you will be hearing a lot more from me soon.
If you like my work then you could always support my coffee addiction and keep me going :slight_smile:

Credits

@Danny3tb for the outlaw alert.
@MrFrk for the safe cracking.

Enjoy!

13 Likes

Preview would be good.

I can put the images from the original safe cracking minigame that’s included however I have built a usable system around it so nothing much more than the 3d text lol. I’ll put those images in though.

you forget to close with } on the confid at line 55… to close the config.Safelocations

Thanks for that all fixed. An odd one that, was only missing on GitHub :thinking:

Tested this out and for some reason when pressing z at the register or safe i get this error and i don’t get no minigame or nothing.

1 Like

Getting the same error as above as well

@Kalbino @NLRPteam All fixed. For some reason GitHub wasn’t taking some files so I changed it round slightly. Make sure you take a fresh install :slight_smile:

1 Like

thank you mate, good idea, and thank you also to the credits guys

1 Like

man your wh-outawalert dont work

Whats the problem with it? Scratch that I see. I’m not used to git hub and it’s fucking me over

Outlawalerts have been updated to have the files to work now :stuck_out_tongue:

1 Like

it is possible add blip map in robbery shops alert?

Good job

1 Like

It is however I would implement it separately so rather than for every cash register, safe and vault they would have their own section in the cfg which would have to be entered again else it would be crazy having 3 per store

I’ve Spent Some Time Going Around Every Store And Getting Cash Reg And Safe Locations Feel Free To Use It… (Edited The Z Coord’s Because Writing Was To High Above The Cash Reg And Safe, Now It Below)

Config.CashRegLocations = {
	[1] = {x = 1728.7,   y = 6417.45,  z = 33.04, name = "24/7 Paleto - 3030", cam = 18, lastRobbed = 0},
	[2] = {x = 1727.58,   y = 6415.38,  z = 33.04, name = "24/7 Paleto - 3030", cam = 18, lastRobbed = 0},
	[3] = {x = 1696.54,   y = 4923.93,  z = 41.06, name = "LTD Grapeseed - 2013", cam = 0, lastRobbed = 0},
	[4] = {x = 1698.04,   y = 4922.86,  z = 41.06, name = "LTD Grapeseed - 2013", cam = 0, lastRobbed = 0},
	[5] = {x = 1392.88,   y = 3606.46,  z = 33.98, name = "Rob's Sandy Shores - 1016", cam = 0, lastRobbed = 0},
	[6] = {x = 1960.01,   y = 3739.99,  z = 31.34, name = "24/7 Sandy Shores - 1036", cam = 0, lastRobbed = 0},
	[7] = {x = 1958.90,   y = 3742.00,  z = 31.34, name = "24/7 Sandy Shores - 1036", cam = 0, lastRobbed = 0},
	[8] = {x = 2676.0,   y = 3280.58,  z = 53.24, name = "LTD Senora Fwy - 957", cam = 15, lastRobbed = 0},
	[9] = {x = 2678.03,   y = 3279.42,  z = 53.24, name = "LTD Senora Fwy - 957", cam = 15, lastRobbed = 0},
	[10] = {x = 1166.00,   y = 2710.87,  z = 37.15, name = "Rob's Grand Senora Desert - 940", cam = 0, lastRobbed = 0},
	[11] = {x = 549.03,   y = 2671.35,  z = 41.15, name = "24/7 Harmony - 928", cam = 0, lastRobbed = 0},
	[12] = {x = 549.36,   y = 2669.02,  z = 41.15, name = "24/7 Harmony - 928", cam = 0, lastRobbed = 0},
	[13] = {x = -3242.27,   y = 1000.01,  z = 11.83, name = "24/7 Chumash - 905", cam = 0, lastRobbed = 0},
	[14] = {x = -3244.64,   y = 1000.17,  z = 11.83, name = "24/7 Chumash - 905", cam = 0, lastRobbed = 0},
	[15] = {x = -3038.96,   y = 584.56,  z = 6.90, name = "24/7 Ineseno Road - 804", cam = 0, lastRobbed = 0},
	[16] = {x = -3041.15,   y = 583.86,  z = 6.90, name = "24/7 Ineseno Road - 804", cam = 0, lastRobbed = 0},
	[17] = {x = -2966.40,   y = 390.89,  z = 14.04, name = "Rob's Banham Canyon - 815", cam = 0, lastRobbed = 0},
	[18] = {x = -1820.21,   y = 794.31,  z = 137.08, name = "LTD Route 11 - 817", cam = 7, lastRobbed = 0},
	[19] = {x = -1818.89,   y = 792.94,  z = 137.08, name = "LTD Route 11 - 817", cam = 7, lastRobbed = 0},
	[20] = {x = 2557.16,   y = 380.85,  z = 107.62, name = "LTD Route 15 - 402", cam = 0, lastRobbed = 0},
	[21] = {x = 2554.82,   y = 380.90,  z = 107.62, name = "LTD Route 15 - 402", cam = 0, lastRobbed = 0},
	[22] = {x = 372.53,   y = 326.46,  z = 102.56, name = "24/7 Clinton Avenue - 574", cam = 0, lastRobbed = 0},
	[23] = {x = 373.12,   y = 328.65,  z = 102.56, name = "24/7 Clinton Avenue - 574", cam = 0, lastRobbed = 0},
	[24] = {x = 1164.88,   y = -322.72,  z = 67.21, name = "LTD Mirror Park - 402", cam = 5, lastRobbed = 0},
	[25] = {x = 1165.05,   y = -324.45,  z = 67.21, name = "LTD Mirror Park - 402", cam = 5, lastRobbed = 0},
	[26] = {x = -1486.18,   y = -377.95,  z = 39.16, name = "Rob's Morningwood - 635", cam = 0, lastRobbed = 0},
	[27] = {x = -1221.95,   y = -908.37,  z = 11.32, name = "Rob's Vespucci - 333", cam = 0, lastRobbed = 0},
	[28] = {x = 1134.22,   y = -982.37,  z = 45.41, name = "Rob's Murrieta Heights - 449", cam = 0, lastRobbed = 0},
	[29] = {x = 24.46,   y = -1347.30,  z = 28.49, name = "24/7 Strawberry - 125", cam = 0, lastRobbed = 0},
	[30] = {x = 24.39,   y = -1344.92,  z = 28.49, name = "24/7 Strawberry - 125", cam = 0, lastRobbed = 0},
	[31] = {x = -46.66,   y = -1757.92,  z = 28.42, name = "LTD Davis - 120", cam = 5, lastRobbed = 0},
	[32] = {x = -47.86,   y = -1759.34,  z = 28.42, name = "LTD Davis - 120", cam = 5, lastRobbed = 0}
}

Config.SafeLocations = {
	[1] = {x = 1734.9,   y = 6420.86,  z = 33.04, name = "24/7 Paleto - 3030", cam = 18, lastRobbed = 0},
	[2] = {x = 1707.85,   y = 4920.40,  z = 41.06, name = "LTD Grapeseed - 2013", cam = 0, lastRobbed = 0},
    [3] = {x = 1959.31,   y = 3748.90,  z = 31.34, name = "24/7 Sandy Shores - 1036", cam = 0, lastRobbed = 0},
	[4] = {x = 2672.76,   y = 3286.61,  z = 53.24, name = "LTD Senora Fwy - 957", cam = 15, lastRobbed = 0},
	[5] = {x = 1169.23,   y = 2717.79,  z = 36.15, name = "Rob's Grand Senora Desert - 940", cam = 0, lastRobbed = 0},
	[6] = {x = 546.41,   y = 2662.83,  z = 41.15, name = "24/7 Harmony - 928", cam = 0, lastRobbed = 0},
	[7] = {x = -3250.00,   y = 1004.38,  z = 11.83, name = "24/7 Chumash - 905", cam = 0, lastRobbed = 0},
	[8] = {x = -3047.90,   y = 585.65,  z = 6.90, name = "24/7 Ineseno Road - 804", cam = 0, lastRobbed = 0},
	[9] = {x = -2959.58,   y = 387.15,  z = 13.04, name = "Rob's Banham Canyon - 815", cam = 0, lastRobbed = 0},
	[10] = {x = -1829.15,   y = 798.79,  z = 137.19, name = "LTD Route 11 - 817", cam = 7, lastRobbed = 0},
	[11] = {x = 2549.21,   y = 384.85,  z = 107.62, name = "LTD Route 15 - 402", cam = 0, lastRobbed = 0},
	[12] = {x = 378.19,   y = 333.35,  z = 102.56, name = "24/7 Clinton Avenue - 574", cam = 0, lastRobbed = 0},
	[13] = {x = 1159.22,   y = -314.0,  z = 67.21, name = "LTD Mirror Park - 411", cam = 5, lastRobbed = 0},
	[14] = {x = -1478.95,   y = -375.38,  z = 38.16, name = "Rob's Morningwood - 635", cam = 0, lastRobbed = 0},
	[15] = {x = -1220.79,   y = -916.00,  z = 10.32, name = "Rob's Vespucci - 333", cam = 0, lastRobbed = 0},
	[16] = {x = 1126.83,   y = -980.14,  z = 43.41, name = "Rob's Murrieta Heights - 449", cam = 0, lastRobbed = 0},
	[17] = {x = 28.21,   y = -1339.22,  z = 28.49, name = "24/7 Strawberry - 125", cam = 0, lastRobbed = 0},
	[18] = {x = -43.40,   y = -1748.41,  z = 28.42, name = "LTD Davis - 120", cam = 5, lastRobbed = 0}
}
4 Likes

Much love!

1 Like

Make sure you keep the name of the resource the same (wh-robberies) else it won’t work!

Do you mean when Police are alerted add a blip?

Yeah what I was wondering about