Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bobcat Security Heist #295

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Dispatch notifications are sent containing only the alert name, omitting additio
- exports['ps-dispatch']:VehicleShooting(vehicle)
- exports['ps-dispatch']:VehicleTheft(vehicle)
- exports['ps-dispatch']:YachtHeist()
- exports['ps-dispatch']:BobcatSecurityHeist()
```
# Steps to Create New Alert
Add the following into your `alerts.lua` and change to your liking:
Expand Down
20 changes: 20 additions & 0 deletions client/alerts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -786,3 +786,23 @@ local function SignRobbery()
TriggerServerEvent('ps-dispatch:server:notify', dispatchData)
end
exports('SignRobbery', SignRobbery)

local function BobcatSecurityHeist()
local coords = GetEntityCoords(cache.ped)

local dispatchData = {
message = locale('bobcatsecurity'),
codeName = 'bobcatsecurityheist',
code = '10-90',
icon = 'fa-solid fa-building-shield',
priority = 2,
coords = coords,
gender = GetPlayerGender(),
street = GetStreetAndZone(coords),
alertTime = nil,
jobs = { 'leo'}
}

TriggerServerEvent('ps-dispatch:server:notify', dispatchData)
end
exports('BobcatSecurityHeist', BobcatSecurityHeist)
1 change: 1 addition & 0 deletions locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"fleecabank": "Přepadení banky",
"paletobank": "Přepadení banky",
"pacificbank": "Přepadení banky",
"bobcatsecurity": "Bobcat Bezpečnostní loupež",
"prisonbreak": "Probíhá útěk z vězení",
"vangelico": "Loupežné přepadení klenotnictvý",
"houserobbery": "Vykrádání Domu",
Expand Down
1 change: 1 addition & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"fleecabank": "Fleeca-Bankraub",
"paletobank": "Paleto-Bankraub",
"pacificbank": "Pacific-Bankraub",
"bobcatsecurity": "Bobcat Security Raubüberfall",
"prisonbreak": "Gefängnisausbruch im Gange",
"vangelico": "Vangelico-Raubüberfall",
"houserobbery": "Hauseinbruch",
Expand Down
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"fleecabank": "Fleeca Bank Robbery",
"paletobank": "Paleto Bank Robbery",
"pacificbank": "Pacific Bank Robbery",
"bobcatsecurity": "Bobcat Security Heist",
"prisonbreak": "Prison Break In Progress",
"vangelico": "Vangelico Robbery",
"houserobbery": "House Robbery",
Expand Down
1 change: 1 addition & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"fleecabank": "Robo a Banco Fleeca",
"paletobank": "Robo a Banco de Paleto",
"pacificbank": "Robo a Banco Pacific",
"bobcatsecurity": "Robo en Bobcat Security",
"prisonbreak": "Intento de fuga en prisión",
"vangelico": "Robo a Vangelico",
"houserobbery": "Robo en una casa",
Expand Down
1 change: 1 addition & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"fleecabank": "Braquage de la banque Fleeca",
"paletobank": "Braquage de la banque Paleto",
"pacificbank": "Braquage de la banque Pacific",
"bobcatsecurity": "Vol de Bobcat Security",
"prisonbreak": "Évasion de prison en cours",
"vangelico": "Braquage de Vangelico",
"houserobbery": "Cambriolage de maison",
Expand Down
3 changes: 2 additions & 1 deletion locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"paletobank": "Paleto Bankoverval",
"pacificbank": "Pacific Bankoverval",
"prisonbreak": "Gevangenisuitbraak gaande",
"bobcatsecurity": "Bobcat overval word gepleegd",
"vangelico": "Vangelico Overval",
"houserobbery": "Huisoverval",
"drugsell": "Verdachte Overdracht",
Expand All @@ -92,4 +93,4 @@
"minute": "minuten geleden",
"hour": "uren geleden",
"day": "dagen geleden"
}
}
1 change: 1 addition & 0 deletions locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"fleecabank": "Roubo ao Fleeca Bank",
"paletobank": "Roubo ao Paleto Bank",
"pacificbank": "Roubo ao Pacific Bank",
"bobcatsecurity": "Roubo ao Bobcat Security",
"prisonbreak": "Fuga da Prisão",
"vangelico": "Roubo a Joalheria",
"houserobbery": "Assalto a casa",
Expand Down
27 changes: 14 additions & 13 deletions locales/tr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dispatch_detach": "Çağrı Bildiriminden Ayrıl",
"dispatch_attach": "Çağrı Bildirimine Katıl",
"dispatch_detach": "Çağrıdan Ayrıl",
"dispatch_attach": "Çağrıya Katıl",
"unit": "Birim",
"units": "Birimler",
"additionals": "Ek Birimler",
Expand All @@ -26,20 +26,20 @@
"two_door": "İki kapı ",
"three_door": "Üç kapı ",
"four_door": "Dört kapı ",
"compact": "Compact",
"compact": "Kompakt",
"sedan": "Sedan",
"suv": "SUV",
"coupe": "Coupe",
"muscle": "Muscle Araç",
"sports_classic": "Sport Klasik",
"sports": "Sport Araç",
"sports_classic": "Spor Klasik",
"sports": "Spor Araç",
"super": "Süper Araç",
"motorcycle": "Motosiklet",
"offroad": "Off-Road Araç",
"industrial": "Endüstriyel Araç",
"utility": "Kamu Aracı",
"van": "Van",
"service": "Hizmet Aracı",
"service": "Kamu Aracı",
"military": "Askeri Araç",
"truck": "Tır",
"north": "Kuzey Sınırı",
Expand All @@ -60,17 +60,18 @@
"speeding": "Tehlikeli Sürüş",
"autotheft": "Motor Hırsızlığı",
"persondown": "Sivil Yaralandı",
"civbled": "Sivil Kan Kaybetti",
"civbled": "Sivil Kan Kaybediyor",
"storerobbery": "Mağaza Soygunu",
"fleecabank": "Fleeca Banka Soygunu",
"paletobank": "Paleto Banka Soygunu",
"fleecabank": "Fleeca Bankası Soygunu",
"paletobank": "Paleto Bankası Soygunu",
"pacificbank": "Pacific Merkez Bankası Soygunu",
"bobcatsecurity": "Bobcat Soygunu",
"prisonbreak": "Hapishaneden Firar Ediliyor",
"vangelico": "Vangelico Soygunu",
"vangelico": "Kuyumcu Soygunu",
"houserobbery": "Ev Soygunu",
"drugsell": "Şüpheli Satış",
"carjacking": "Araç Soygunu",
"vehicletheft": "Araç Çalma",
"vehicletheft": "Araç Hırsızlığı",
"officerdown": "Memur Yaralandı",
"officerdistress": "Memur Zor Durumda",
"officerbackup": "Memur Yardım Talep Ediyor",
Expand All @@ -79,9 +80,9 @@
"humanelabsrobbery": "Humane Laboratuvarı Soygunu",
"trainrobbery": "Tren Soygunu",
"vanrobbery": "Güvenlik Aracı Soygunu",
"underground": "Yeraltı Sığınak Soygunu",
"underground": "Yeraltı Sığınağı Soygunu",
"drugboatrobbery": "Şüpheli Bot",
"unionrobbery": "Union Depozitosu Soygunu",
"unionrobbery": "Union Rezerv Bankası Soygunu",
"carboosting": "Araç Yükseltmesi Yapıldı",
"yachtheist": "Yat Soygunu",
"susactivity": "Şüpheli Aktivite",
Expand Down
10 changes: 10 additions & 0 deletions shared/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ Config.Blips = {
offset = false,
flash = false
},
['bobcatsecurityheist'] = {
radius = 0,
sprite = 500,
color = 5,
scale = 1.5,
length = 2,
sound = 'robberysound',
offset = false,
flash = false
},
['prisonbreak'] = {
radius = 0,
sprite = 189,
Expand Down