βοΈInstallation
Installation for the kh-policesystem
1-put the script in your resources folder
2-put this line in the server.cfg
ensure kh-policesystem
3-go to qb-core/shared/items.lua and put this lines below
βββββββββββββββββββββββββββββββββββββββββββββ
["kh-mic"] = {["name"] = "kh-mic", ["label"] = "MIC", ["weight"] = 500, ["type"] = "item", ["image"] = "kh-mic.png", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "police system item"}, ["kh-bodycam"] = {["name"] = "kh-bodycam", ["label"] = "Body Cam", ["weight"] = 2000, ["type"] = "item", ["image"] = "kh-bodycam.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A Body Cam , Just For Police."},
3-go to qb-core/server/player.lua and put the lines below in line 116
βββββββββββββββββββββββββββββββββββββββββββββ
PlayerData.metadata["rank1"] = PlayerData.metadata["rank1"] ~= nil and PlayerData.metadata["rank1"] or 0 PlayerData.metadata["rank2"] = PlayerData.metadata["rank2"] ~= nil and PlayerData.metadata["rank2"] or 0 PlayerData.metadata["rank3"] = PlayerData.metadata["rank3"] ~= nil and PlayerData.metadata["rank3"] or 0 PlayerData.metadata["rank4"] = PlayerData.metadata["rank4"] ~= nil and PlayerData.metadata["rank4"] or 0 PlayerData.metadata["dirc"] = PlayerData.metadata["dirc"] ~= nil and PlayerData.metadata["dirc"] or "No Direction"
4- make sure that you have callsign metadata if you don't put the metadata below with the others
PlayerData.metadata['callsign'] = PlayerData.metadata['callsign'] or 'NO CALLSIGN'
5- go to kh-policesystem/html/local.js and put the lang you want to be in the script
for english put this βββββββ
'locales/en.lua',
for arabic put this βββββββ
'locales/ar.lua',
7- last thing configure the script as you like in the config.lua
Some Examples
robbery log example
"name of the robbery" "robbery location" βββββββββββββββββββ βββββββββββββββ TriggerClientEvent('kh-mic:Client:createdispatch', -1, 'Store robbery in', 'Braddock Tunnel') <<--- this is example for the robbery log and how trigger it
Last updated