RegisterNetEvent("doors_creator:doorHasBeenLockpicked", function(playerId, doorId)
end)
RegisterNetEvent("doors_creator:doorHasBeenLockpicked", function(playerId, doorId)
local playerName = GetPlayerName(playerId)
local doorData = exports["doors_creator"]:getDoorIdData(doorId)
local doorCoords = doorData.coords
for k, playerId in pairs(GetPlayers()) do
local xPlayer = ESX.GetPlayerFromId(playerId)
if(xPlayer.job.name == "police") then
TriggerClientEvent("alert_system:alert", playerId, doorCoords, "Door has been lockpicked")
end
end
end)