Do you have a shovel? Are you down bad? Need some quick loot to repo it back to a pawn shop? Well fear no more. You can now do exactly that!
- qb-core
- PolyZone
- ps-dispatch
- Add the following item to your
qb-core/shared/items.lua
['shovel'] = {['name'] = 'shovel', ['label'] = 'Shovel', ['weight'] = 15000, ['type'] = 'item', ['image'] = 'shovel.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Get Digging!'},
- Add the image from
Images
to yourinventory/html/images
- Add the following snipets to
ps-dispatch
-- cl_events.lua
local function GraveRobbery()
local currentPos = GetEntityCoords(PlayerPedId())
local locationInfo = getStreetandZone(currentPos)
local gender = GetPedGender()
TriggerServerEvent("dispatch:server:notify",{
dispatchcodename = "GraveRobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip
dispatchCode = "10-86",
firstStreet = locationInfo,
gender = gender,
model = nil,
plate = nil,
priority = 2, -- priority
firstColor = nil,
automaticGunfire = false,
origin = {
x = currentPos.x,
y = currentPos.y,
z = currentPos.z
},
dispatchMessage = 'Exhumare', -- message
job = {"police", "bcso", "doc"} -- jobs that will get the alerts
})
end exports('GraveRobbery', GraveRobbery)
-- sv_dispatchcodes.lua
["GraveRobbery"] = { displayCode = '10-86', description = "Attempted Robbery", radius = 0, recipientList = {'police', 'bcso', 'doc'}, blipSprite = 630, blipColour = 12, blipScale = 1.5, blipLength = 2, sound = "robberysound", offset = "false", blipflash = "false" },
Question | Answer |
---|---|
Subject | Completed? |
---|---|
Add more graves to the Config.lua |
❌ |
Rank | Member | ID | Qualifications |
---|---|---|---|
Director | Lanzaned#2512 | 871877975346405388 | Javascript, XML, HTML, CSS, lua, SQL |
Discord: https://discord.lanzaned.com
Github: https://github.lanzaned.com
Documentation: https://docs.lanzaned.com/