- Atm Robbery [QBCORE]
- New QBCore
- Dispatch installation edited and new ps-dispatch adapted.
- Basic Config
- Low Resmon
- Script using full qb-target
- Easy editable language file
- Add the following code to your
ps-dispatch/client/alerts.lua
local function AtmRobbery()
local coords = GetEntityCoords(cache.ped)
local dispatchData = {
message = locale('atmrobbery'),
codeName = 'atmrobbery',
code = '10-10',
icon = 'fab fa-artstation',
priority = 2,
coords = coords,
gender = GetPlayerGender(),
street = GetStreetAndZone(coords),
alertTime = nil,
jobs = { 'leo'}
}
TriggerServerEvent('ps-dispatch:server:notify', dispatchData)
end
exports('AtmRobbery', AtmRobbery)
- Add the following code to your
ps-dispatch/shared/config.lua/Config.Blips
['atmrobbery'] = {
radius = 0,
sprite = 52,
color = 1,
scale = 1.5,
length = 2,
sound = 'Lose_1st',
sound2 = 'robberysound',
offset = false,
flash = false
},
- Add the following code to your
ps-dispatch/locales
"atmrobbery": "Atm Robbery",
- Download the script and put it in the
[qb]
directory. - Add the following code to your server.cfg/resouces.cfg
ensure rz-atmrobbery