SQZ Scripts
Search…
sqz_Robbery
Squizer's advanced robbery system that allows you to rob ATMs, Houses, Shops (2 types of vaults + cash registers), vangelico, set bodyguards do defend places & MUCH MORE!

Get it now!

Instalation

1) Put ensure sqz_robbery to your start config and resource called sqz_robbery into your resources folder 2) Configure config.lua & locales.lua 3) Change the items that are needed for a robbery or put them into the database, if they are not here already 4) Run the provided SQL file (sql.sql) 5) Download the dependencies: mhacking, progressBars, utk_fingerprint

Config Files

config
locales
1
Config = {}
2
--=================================================--
3
--===================MAIN PART=====================--
4
--=================================================--
5
Config.CustomEvents = {
6
['esx:getSharedObject'] = 'esx:getSharedObject',
7
['esx:setJob'] = 'esx:setJob'
8
}
9
10
--=================================================--
11
--===============CASH ROBBERIES PART===============--
12
--=================================================--
13
Config.CashRegisterTime = 10000 * 1000 -- Time between the cash registers reset
14
Config.CashRegisterMoney = {
15
Min = 10,
16
Max = 50,
17
RobRounds = 21
18
}
19
Config.CashRegisterMinCops = 1 -- Min cops to start cash register robbery
20
21
--=================================================--
22
--====================MISCS PART===================--
23
--=================================================--
24
Config.Locale = 'en' -- Locale of the whole script
25
Config.DrawDistance = 5
26
Config.PoliceJobNames = { -- List of players that will count as online cops
27
['police'] = true,
28
['sheriff'] = true
29
}
30
Config.UseOnlyTimers = false -- If we should use for the vaults timers that all the timers would have all the time same amount of money or FALSE to give the vault money each time period
31
Config.VaultsResetTime = 1000 -- The timer until you will be again able to rob the vault that has been robbed || Or how often the money will be added to the safe if you have the previous option disabled
32
33
--=================================================--
34
--===============MAIN ROBBERIES PART===============--
35
--=================================================--
36
37
Config.Vaults = {
38
{
39
Type = 'code', -- code / lock
40
Loc = vector3(28.1998,-1338.7881,29.577), -- Location of the vault
41
MinCops = 0,
42
Robbed = false, -- It is good to not touch it
43
Money = {
44
Max = 25000,
45
Min = 3000,
46
47
-- Refilling part:
48
Timer = 1000,
49
Money = 800,
50
CurrentMoney = 5000, -- The money that the shop will have
51
52
},
53
Items = {
54
{'flashdisk', 1},
55
{'laptop', 2}
56
},
57
Detonate = {
58
ItemName = 'bomb', -- The item name you would need for detonating
59
},
60
61
BombAnimation = {
62
Heading = 359.0,
63
BombPos = vector3(28.1715,-1338.9655,29.017)
64
}
65
},
66
{
67
Type = 'code', -- code / lock
68
Loc = vector3(-43.445,-1748.3655,29.421), -- Location of the vault
69
MinCops = 0,
70
Robbed = false, -- It is good to not touch it
71
Money = {
72
Max = 15000,
73
Min = 2000,
74
75
-- Refilling part:
76
Timer = 1000,
77
Money = 650,
78
CurrentMoney = 5000, -- The money that the shop will have
79
80
},
81
Items = {
82
{'keys', 1},
83
{'clip', 2}
84
},
85
Detonate = {
86
ItemName = 'bomb', -- The item name you would need for detonating
87
},
88
89
BombAnimation = {
90
Heading = 29.42,
91
BombPos = vector3(-43.6715,-1748.2133,28.941)
92
}
93
},
94
{
95
Type = 'lock', -- code / lock
96
Loc = vector3(-1220.7699,-916.0138,11.3263), -- Location of the vault
97
MinCops = 0,
98
Robbed = false, -- It is good to not touch it
99
Money = {
100
Max = 5000,
101
Min = 2000,
102
103
-- Refilling part:
104
Timer = 1000,
105
Money = 650,
106
CurrentMoney = 5000, -- The money that the shop will have
107
108
},
109
Items = {
110
{'bread', 1},
111
{'phone', 2}
112
},
113
Detonate = {
114
ItemName = 'bomb', -- The item name you would need for detonating
115
},
116
117
BombAnimation = {
118
Heading = 123.9,
119
BombPos = vector3(-1221.0244,-916.1847,11.3263)
120
}
121
},
122
{
123
Type = 'lock', -- code / lock
124
Loc = vector3(1126.9186,-980.1438,45.4158), -- Location of the vault
125
MinCops = 0,
126
Robbed = false, -- It is good to not touch it
127
Money = {
128
Max = 19000,
129
Min = 2000,
130
131
-- Refilling part:
132
Timer = 1000,
133
Money = 650,
134
CurrentMoney = 5000, -- The money that the shop will have
135
136
},
137
Items = {
138
{'phone', 1}
139
},
140
Detonate = {
141
ItemName = 'bomb', -- The item name you would need for detonating
142
},
143
144
BombAnimation = {
145
Heading = 1.17,
146
BombPos = vector3(1126.7133,-979.8168,45.0558)
147
}
148
},
149
{
150
Type = 'code', -- code / lock
151
Loc = vector3(-709.7255,-904.0894,19.2156), -- Location of the vault
152
MinCops = 0,
153
Robbed = false, -- It is good to not touch it
154
Money = {
155
Max = 25000,
156
Min = 3000,
157
158
-- Refilling part:
159
Timer = 1000,
160
Money = 800,
161
CurrentMoney = 5000, -- The money that the shop will have
162
163
},
164
Items = {
165
{'flashdisk', 1},
166
{'laptop', 2}
167
},
168
Detonate = {
169
ItemName = 'bomb', -- The item name you would need for detonating
170
},
171
172
BombAnimation = {
173
Heading = 92.84,
174
BombPos = vector3(-710.0529,-904.2296,18.6156)
175
}
176
},
177
{
178
Type = 'lock', -- code / lock
179
Loc = vector3(-1478.9451,-375.4349,39.1634), -- Location of the vault
180
MinCops = 0,
181
Robbed = false, -- It is good to not touch it
182
Money = {
183
Max = 19000,
184
Min = 2000,
185
186
-- Refilling part:
187
Timer = 1000,
188
Money = 650,
189
CurrentMoney = 5000, -- The money that the shop will have
190
191
},
192
Items = {
193
{'phone', 1}
194
},
195
Detonate = {
196
ItemName = 'bomb', -- The item name you would need for detonating
197
},
198
199
BombAnimation = {
200
Heading = 224.0,
201
BombPos = vector3(-1478.8337,-375.5812,38.6834)
202
}
203
},
204
{
205
Type = 'code', -- code / lock
206
Loc = vector3(1159.4976,-314.1253,69.2051), -- Location of the vault
207
MinCops = 0,
208
Robbed = false, -- It is good to not touch it
209
Money = {
210
Max = 25000,
211
Min = 3000,
212
213
-- Refilling part:
214
Timer = 1000,
215
Money = 800,
216
CurrentMoney = 5000, -- The money that the shop will have
217
218
},
219
Items = {
220
{'flashdisk', 1},
221
{'laptop', 2}
222
},
223
Detonate = {
224
ItemName = 'bomb', -- The item name you would need for detonating
225
},
226
227
BombAnimation = {
228
Heading = 98.18,
229
BombPos = vector3(1159.337,-314.1523,68.6051)
230
}
231
},
232
{
233
Type = 'code', -- code / lock
234
Loc = vector3(378.1759,333.3954,103.5664), -- Location of the vault
235
MinCops = 0,
236
Robbed = false, -- It is good to not touch it
237
Money = {
238
Max = 300,
239
Min = 5000,
240
241
-- Refilling part:
242
Timer = 1000,
243
Money = 800,
244
CurrentMoney = 7500, -- The money that the shop will have
245
246
},
247
Items = {
248
{'flashdisk', 1},
249
{'laptop', 2}
250
},
251
Detonate = {
252
ItemName = 'bomb', -- The item name you would need for detonating
253
},
254
255
BombAnimation = {
256
Heading = 342.96,
257
BombPos = vector3(378.1842,333.5868,103.0864)
258
}
259
},
260
{
261
Type = 'code', -- code / lock
262
Loc = vector3(2549.2434,384.9183,108.6229), -- Location of the vault
263
MinCops = 0,
264
Robbed = false, -- It is good to not touch it
265
Money = {
266
Max = 20000,
267
Min = 5000,
268
269
-- Refilling part:
270
Timer = 1000,
271
Money = 800,
272
CurrentMoney = 4500, -- The money that the shop will have
273
274
},
275
Items = {
276
{'flashdisk', 1},
277
{'laptop', 2}
278
},
279
Detonate = {
280
ItemName = 'bomb', -- The item name you would need for detonating
281
},
282
283
BombAnimation = {
284
Heading = 88.55,
285
BombPos = vector3(2548.9436,384.9243,108.023)
286
}
287
},
288
{
289
Type = 'code', -- code / lock
290
Loc = vector3(-1829.2214,798.7365,138.1924), -- Location of the vault
291
MinCops = 0,
292
Robbed = false, -- It is good to not touch it
293
Money = {
294
Max = 20000,
295
Min = 2000,
296
297
-- Refilling part:
298
Timer = 1000,
299
Money = 800,
300
CurrentMoney = 3500, -- The money that the shop will have
301
302
},
303
Items = {
304
{'flashdisk', 1},
305
{'laptop', 2}
306
},
307
Detonate = {
308
ItemName = 'bomb', -- The item name you would need for detonating
309
},
310
311
BombAnimation = {
312
Heading = 134.56,
313
BombPos = vector3(-1829.3315,798.6214,137.6522)
314
}
315
},
316
{
317
Type = 'lock', -- code / lock
318
Loc = vector3(-2959.582,387.1539,14.0433), -- Location of the vault
319
MinCops = 0,
320
Robbed = false, -- It is good to not touch it
321
Money = {
322
Max = 25000,
323
Min = 2000,
324
325
-- Refilling part:
326
Timer = 1000,
327
Money = 800,
328
CurrentMoney = 4000, -- The money that the shop will have
329
330
},
331
Items = {
332
{'flashdisk', 1},
333
{'laptop', 2}
334
},
335
Detonate = {
336
ItemName = 'bomb', -- The item name you would need for detonating
337
},
338
339
BombAnimation = {
340
Heading = 180.54,
341
BombPos = vector3(-2959.5791,386.7993,13.4433)
342
}
343
},
344
{
345
Type = 'lock', -- code / lock
346
Loc = vector3(-3047.8455,585.7594,7.9089), -- Location of the vault
347
MinCops = 0,
348
Robbed = false, -- It is good to not touch it
349
Money = {
350
Max = 25000,
351
Min = 2000,
352
353
-- Refilling part:
354
Timer = 1000,
355
Money = 800,
356
CurrentMoney = 4000, -- The money that the shop will have
357
358
},
359
Items = {
360
{'flashdisk', 1},
361
{'laptop', 2}
362
},
363
Detonate = {
364
ItemName = 'bomb', -- The item name you would need for detonating
365
},
366
367
BombAnimation = {
368
Heading = 109.09,
369
BombPos = vector3(-3048.0991,585.5559,7.2489)
370
}
371
},
372
{
373
Type = 'code', -- code / lock
374
Loc = vector3(-3249.9912,1004.4037,12.8307), -- Location of the vault
375
MinCops = 0,
376
Robbed = false, -- It is good to not touch it
377
Money = {
378
Max = 23000,
379
Min = 2000,
380
381
-- Refilling part:
382
Timer = 1000,
383
Money = 800,
384
CurrentMoney = 3800, -- The money that the shop will have
385
386
},
387
Items = {
388
{'flashdisk', 1},
389
{'laptop', 2}
390
},
391
Detonate = {
392
ItemName = 'bomb', -- The item name you would need for detonating
393
},
394
395
BombAnimation = {
396
Heading = 85.33,
397
BombPos = vector3(-3250.3118,1004.368,12.0507)
398
}
399
},
400
{
401
Type = 'code', -- code / lock
402
Loc = vector3(546.417,2662.8401,42.1565), -- Location of the vault
403
MinCops = 0,
404
Robbed = false, -- It is good to not touch it
405
Money = {
406
Max = 21000,
407
Min = 2000,
408
409
-- Refilling part:
410
Timer = 1000,
411
Money = 800,
412
CurrentMoney = 3700, -- The money that the shop will have
413
414
},
415
Items = {
416
{'flashdisk', 1},
417
{'laptop', 2}
418
},
419
Detonate = {
420
ItemName = 'bomb', -- The item name you would need for detonating
421
},
422
423
BombAnimation = {
424
Heading = 181.71,
425
BombPos = vector3(546.4929,2662.6619,41.4965)
426
}
427
},
428
{
429
Type = 'lock', -- code / lock
430
Loc = vector3(1169.3201,2717.8064,37.1577), -- Location of the vault
431
MinCops = 0,
432
Robbed = false, -- It is good to not touch it
433
Money = {
434
Max = 20000,
435
Min = 1000,
436
437
-- Refilling part:
438
Timer = 1000,
439
Money = 800,
440
CurrentMoney = 3500, -- The money that the shop will have
441
442
},
443
Items = {
444
{'flashdisk', 1},
445
{'laptop', 2}
446
},
447
Detonate = {
448
ItemName = 'bomb', -- The item name you would need for detonating
449
},
450
451
BombAnimation = {
452
Heading = 269.08,
453
BombPos = vector3(1169.4701,2717.804,36.5577)
454
}
455
},
456
{
457
Type = 'code', -- code / lock
458
Loc = vector3(1169.3201,2717.8064,37.1577), -- Location of the vault
459
MinCops = 0,
460
Robbed = false, -- It is good to not touch it
461
Money = {
462
Max = 22000,
463
Min = 2000,
464
465
-- Refilling part:
466
Timer = 1000,
467
Money = 800,
468
CurrentMoney = 3600, -- The money that the shop will have
469
470
},
471
Items = {
472
{'flashdisk', 1},
473
{'laptop', 2}
474
},
475
Detonate = {
476
ItemName = 'bomb', -- The item name you would need for detonating
477
},
478
479
BombAnimation = {
480
Heading = 66.9,
481
BombPos = vector3(2672.5547,3286.7773,54.3905)
482
}
483
},
484
{
485
Type = 'code', -- code / lock
486
Loc = vector3(1959.2516,3748.8276,32.3437), -- Location of the vault
487
MinCops = 0,
488
Robbed = false, -- It is good to not touch it
489
Money = {
490
Max = 35000,
491
Min = 4000,
492
493
-- Refilling part:
494
Timer = 1000,
495
Money = 800,
496
CurrentMoney = 4500, -- The money that the shop will have
497
498
},
499
Items = {
500
{'flashdisk', 1},
501
{'laptop', 2}
502
},
503
Detonate = {
504
ItemName = 'bomb', -- The item name you would need for detonating
505
},
506
507
BombAnimation = {
508
Heading = 29.7,
509
BombPos = vector3(1959.1027,3749.0879,31.8637)
510
}
511
},
512
{
513
Type = 'code', -- code / lock
514
Loc = vector3(1734.7697,6420.8428,35.0372), -- Location of the vault
515
MinCops = 0,
516
Robbed = false, -- It is good to not touch it
517
Money = {
518
Max = 18000,
519
Min = 750,
520
521
-- Refilling part:
522
Timer = 1000,
523
Money = 800,
524
CurrentMoney = 1000, -- The money that the shop will have
525
526
},
527
Items = {
528
{'flashdisk', 1},
529
{'laptop', 2}
530
},
531
Detonate = {
532
ItemName = 'bomb', -- The item name you would need for detonating
533
},
534
535
BombAnimation = {
536
Heading = 338.19,
537
BombPos = vector3(1734.9073,6421.1587,34.4372)
538
}
539
},
540
}
541
542
--=================================================--
543
--================VANGELICO ROBBERY================--
544
--=================================================--
545
546
Config.Vangelico = {
547
{
548
StartPos = vector3(-629.8461,-236.568,37.1571), -- Start position of the vangelico
549
MinCops = 1, -- Min cops to start the robbery
550
showcases = {
551
{pos = vector3(-626.735, -238.545, 38.057), robbed= false}, -- Locations of the show cases
552
{pos = vector3(-625.697, -237.877, 38.057), robbed= false},
553
{pos = vector3(-626.825, -235.347, 38.057), robbed= false},
554
{pos = vector3(-625.77, -234.563, 38.057), robbed= false},
555
{pos = vector3(-627.957, -233.918, 38.057), robbed= false},
556
{pos = vector3(-624.433, -231.161, 38.057), robbed= false},
557
{pos = vector3(-623.045, -232.969, 38.057), robbed= false},
558
{pos = vector3(-620.265, -234.502, 38.057), robbed = false},
559
{pos = vector3(-619.225, -233.677, 38.057), robbed= false},
560
{pos = vector3(-620.025, -233.354, 38.057), robbed= false},
561
{pos = vector3(-617.487, -230.605, 38.057), robbed= false},
562
{pos = vector3(-618.304, -229.481, 38.057), robbed= false},
563
{pos = vector3(-619.741, -230.32, 38.057), robbed= false},
564
{pos = vector3(-619.686, -227.753, 38.057), robbed= false},
565
{pos = vector3(-620.481, -226.59, 38.057), robbed= false},
566
{pos = vector3(-621.098, -228.495, 38.057), robbed= false},
567
{pos = vector3(-623.855, -227.051, 38.057), robbed= false},
568
{pos = vector3(-624.977, -227.884, 38.057), robbed= false},
569
{pos = vector3(-624.056, -228.228, 38.057), robbed= false},
570
},
571
Loot = {
572
Items = {
573
{name = 'jewels', count = {max = 5, min = 3}}, -- The loot from 1 show case
574
{name = 'rolex-watch', count = {max = 2, min = 1}}
575
},
576
},
577
robbed = false -- This is fine to not touch
578
}
579
}
580
581
--=================================================--
582
--=================House Robberies=================--
583
--=================================================--
584
585
Config.Houses = {
586
{
587
MinCops = 1, -- Min cops needed to start the robbery
588
StartPos = vector3(1386.0764,-593.4464,73.5855), -- Start location of the burglary
589
HouseInCoords = vector3(346.52, -1013.19, -100.1), -- Position of teleport in house
590
IsOpened = false, -- Good to not touch
591
Locations = {
592
{Pos = vector3(346.1058,-1001.6822,-100.0962), Items = { -- Location of robable place
593
{Name = 'laptop', Amount = 1}, -- Amounts + Items in that place, supports weapons + items
594
{Name = 'jewels', Amount = 10}
595
}, Money = 150, Robbed = false}, -- Money is money and Robbed is enought to not touch
596
{Pos = vector3(339.2252,-1003.3469,-100.0962), Items = {
597
{Name = 'phone', Amount = 2},
598
}, Money = 500, Robbed = false},
599
}
600
}
601
}
602
603
--=================================================--
604
--====================BODYGUARDS===================--
605
--=================================================--
606
607
Config.Bodyguards = {
608
{
609
Pos = vector3(-624.3985,-225.2342,38.057), -- Position of spawned bodyguard
610
Heading = 151.87, -- Heading of the bodygurad
611
spawned = false, -- Those 3 variables are fine to not be touched
612
hp = 100.0,
613
armour = 100.0
614
},
615
{
616
Pos = vector3(-617.6118,-235.7391,38.057),
617
Heading = 50.6,
618
spawned = false,
619
hp = 100,
620
armour = 100.0
621
}
622
}
623
624
--=================================================--
625
--=======================ATMS======================--
626
--=================================================--
627
Config.ATMs = {
628
RespawnTimer = 10 * 60 * 60 * 1000, -- Respawn timer of each ATM to be able get again robbed
629
ItemNeededForOpening = 'oxcutter', -- Item needed for opening ATM using force (if you fail cracking it)
630
Money = {
631
Max = 20000, -- Max money you can get from the ATM
632
Min = 10000,
633
TakeMax = 10, -- The money per 1 grab you take maximal-y
634
TakeMin = 5, -- THe money per 1 grab you can take minimally
635
},
636
MinCops = 1 -- Min Cops to start ATM robbery
637
}
638
Config.DisableAtmRobbery = false -- Will completely disable ATM robbery part
639
--=================================================--
640
--================DISPATCH SETTINGS================--
641
--=================================================--
642
Config.Dispatch = {
643
['vaults'] = {
644
BlipSprite = 119,
645
BlipColour = 48,
646
BlipFlashes = true,
647
BlipTimeout = 60000,
648
BlipName = 'Vault robbery',
649
Notification = 'Someone is is not behaving in the shop and is trying to get to the vault. Go and check it.'
650
},
651
['cashRobberies'] = {
652
BlipSprite = 119,
653
BlipColour = 48,
654
BlipFlashes = true,
655
BlipTimeout = 60000,
656
BlipName = 'Cash register Robbery',
657
Notification = 'Someone is is not behaving in the shop and is trying to open the cash register. Go and check it.'
658
},
659
['houses'] = {
660
BlipSprite = 557,
661
BlipColour = 46,
662
BlipFlashes = true,
663
BlipTimeout = 60000,
664
BlipName = 'Burglary',
665
Notification = 'Neighbours reported opened doors of couple that is on holiday. There is something suspicious'
666
},
667
['atms'] = {
668
BlipSprite = 472,
669
BlipColour = 27,
670
BlipFlashes = true,
671
BlipTimeout = 60000,
672
BlipName = 'Breaking into ATM',
673
Notification = 'The security system of ATM has detected a malware in ATM. Get the money secured.'
674
},
675
['vangelico'] = {
676
BlipSprite = 354,
677
BlipColour = 11,
678
BlipFlashes = true,
679
BlipTimeout = 60000,
680
BlipName = 'Robbery in vangelico',
681
Notification = 'Someone is shooting in vangelico. I am worried the bodyguards will not be enough force to stop them.'
682
},
683
}
Copied!
1
Locales['en'] = {
2
['not_armed'] = 'You are not armed, how do you want to open the cash register?',
3
['e_to_rob_vault'] = 'Press [~g~E~s~] to rob this vault',
4
['not_min_cops'] = 'To rob without cops will not give you anything to life. To enjoy it the most you would need at least %s cops in the city.',
5
['already_robbed_vault'] = 'This vault is marked as police as robbed. Please wait until they will investigate it and open again the safe.',
6
['no_money_remaining'] = 'There are no money remaining in this vault',
7
['shoot_to_rob_vangelico'] = 'Shoot to show off and build some respect.',
8
['e_to_break_showcase'] = '~INPUT_PICKUP~ To break this showcase',
9
['e_to_lockpick'] = '~INPUT_PICKUP~ To lockpick the house',
10
['e_to_enter'] = '~INPUT_PICKUP~ To enter the house',
11
['e_to_leave'] = '~INPUT_PICKUP~ To leave the house',
12
['e_to_rob'] = '~INPUT_PICKUP~ To rob',
13
['robbery_aborted'] = 'You have aborted the robbery',
14
['cracking_failed'] = 'You failed to get to the vault without violence',
15
['cracking_succ'] = 'You have successfuly opened the safe',
16
17
-- Progress bars --
18
['connecting_to_lock_pin'] = 'You are connecting to the lock',
19
['planting_bomb'] = 'You are planting the bomb',
20
['taking_money_from_vault'] = 'You are taking money from vault',
21
22
23
-- Draw Texts
24
['detonate_vault?'] = '~o~Do you want to exit or detonate the vault?~s~',
25
['detonate_vault_yes'] = '~g~[E]~s~ - Detonate the vault',
26
['detonate_vault_no'] = '~r~[x]~r~ - Leave it be and leave',
27
['take_money_from_vault'] = '[~g~E~s~] Take pack of money from vault, remaining: %s',
28
29
['atm_open_using_force'] = 'You are trying to get into the ATM using force',
30
['take_money_from_atm'] = '[E] Take money from ATM, remaining: %s#x27;,
31
['break_atm'] = '[E] Break Into ATM',
32
['atm_broken'] = 'This ATM is broken',
33
['get_to_atm_force'] = '~o~Do you want to open the safe using force? 50 percent chance of unsuccess~s~',
34
['atm_yes'] = '~g~[E]~s~ - Yes',
35
['atm_no'] = '~r~[x]~r~ - No',
36
['atm_rob_failed'] = 'The ATM was not successfuly robbed and no longer is possible to get into it',
37
['atm_rob_success'] = 'The ATM has been successfuly opened and now you can take money',
38
['stop_tasking_money'] = '~INPUT_VEH_DUCK~ To stop robbing the ATM',
39
['not_have_needed_item'] = 'You do not have the required item for breaking to the ATM'
40
}
Copied!