Unzip the l2s-dispatch.zip & l2s-dispatch_blips.zip (Optional) folder and place this folder in your server's resource folder.
Add the resource to your server configuration file (server.cfg): ensure l2s-dispatch & ensure l2s-dispatch_blips. If you're using a framework, make sure to place it below the framework resource (e.g., qb-core) and not above it.
ensure qb-core // for qb-core only
ensure es_extended // for ESX only
ensure l2s-dispatch
ensure l2s-dispatch_blips // Optional (Working only with l2s-dispatch)
# STEP 3 - SQL Database
Insert the SQL file to your database (Database.sql).
ESX SQL is different from QBCore SQL
# STEP 4 - SetUp Metadata (QBCore Only)
If you have the last version of qb-core and (your metadata in config.lua) copy paste the code in this path:
Add Item in qb-core/shared/items.lua or or qs-inventory/config/metadata.js for esx
["bodycam"] = {
["name"] = "bodycam",
["label"] = "Body Cam",
["weight"] = 500,
["type"] = "item",
["image"] = "bodycam.png",
["unique"] = true,
["useable"] = false,
["shouldClose"] = false,
["combinable"] = nil,
["description"] = "A wearable camera designed for recording first-person footage. Used for gathering evidence or monitoring activities in real"
},
2- Setup item Image according to your inventory
# STEP 6 - Configure API Keys in sh_api
For more information, a special page has been created to explain each part of it
# STEP 7 - Dispatch Blips (Optional)
Only if you use l2s-dispatch_blips (Coming free with script), you'll need to disable it to enable the built-in player blips feature; otherwise, they may interfere with each other.
Comment this code in qb-policejob/server/main.lua line ~249
CreateThread(function()
while true do
Wait(5000)
UpdateBlips()
end
end)
Disable this option in config esx_policejob/config.lua