⚙️Configuration
config.lua
--[[
░██████╗██╗░░██╗██████╗░ ░██████╗░█████╗░██████╗░██╗██████╗░████████╗░██████╗
██╔════╝██║░██╔╝██╔══██╗ ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝██╔════╝
╚█████╗░█████═╝░██████╔╝ ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░╚█████╗░
░╚═══██╗██╔═██╗░██╔══██╗ ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░╚═══██╗
██████╔╝██║░╚██╗██║░░██║ ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░██████╔╝
╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝ ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░╚═════╝░
--]]
skr = {}
skr.Core = "esx" -- esx / qbcore
skr.Distance = 15.0
skr.AllowCommand = true
skr.CommandName = "trafficstop"
skr.MenuLabel = "Report traffic stop"
skr.Notify = "default" -- default (ESX Notify or qb-notify) , okok, ox_lib, custom - you can edit in client_config.lua
skr.NotifyNoJob = {
title = "Traffic Stop",
description = "You don´t have police job",
type = "error"
}
skr.MarkerColor = { r = 112, g = 72, b = 232 }
skr.PoliceJobs = {"police", "sheriff"}
skr.Colors = {
"Metallic Black", "Metallic Graphite Black", "Metallic Black Steel",
"Metallic Dark Silver", "Metallic Silver", "Metallic Blue Silver",
"Metallic Steel Gray", "Metallic Shadow Silver", "Metallic Stone Silver",
"Metallic Midnight Silver", "Metallic Gun Metal", "Metallic Anthracite Grey",
"Matte Black", "Matte Gray", "Matte Light Grey", "Util Black", "Util Black Poly",
"Util Dark silver", "Util Silver", "Util Gun Metal", "Util Shadow Silver",
"Worn Black", "Worn Graphite", "Worn Silver Grey", "Worn Silver",
"Worn Blue Silver", "Worn Shadow Silver", "Metallic Red", "Metallic Torino Red",
"Metallic Formula Red", "Metallic Blaze Red", "Metallic Graceful Red",
"Metallic Garnet Red", "Metallic Desert Red", "Metallic Cabernet Red",
"Metallic Candy Red", "Metallic Sunrise Orange", "Metallic Classic Gold",
"Metallic Orange", "Matte Red", "Matte Dark Red", "Matte Orange", "Matte Yellow",
"Util Red", "Util Bright Red", "Util Garnet Red", "Worn Red", "Worn Golden Red",
"Worn Dark Red", "Metallic Dark Green", "Metallic Racing Green", "Metallic Sea Green",
"Metallic Olive Green", "Metallic Green", "Metallic Gasoline Blue Green",
"Matte Lime Green", "Util Dark Green", "Util Green", "Worn Dark Green",
"Worn Green", "Worn Sea Wash", "Metallic Midnight Blue", "Metallic Dark Blue",
"Metallic Saxony Blue", "Metallic Blue", "Metallic Mariner Blue", "Metallic Harbor Blue",
"Metallic Diamond Blue", "Metallic Surf Blue", "Metallic Nautical Blue", "Metallic Bright Blue",
"Metallic Purple Blue", "Metallic Spinnaker Blue", "Metallic Ultra Blue", "Metallic Bright Blue",
"Util Dark Blue", "Util Midnight Blue", "Util Blue", "Util Sea Foam Blue", "Uil Lightning blue",
"Util Maui Blue Poly", "Util Bright Blue", "Matte Dark Blue", "Matte Blue", "Matte Midnight Blue",
"Worn Dark blue", "Worn Blue", "Worn Light blue", "Metallic Taxi Yellow", "Metallic Race Yellow",
"Metallic Bronze", "Metallic Yellow Bird", "Metallic Lime", "Metallic Champagne",
"Metallic Pueblo Beige", "Metallic Dark Ivory", "Metallic Choco Brown", "Metallic Golden Brown",
"Metallic Light Brown", "Metallic Straw Beige", "Metallic Moss Brown", "Metallic Biston Brown",
"Metallic Beechwood", "Metallic Dark Beechwood", "Metallic Choco Orange", "Metallic Beach Sand",
"Metallic Sun Bleeched Sand", "Metallic Cream", "Util Brown", "Util Medium Brown", "Util Light Brown",
"Metallic White", "Metallic Frost White", "Worn Honey Beige", "Worn Brown", "Worn Dark Brown",
"Worn straw beige", "Brushed Steel", "Brushed Black steel", "Brushed Aluminium", "Chrome",
"Worn Off White", "Util Off White", "Worn Orange", "Worn Light Orange", "Metallic Securicor Green",
"Worn Taxi Yellow", "Police Car Blue", "Matte Green", "Matte Brown", "Worn Orange", "Matte White",
"Worn White", "Worn Olive Army Green", "Pure White", "Hot Pink", "Salmon pink", "Metallic Vermillion Pink",
"Orange", "Green", "Blue", "Mettalic Black Blue", "Metallic Black Purple", "Metallic Black Red",
"hunter green", "metallic purple", "midnight purple", "worn purple", "bronze", "yellow", "green"
}
client_config.lua
--[[
░██████╗██╗░░██╗██████╗░ ░██████╗░█████╗░██████╗░██╗██████╗░████████╗░██████╗
██╔════╝██║░██╔╝██╔══██╗ ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝██╔════╝
╚█████╗░█████═╝░██████╔╝ ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░╚█████╗░
░╚═══██╗██╔═██╗░██╔══██╗ ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░╚═══██╗
██████╔╝██║░╚██╗██║░░██║ ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░██████╔╝
╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝ ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░╚═════╝░
--]]
function Dispatch(targetLabel)
local data = exports['cd_dispatch']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = skr.PoliceJobs,
coords = data.coords,
title = '10-11 - Traffic Stop',
message = 'Ongoing traffic stop ' .. targetLabel .. ' on ' .. data.street,
flash = 0,
unique_id = data.unique_id,
sound = 1,
blip = {
sprite = 280,
scale = 1.2,
colour = 3,
flashes = false,
text = '10-11 - Traffic Stop',
time = 5000,
radius = 0,
}
})
end
function CustomNotify()
--[[
lib.notify({
title = notifyTitle,
description = notifyDescription,
type = notifyType
})
--]]
end
Last updated