local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1, L32_1, L33_1, L34_1, L35_1, L36_1, L37_1, L38_1, L39_1, L40_1, L41_1, L42_1, L43_1, L44_1, L45_1, L46_1, L47_1, L48_1, L49_1, L50_1, L51_1, L52_1, L53_1, L54_1, L55_1, L56_1, L57_1, L58_1, L59_1, L60_1, L61_1, L62_1, L63_1, L64_1, L65_1, L66_1, L67_1 L0_1 = false L1_1 = {} L2_1 = {} L3_1 = {} L4_1 = {} L5_1 = {} L6_1 = {} L7_1 = {} L8_1 = {} L9_1 = {} L10_1 = {} L11_1 = {} L12_1 = {} L13_1 = {} L14_1 = {} L15_1 = nil L16_1 = {} L17_1 = {} L16_1.profiles = L17_1 L17_1 = {} L16_1.vehicles = L17_1 L17_1 = {} L16_1.businesses = L17_1 L17_1 = {} L16_1.employees = L17_1 L17_1 = {} L16_1.properties = L17_1 L17_1 = {} L18_1 = {} L19_1 = {} L20_1 = {} L21_1 = {} L22_1 = {} L23_1 = {} employees = L23_1 laws = L22_1 charges = L21_1 jobPlayers = L20_1 profiles = L19_1 frameworkLoaded = false L19_1 = {} L20_1 = 0 function L21_1(A0_2, A1_2, A2_2, ...) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L4_2 = L20_1 L3_2 = L19_1 L3_2[L4_2] = A2_2 L3_2 = TriggerClientEvent L4_2 = "tk_mdt:triggerClientCallback" L5_2 = A0_2 L6_2 = A1_2 L7_2 = L20_1 L8_2 = ... L3_2(L4_2, L5_2, L6_2, L7_2, L8_2) L3_2 = L20_1 L3_2 = L3_2 + 1 L20_1 = L3_2 end TriggerCallback = L21_1 L21_1 = RegisterNetEvent L22_1 = "tk_mdt:clientCallback" function L23_1(A0_2, ...) local L1_2, L2_2, L3_2, L4_2 L1_2 = L19_1 L1_2 = L1_2[A0_2] if not L1_2 then L1_2 = print L2_2 = "Client callback with requestId %s was called but does not exist." L3_2 = L2_2 L2_2 = L2_2.format L4_2 = A0_2 L2_2, L3_2, L4_2 = L2_2(L3_2, L4_2) return L1_2(L2_2, L3_2, L4_2) end L1_2 = L19_1 L1_2 = L1_2[A0_2] L2_2, L3_2, L4_2 = ... L1_2(L2_2, L3_2, L4_2) L1_2 = L19_1 L1_2[A0_2] = nil end L21_1(L22_1, L23_1) L21_1 = {} function L22_1(A0_2, A1_2) local L2_2 L2_2 = L21_1 L2_2[A0_2] = A1_2 end RegisterLatentCallback = L22_1 L22_1 = RegisterNetEvent L23_1 = "tk_mdt:triggerServerCallback" function L24_1(A0_2, A1_2, A2_2, ...) local L3_2, L4_2, L5_2, L6_2, L7_2 L3_2 = L21_1 L3_2 = L3_2[A0_2] if not L3_2 then L3_2 = error L4_2 = "Server callback %s invoked by %s not registered" L5_2 = L4_2 L4_2 = L4_2.format L6_2 = A0_2 L7_2 = A2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2, L6_2, L7_2) L3_2(L4_2, L5_2, L6_2, L7_2) end L3_2 = source L4_2 = L21_1 L4_2 = L4_2[A0_2] L5_2 = L3_2 function L6_2(...) local L0_3, L1_3, L2_3, L3_3, L4_3, L5_3, L6_3 L0_3 = TriggerLatentClientEvent L1_3 = "tk_mdt:serverCallback" L2_3 = L3_2 L3_3 = Config L3_3 = L3_3.BPS if not L3_3 then L3_3 = 1000000 end L4_3 = A1_2 L5_3 = A2_2 L6_3 = ... L0_3(L1_3, L2_3, L3_3, L4_3, L5_3, L6_3) end L7_2 = ... L4_2(L5_2, L6_2, L7_2) end L22_1(L23_1, L24_1) function L22_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L0_2 = pairs L1_2 = Config L1_2 = L1_2.MDTs L0_2, L1_2, L2_2, L3_2 = L0_2(L1_2) for L4_2, L5_2 in L0_2, L1_2, L2_2, L3_2 do L6_2 = type L7_2 = L5_2.items L6_2 = L6_2(L7_2) if "table" == L6_2 then L6_2 = pairs L7_2 = L5_2.items L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = CreateUsableItem L13_2 = L11_2 function L14_2(A0_3) local L1_3, L2_3, L3_3, L4_3, L5_3 L1_3 = GetPlayerFromId L2_3 = A0_3 L1_3 = L1_3(L2_3) L2_3 = GetItemAmount L3_3 = L1_3 L4_3 = L11_2 L2_3 = L2_3(L3_3, L4_3) if L2_3 <= 0 then return end L2_3 = TriggerClientEvent L3_3 = "tk_mdt:openMDT" L4_3 = A0_3 L5_3 = L4_2 L2_3(L3_3, L4_3, L5_3) end L12_2(L13_2, L14_2) end end end end function L23_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = GetPlayerFromId L3_2 = A1_2 L2_2 = L2_2(L3_2) if not L2_2 then L3_2 = false return L3_2 end L3_2 = GetJobName L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = GetGradeId L5_2 = L2_2 L4_2 = L4_2(L5_2) L5_2 = Config L5_2 = L5_2.DebugMode if L5_2 then L5_2 = print L6_2 = "get jobs" L7_2 = A0_2 L5_2(L6_2, L7_2) end L5_2 = Config L5_2 = L5_2.MDTs L5_2 = L5_2[A0_2] if L5_2 then L5_2 = L5_2.jobs end L6_2 = type L7_2 = L5_2 L6_2 = L6_2(L7_2) if "table" ~= L6_2 then L6_2 = true return L6_2 end L6_2 = L5_2[L3_2] if L6_2 then L6_2 = L5_2[L3_2] L6_2 = L4_2 >= L6_2 end return L6_2 end function L24_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = type L3_2 = A0_2 L2_2 = L2_2(L3_2) if "table" ~= L2_2 then L2_2 = false return L2_2 end L2_2 = pairs L3_2 = A0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do if L7_2 == A1_2 then L8_2 = true return L8_2 end end L2_2 = false return L2_2 end function L25_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2 L0_2 = {} L1_2 = pairs L2_2 = Config L2_2 = L2_2.MDTs L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = Config L7_2 = L7_2.DebugMode if L7_2 then L7_2 = print L8_2 = "get jobs2" L9_2 = L5_2 L7_2(L8_2, L9_2) end L7_2 = type L8_2 = L6_2.jobs L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = {} L0_2[L5_2] = L7_2 L7_2 = pairs L8_2 = L6_2.jobs L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L0_2[L5_2] L13_2[L11_2] = L12_2 end end end L1_2 = {} L2_2 = GetPlayers L2_2 = L2_2() L3_2 = pairs L4_2 = L2_2 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = tonumber L10_2 = L8_2 L9_2 = L9_2(L10_2) L8_2 = L9_2 L9_2 = GetPlayerFromId L10_2 = L8_2 L9_2 = L9_2(L10_2) if L9_2 then L10_2 = IsOnDuty L11_2 = L9_2 L10_2 = L10_2(L11_2) if L10_2 then L10_2 = GetJobName L11_2 = L9_2 L10_2 = L10_2(L11_2) L11_2 = GetGradeId L12_2 = L9_2 L11_2 = L11_2(L12_2) L12_2 = pairs L13_2 = L0_2 L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) for L16_2, L17_2 in L12_2, L13_2, L14_2, L15_2 do L18_2 = L1_2[L16_2] if not L18_2 then L18_2 = {} end L1_2[L16_2] = L18_2 L18_2 = Config L18_2 = L18_2.DebugMode if L18_2 then L18_2 = print L19_2 = "get jobs7" L20_2 = L16_2 L18_2(L19_2, L20_2) end L18_2 = type L19_2 = L17_2 L18_2 = L18_2(L19_2) if "table" == L18_2 then L18_2 = L17_2[L10_2] if L18_2 then L18_2 = L17_2[L10_2] if L11_2 >= L18_2 then L18_2 = L24_1 L19_2 = L1_2[L16_2] L20_2 = L8_2 L18_2 = L18_2(L19_2, L20_2) if not L18_2 then L18_2 = L1_2[L16_2] L19_2 = L1_2[L16_2] L19_2 = #L19_2 L19_2 = L19_2 + 1 L18_2[L19_2] = L8_2 break end end end end end end end end return L1_2 end function L26_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, title, vehicles, date, 0 AS isReport, page FROM tk_mdt_incidents WHERE vehicles LIKE '%"hasBOLO":true%' UNION SELECT id, title, vehicles, date, 1 AS isReport, page FROM tk_mdt_reports WHERE vehicles LIKE '%"hasBOLO":true%' ]] L0_2 = L0_2(L1_2) L1_2 = {} L2_2 = ipairs L3_2 = L0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = json L8_2 = L8_2.decode L9_2 = L7_2.vehicles L8_2 = L8_2(L9_2) L9_2 = ipairs L10_2 = L8_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) for L13_2, L14_2 in L9_2, L10_2, L11_2, L12_2 do L15_2 = L14_2.hasBOLO if L15_2 then L15_2 = L7_2.page L16_2 = L7_2.page L16_2 = L1_2[L16_2] if not L16_2 then L16_2 = {} end L1_2[L15_2] = L16_2 L15_2 = L7_2.page L15_2 = L1_2[L15_2] L16_2 = L14_2.plate L17_2 = L7_2.page L17_2 = L1_2[L17_2] L18_2 = L14_2.plate L17_2 = L17_2[L18_2] if not L17_2 then L17_2 = {} end L15_2[L16_2] = L17_2 L15_2 = L7_2.page L15_2 = L1_2[L15_2] L16_2 = L14_2.plate L15_2 = L15_2[L16_2] L16_2 = L7_2.id L17_2 = {} L18_2 = L7_2.id L17_2.id = L18_2 L18_2 = L7_2.title L17_2.title = L18_2 L18_2 = L7_2.isReport L18_2 = 1 == L18_2 L17_2.isReport = L18_2 L18_2 = L7_2.date L17_2.date = L18_2 L15_2[L16_2] = L17_2 end end end return L1_2 end function L27_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, title, criminals, date, page FROM tk_mdt_incidents WHERE criminals LIKE '%"hasWarrant":true%' ]] L0_2 = L0_2(L1_2) L1_2 = {} L2_2 = ipairs L3_2 = L0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = json L8_2 = L8_2.decode L9_2 = L7_2.criminals L8_2 = L8_2(L9_2) L9_2 = ipairs L10_2 = L8_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) for L13_2, L14_2 in L9_2, L10_2, L11_2, L12_2 do L15_2 = L14_2.hasWarrant if L15_2 then L15_2 = L7_2.page L16_2 = L7_2.page L16_2 = L1_2[L16_2] if not L16_2 then L16_2 = {} end L1_2[L15_2] = L16_2 L15_2 = L7_2.page L15_2 = L1_2[L15_2] L16_2 = L14_2.identifier L17_2 = L7_2.page L17_2 = L1_2[L17_2] L18_2 = L14_2.identifier L17_2 = L17_2[L18_2] if not L17_2 then L17_2 = {} end L15_2[L16_2] = L17_2 L15_2 = L7_2.page L15_2 = L1_2[L15_2] L16_2 = L14_2.identifier L15_2 = L15_2[L16_2] L16_2 = L7_2.id L17_2 = {} L18_2 = L7_2.id L17_2.incidentId = L18_2 L18_2 = L7_2.title L17_2.incidentTitle = L18_2 L18_2 = L7_2.date L17_2.date = L18_2 L15_2[L16_2] = L17_2 end end end return L1_2 end function L28_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = pairs L3_2 = Config L3_2 = L3_2.MDTs L3_2 = L3_2[A0_2] L3_2 = L3_2.pages L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.name if L8_2 == A1_2 then return L6_2 end end L2_2 = nil return L2_2 end function L29_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L1_2 = {} L2_2 = ipairs L3_2 = A0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.page if L8_2 then L8_2 = L7_2.page L9_2 = L7_2.page L9_2 = L1_2[L9_2] if not L9_2 then L9_2 = {} end L1_2[L8_2] = L9_2 L8_2 = table L8_2 = L8_2.insert L9_2 = L7_2.page L9_2 = L1_2[L9_2] L10_2 = L7_2 L8_2(L9_2, L10_2) else L8_2 = pairs L9_2 = Config L9_2 = L9_2.MDTs L8_2, L9_2, L10_2, L11_2 = L8_2(L9_2) for L12_2, L13_2 in L8_2, L9_2, L10_2, L11_2 do L14_2 = L28_1 L15_2 = L12_2 L16_2 = "properties" L14_2 = L14_2(L15_2, L16_2) if L14_2 then L14_2 = L1_2[L12_2] if not L14_2 then L14_2 = {} end L1_2[L12_2] = L14_2 L14_2 = table L14_2 = L14_2.insert L15_2 = L1_2[L12_2] L16_2 = L7_2 L14_2(L15_2, L16_2) break end end end end L2_2 = pairs L3_2 = Config L3_2 = L3_2.MDTs L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2 in L2_2, L3_2, L4_2, L5_2 do L7_2 = L1_2[L6_2] if not L7_2 then L7_2 = {} L1_2[L6_2] = L7_2 end end return L1_2 end L30_1 = {} function L31_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 L1_2 = GetResourceKvpString L2_2 = "tk_mdt_logs_%s" L3_2 = L2_2 L2_2 = L2_2.format L4_2 = A0_2 L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L2_2(L3_2, L4_2) L1_2 = L1_2(L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) if L1_2 then L2_2 = json L2_2 = L2_2.decode L3_2 = L1_2 L2_2 = L2_2(L3_2) L1_2 = L2_2 L2_2 = os L2_2 = L2_2.time L2_2 = L2_2() L3_2 = Config L3_2 = L3_2.LogDuration L3_2 = L3_2 * 24 L3_2 = L3_2 * 60 L3_2 = L3_2 * 60 L4_2 = {} L5_2 = pairs L6_2 = L1_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = pairs L12_2 = L10_2 L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2) for L15_2, L16_2 in L11_2, L12_2, L13_2, L14_2 do L17_2 = L16_2.date if L17_2 then L17_2 = L16_2.date L17_2 = L2_2 - L17_2 if L3_2 >= L17_2 then L17_2 = L4_2[L9_2] if not L17_2 then L17_2 = {} end L4_2[L9_2] = L17_2 L17_2 = L4_2[L9_2] L18_2 = L4_2[L9_2] L18_2 = #L18_2 L18_2 = L18_2 + 1 L17_2[L18_2] = L16_2 end end end end return L4_2 end L2_2 = {} return L2_2 end function L32_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2 L1_2 = tostring L2_2 = A0_2.value L1_2 = L1_2(L2_2) A0_2.value = L1_2 L1_2 = assert L2_2 = type L3_2 = A0_2 L2_2 = L2_2(L3_2) L2_2 = "table" == L2_2 L3_2 = "logEntry must be a table" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = type L3_2 = A0_2.identifier L2_2 = L2_2(L3_2) L2_2 = "string" == L2_2 L3_2 = "identifier must be a string" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = type L3_2 = A0_2.name L2_2 = L2_2(L3_2) L2_2 = "string" == L2_2 L3_2 = "name must be a string" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = type L3_2 = A0_2.action L2_2 = L2_2(L3_2) L2_2 = "string" == L2_2 L3_2 = "action must be a string" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = type L3_2 = A0_2.value L2_2 = L2_2(L3_2) L2_2 = "string" == L2_2 L3_2 = "value must be a string" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = type L3_2 = A0_2.page L2_2 = L2_2(L3_2) L2_2 = "string" == L2_2 L3_2 = "page must be a string" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = type L3_2 = A0_2.job L2_2 = L2_2(L3_2) L2_2 = "string" == L2_2 L3_2 = "job must be a string" L1_2(L2_2, L3_2) L1_2 = assert L2_2 = A0_2.component L2_2 = nil == L2_2 L3_2 = "component must be a string or nil" L1_2(L2_2, L3_2) L1_2 = {} L2_2 = A0_2.identifier L1_2.identifier = L2_2 L2_2 = A0_2.name L1_2.name = L2_2 L2_2 = A0_2.action L1_2.action = L2_2 L2_2 = A0_2.value L1_2.value = L2_2 L2_2 = A0_2.page L1_2.page = L2_2 L2_2 = A0_2.component L1_2.component = L2_2 L2_2 = os L2_2 = L2_2.time L2_2 = L2_2() L1_2.date = L2_2 L3_2 = A0_2.page L2_2 = L30_1 L5_2 = A0_2.page L4_2 = L30_1 L4_2 = L4_2[L5_2] if not L4_2 then L4_2 = L31_1 L5_2 = A0_2.job L4_2 = L4_2(L5_2) if not L4_2 then L4_2 = {} end end L2_2[L3_2] = L4_2 L3_2 = A0_2.page L2_2 = L30_1 L2_2 = L2_2[L3_2] L4_2 = A0_2.page L3_2 = L30_1 L3_2 = L3_2[L4_2] L3_2 = #L3_2 L3_2 = L3_2 + 1 L2_2[L3_2] = L1_2 L2_2 = SetResourceKvp L3_2 = "tk_mdt_logs_%s" L4_2 = L3_2 L3_2 = L3_2.format L5_2 = A0_2.job L3_2 = L3_2(L4_2, L5_2) L4_2 = json L4_2 = L4_2.encode L5_2 = L30_1 L4_2, L5_2 = L4_2(L5_2) L2_2(L3_2, L4_2, L5_2) end L33_1 = RegisterCommand L34_1 = "clearlog" function L35_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L0_2 = pairs L1_2 = Config L1_2 = L1_2.MDTs L0_2, L1_2, L2_2, L3_2 = L0_2(L1_2) for L4_2 in L0_2, L1_2, L2_2, L3_2 do L5_2 = DeleteResourceKvp L6_2 = "tk_mdt_logs_%s" L7_2 = L6_2 L6_2 = L6_2.format L8_2 = L4_2 L6_2, L7_2, L8_2 = L6_2(L7_2, L8_2) L5_2(L6_2, L7_2, L8_2) end end L36_1 = true L33_1(L34_1, L35_1, L36_1) function L33_1() local L0_2, L1_2 L0_2 = L16_1.profiles if not L0_2 then L0_2 = {} end return L0_2 end function L34_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2 L2_2 = [[ SELECT COUNT(*) as count FROM information_schema.TABLE_CONSTRAINTS WHERE TABLE_NAME = ? AND CONSTRAINT_TYPE = 'PRIMARY KEY' AND TABLE_SCHEMA = DATABASE() ]] L3_2 = MySQL L3_2 = L3_2.Async L3_2 = L3_2.fetchScalar L4_2 = L2_2 L5_2 = {} L6_2 = A0_2 L5_2[1] = L6_2 function L6_2(A0_3) local L1_3, L2_3 L1_3 = A1_2 L2_3 = A0_3 or L2_3 L2_3 = A0_3 and A0_3 > 0 L1_3(L2_3) end L3_2(L4_2, L5_2, L6_2) end hasPrimaryKey = L34_1 function L34_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L3_2 = [[ SELECT tc.CONSTRAINT_NAME FROM information_schema.TABLE_CONSTRAINTS AS tc JOIN information_schema.KEY_COLUMN_USAGE AS kcu ON tc.CONSTRAINT_NAME = kcu.CONSTRAINT_NAME AND tc.TABLE_SCHEMA = kcu.TABLE_SCHEMA AND tc.TABLE_NAME = kcu.TABLE_NAME WHERE tc.TABLE_NAME = ? AND tc.CONSTRAINT_TYPE = 'UNIQUE' AND tc.TABLE_SCHEMA = DATABASE() GROUP BY tc.CONSTRAINT_NAME HAVING GROUP_CONCAT(kcu.COLUMN_NAME ORDER BY kcu.ORDINAL_POSITION) = ? ]] L4_2 = table L4_2 = L4_2.concat L5_2 = A1_2 L6_2 = "," L4_2 = L4_2(L5_2, L6_2) L5_2 = MySQL L5_2 = L5_2.Async L5_2 = L5_2.fetchAll L6_2 = L3_2 L7_2 = {} L8_2 = A0_2 L9_2 = L4_2 L7_2[1] = L8_2 L7_2[2] = L9_2 function L8_2(A0_3) local L1_3, L2_3 L1_3 = A2_2 L2_3 = #A0_3 L2_3 = L2_3 > 0 L1_3(L2_3) end L5_2(L6_2, L7_2, L8_2) end hasUniqueKey = L34_1 function L34_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2 L3_2 = hasPrimaryKey L4_2 = A0_2 function L5_2(A0_3) local L1_3, L2_3, L3_3, L4_3 if A0_3 then L1_3 = MySQL L1_3 = L1_3.Sync L1_3 = L1_3.execute L2_3 = "ALTER TABLE " L3_3 = A0_2 L4_3 = " DROP PRIMARY KEY" L2_3 = L2_3 .. L3_3 .. L4_3 L1_3(L2_3) L1_3 = print L2_3 = "Dropped PRIMARY KEY from " L3_3 = A0_2 L2_3 = L2_3 .. L3_3 L1_3(L2_3) end L1_3 = hasUniqueKey L2_3 = A0_2 L3_3 = A1_2 function L4_3(A0_4) local L1_4, L2_4, L3_4, L4_4, L5_4, L6_4, L7_4, L8_4, L9_4 if not A0_4 then L1_4 = table L1_4 = L1_4.concat L2_4 = A1_2 L3_4 = ", " L1_4 = L1_4(L2_4, L3_4) L2_4 = MySQL L2_4 = L2_4.Sync L2_4 = L2_4.execute L3_4 = "ALTER TABLE " L4_4 = A0_2 L5_4 = " ADD CONSTRAINT " L6_4 = A2_2 L7_4 = " UNIQUE (" L8_4 = L1_4 L9_4 = ")" L3_4 = L3_4 .. L4_4 .. L5_4 .. L6_4 .. L7_4 .. L8_4 .. L9_4 L2_4(L3_4) L2_4 = print L3_4 = "Unique key '" L4_4 = A2_2 L5_4 = "' added to " L6_4 = A0_2 L3_4 = L3_4 .. L4_4 .. L5_4 .. L6_4 L2_4(L3_4) else end end L1_3(L2_3, L3_3, L4_3) end L3_2(L4_2, L5_2) end ensureUniqueConstraint = L34_1 function L34_1() local L0_2, L1_2, L2_2, L3_2, L4_2 L0_2 = ensureUniqueConstraint L1_2 = "tk_mdt_profiles" L2_2 = {} L3_2 = "identifier" L4_2 = "page" L2_2[1] = L3_2 L2_2[2] = L4_2 L3_2 = "profile" L0_2(L1_2, L2_2, L3_2) L0_2 = ensureUniqueConstraint L1_2 = "tk_mdt_employees" L2_2 = {} L3_2 = "identifier" L4_2 = "page" L2_2[1] = L3_2 L2_2[2] = L4_2 L3_2 = "employee" L0_2(L1_2, L2_2, L3_2) L0_2 = ensureUniqueConstraint L1_2 = "tk_mdt_businesses" L2_2 = {} L3_2 = "name" L4_2 = "page" L2_2[1] = L3_2 L2_2[2] = L4_2 L3_2 = "business" L0_2(L1_2, L2_2, L3_2) L0_2 = ensureUniqueConstraint L1_2 = "tk_mdt_vehicles" L2_2 = {} L3_2 = "plate" L4_2 = "page" L2_2[1] = L3_2 L2_2[2] = L4_2 L3_2 = "vehicle" L0_2(L1_2, L2_2, L3_2) L0_2 = ensureUniqueConstraint L1_2 = "tk_mdt_properties" L2_2 = {} L3_2 = "id" L4_2 = "page" L2_2[1] = L3_2 L2_2[2] = L4_2 L3_2 = "property" L0_2(L1_2, L2_2, L3_2) end function L35_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, image, page FROM tk_mdt_properties ]] L0_2 = L0_2(L1_2) L1_2 = {} L2_2 = pairs L3_2 = L0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.page if not L8_2 then else L8_2 = #L1_2 L8_2 = L8_2 + 1 L9_2 = {} L10_2 = L7_2.id L9_2.id = L10_2 L10_2 = L7_2.image L9_2.image = L10_2 L10_2 = L7_2.page L9_2.page = L10_2 L1_2[L8_2] = L9_2 end end return L1_2 end function L36_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT COUNT(*) as count FROM information_schema.tables WHERE table_name = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] L2_2 = L2_2.count L2_2 = L2_2 > 0 return L2_2 end function L37_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = " SHOW COLUMNS FROM " L4_2 = A0_2 L5_2 = [[ LIKE ? ]] L3_2 = L3_2 .. L4_2 .. L5_2 L4_2 = {} L5_2 = A1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = #L2_2 L3_2 = L3_2 > 0 return L3_2 end HasColumn = L37_1 function L37_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L0_2 = Config L0_2 = L0_2.DebugMode if L0_2 then L0_2 = print L1_2 = "start init" L0_2(L1_2) end L0_2 = L36_1 L1_2 = "tk_mdt_permissions" L0_2 = L0_2(L1_2) if L0_2 then L0_2 = HasColumn L1_2 = "tk_mdt_incidents" L2_2 = "employees" L0_2 = L0_2(L1_2, L2_2) if L0_2 then goto lbl_22 end end L0_2 = print L1_2 = "Database tables are not setup correctly. If you are updating from old version use /convertmdt. If not, run the SQL file to create the needed tables" L0_2(L1_2) ::lbl_22:: L0_2 = L22_1 L0_2() L0_2 = Config L0_2 = L0_2.DebugMode if L0_2 then L0_2 = print L1_2 = "items created" L0_2(L1_2) end L0_2 = GetGameTimer L0_2 = L0_2() L1_2 = L26_1 L1_2 = L1_2() L17_1 = L1_2 L1_2 = L27_1 L1_2 = L1_2() L18_1 = L1_2 L1_2 = Config L1_2 = L1_2.DebugMode if L1_2 then L1_2 = print L2_2 = "get bolo and warrant data" L3_2 = GetGameTimer L3_2 = L3_2() L3_2 = L3_2 - L0_2 L1_2(L2_2, L3_2) end L1_2 = GetGameTimer L1_2 = L1_2() L0_2 = L1_2 L1_2 = L25_1 L1_2 = L1_2() jobPlayers = L1_2 L1_2 = GetGrades L1_2 = L1_2() if not L1_2 then L1_2 = {} end grades = L1_2 L1_2 = Config L1_2 = L1_2.DebugMode if L1_2 then L1_2 = print L2_2 = "get grades" L3_2 = GetGameTimer L3_2 = L3_2() L3_2 = L3_2 - L0_2 L1_2(L2_2, L3_2) end L1_2 = GetGameTimer L1_2 = L1_2() L0_2 = L1_2 L1_2 = L29_1 L2_2 = GetTags L2_2 = L2_2() if not L2_2 then L2_2 = {} end L1_2 = L1_2(L2_2) L3_1 = L1_2 L1_2 = L29_1 L2_2 = GetCharges L2_2 = L2_2() if not L2_2 then L2_2 = {} end L1_2 = L1_2(L2_2) charges = L1_2 L1_2 = L29_1 L2_2 = GetLaws L2_2 = L2_2() if not L2_2 then L2_2 = {} end L1_2 = L1_2(L2_2) laws = L1_2 L1_2 = Config L1_2 = L1_2.DebugMode if L1_2 then L1_2 = print L2_2 = "get tags and charges" L3_2 = GetGameTimer L3_2 = L3_2() L3_2 = L3_2 - L0_2 L1_2(L2_2, L3_2) end L1_2 = GetGameTimer L1_2 = L1_2() L0_2 = L1_2 L1_2 = GetProfiles L1_2, L2_2 = L1_2() L3_2 = Config L3_2 = L3_2.DebugMode if L3_2 then L3_2 = print L4_2 = "get profiles" L5_2 = GetGameTimer L5_2 = L5_2() L5_2 = L5_2 - L0_2 L3_2(L4_2, L5_2) end L16_1.profiles = L1_2 profiles = L2_2 L3_2 = GetGameTimer L3_2 = L3_2() L0_2 = L3_2 L3_2 = GetVehicles L3_2, L4_2 = L3_2() L5_2 = Config L5_2 = L5_2.DebugMode if L5_2 then L5_2 = print L6_2 = "get vehicles" L7_2 = GetGameTimer L7_2 = L7_2() L7_2 = L7_2 - L0_2 L5_2(L6_2, L7_2) end L16_1.vehicles = L3_2 L4_1 = L4_2 L5_2 = GetGameTimer L5_2 = L5_2() L0_2 = L5_2 L5_2 = GetBusinesses L5_2, L6_2 = L5_2() L7_2 = Config L7_2 = L7_2.DebugMode if L7_2 then L7_2 = print L8_2 = "get businesses" L9_2 = GetGameTimer L9_2 = L9_2() L9_2 = L9_2 - L0_2 L7_2(L8_2, L9_2) end L16_1.businesses = L5_2 L6_1 = L6_2 L7_2 = GetGameTimer L7_2 = L7_2() L0_2 = L7_2 L7_2 = GetEmployees L7_2, L8_2 = L7_2() L16_1.employees = L7_2 L9_2 = L29_1 L10_2 = L8_2 L9_2 = L9_2(L10_2) employees = L9_2 L9_2 = Config L9_2 = L9_2.DebugMode if L9_2 then L9_2 = print L10_2 = "get employees" L11_2 = GetGameTimer L11_2 = L11_2() L11_2 = L11_2 - L0_2 L9_2(L10_2, L11_2) end L9_2 = GetGameTimer L9_2 = L9_2() L0_2 = L9_2 L9_2 = GetProperties L10_2 = L16_1.profiles L9_2 = L9_2(L10_2) L16_1.properties = L9_2 L9_2 = L29_1 L10_2 = L35_1 L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L5_1 = L9_2 L9_2 = Config L9_2 = L9_2.DebugMode if L9_2 then L9_2 = print L10_2 = "get properties" L11_2 = GetGameTimer L11_2 = L11_2() L11_2 = L11_2 - L0_2 L9_2(L10_2, L11_2) end L9_2 = GetGameTimer L9_2 = L9_2() L0_2 = L9_2 L9_2 = L29_1 L10_2 = GetIncidents L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L7_1 = L9_2 L9_2 = L29_1 L10_2 = GetReports L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L8_1 = L9_2 L9_2 = L29_1 L10_2 = GetTrainingReports L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L9_1 = L9_2 L9_2 = L29_1 L10_2 = GetPoliceReports L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L10_1 = L9_2 L9_2 = L29_1 L10_2 = GetEvidence L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L11_1 = L9_2 L9_2 = L29_1 L10_2 = GetWeapons L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L12_1 = L9_2 L9_2 = L29_1 L10_2 = GetAnnouncements L10_2 = L10_2() if not L10_2 then L10_2 = {} end L9_2 = L9_2(L10_2) L14_1 = L9_2 L9_2 = GetPermissions L9_2 = L9_2() if not L9_2 then L9_2 = {} end permissions = L9_2 L9_2 = pairs L10_2 = Config L10_2 = L10_2.MDTs L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) for L13_2 in L9_2, L10_2, L11_2, L12_2 do L14_2 = L2_1 L15_2 = L31_1 L16_2 = L13_2 L15_2 = L15_2(L16_2) L14_2[L13_2] = L15_2 end L9_2 = Config L9_2 = L9_2.DebugMode if L9_2 then L9_2 = print L10_2 = "get other data" L11_2 = GetGameTimer L11_2 = L11_2() L11_2 = L11_2 - L0_2 L9_2(L10_2, L11_2) end L9_2 = GetGameTimer L9_2 = L9_2() L0_2 = L9_2 L9_2 = L33_1 L9_2 = L9_2() L1_1 = L9_2 L9_2 = Config L9_2 = L9_2.DebugMode if L9_2 then L9_2 = print L10_2 = "get players" L11_2 = GetGameTimer L11_2 = L11_2() L11_2 = L11_2 - L0_2 L9_2(L10_2, L11_2) end L9_2 = true L0_1 = L9_2 L9_2 = Config L9_2 = L9_2.DebugMode if L9_2 then L9_2 = print L10_2 = "init done" L9_2(L10_2) end end function L38_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L1_2 = pairs L2_2 = jobPlayers L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = L6_2[L10_2] if L11_2 == A0_2 then L11_2 = table L11_2 = L11_2.remove L12_2 = jobPlayers L12_2 = L12_2[L5_2] L13_2 = L10_2 L11_2(L12_2, L13_2) return end end end end function L39_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 if A0_2 then L1_2 = IsOnDuty L2_2 = A0_2 L1_2 = L1_2(L2_2) if L1_2 then goto lbl_9 end end do return end ::lbl_9:: L1_2 = GetJobName L2_2 = A0_2 L1_2 = L1_2(L2_2) L2_2 = pairs L3_2 = Config L3_2 = L3_2.MDTs L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = Config L8_2 = L8_2.DebugMode if L8_2 then L8_2 = print L9_2 = "get jobs3" L10_2 = L6_2 L8_2(L9_2, L10_2) end L8_2 = type L9_2 = L7_2 if L9_2 then L9_2 = L9_2.jobs end L8_2 = L8_2(L9_2) if "table" == L8_2 then L8_2 = L7_2.jobs L8_2 = L8_2[L1_2] if L8_2 then return L6_2 end end end L2_2 = false return L2_2 end function L40_1(A0_2) local L1_2, L2_2 L1_2 = CreateThread function L2_2() local L0_3, L1_3, L2_3, L3_3, L4_3 L0_3 = L38_1 L1_3 = A0_2 L0_3(L1_3) L0_3 = GetPlayerFromId L1_3 = A0_2 L0_3 = L0_3(L1_3) repeat L1_3 = Wait L2_3 = 100 L1_3(L2_3) until L0_3 L1_3 = L39_1 L2_3 = L0_3 L1_3 = L1_3(L2_3) if not L1_3 then return end L2_3 = jobPlayers L2_3 = L2_3[L1_3] if not L2_3 then L2_3 = jobPlayers L3_3 = {} L2_3[L1_3] = L3_3 end if L1_3 then L2_3 = L24_1 L3_3 = jobPlayers L3_3 = L3_3[L1_3] L4_3 = A0_2 L2_3 = L2_3(L3_3, L4_3) if not L2_3 then L2_3 = table L2_3 = L2_3.insert L3_3 = jobPlayers L3_3 = L3_3[L1_3] L4_3 = A0_2 L2_3(L3_3, L4_3) end end end L1_2(L2_2) end function L41_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L2_2 = employees L2_2 = L2_2[A0_2] if not L2_2 then L2_2 = {} end L3_2 = pairs L4_2 = L2_2 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.identifier if L9_2 == A1_2 then L9_2 = L8_2.callsign if not L9_2 then L9_2 = "N/A" end return L9_2 end end L3_2 = "N/A" return L3_2 end function L42_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2 L2_2 = GetProfileData L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = L2_2.phoneNumber L3_2.phoneNumber = L4_2 L4_2 = L2_2.gender L3_2.gender = L4_2 L4_2 = L2_2.notes L3_2.notes = L4_2 L4_2 = L2_2.points L3_2.points = L4_2 L4_2 = L2_2.fingerprint L3_2.fingerprint = L4_2 L4_2 = L2_2.bloodType L3_2.bloodType = L4_2 L4_2 = {} L5_2 = json L5_2 = L5_2.decode L6_2 = L2_2.tags L5_2 = L5_2(L6_2) if not L5_2 then L5_2 = {} end L4_2.tags = L5_2 L5_2 = L2_2.warrants if not L5_2 then L5_2 = {} end L4_2.warrants = L5_2 L5_2 = L2_2.vehicles if not L5_2 then L5_2 = {} end L4_2.vehicles = L5_2 L5_2 = L2_2.jobs if not L5_2 then L5_2 = {} end L4_2.jobs = L5_2 L5_2 = L2_2.properties if not L5_2 then L5_2 = {} end L4_2.properties = L5_2 L5_2 = L2_2.charges if not L5_2 then L5_2 = {} end L4_2.charges = L5_2 L5_2 = type L6_2 = L2_2.licenses L5_2 = L5_2(L6_2) if "string" == L5_2 then L5_2 = json L5_2 = L5_2.decode L6_2 = L2_2.licenses L5_2 = L5_2(L6_2) if L5_2 then goto lbl_76 end end L5_2 = L2_2.licenses if not L5_2 then L5_2 = {} end ::lbl_76:: L4_2.licenses = L5_2 L5_2 = L2_2.weapons if not L5_2 then L5_2 = {} end L4_2.weapons = L5_2 L5_2 = json L5_2 = L5_2.decode L6_2 = L2_2.photos L5_2 = L5_2(L6_2) if not L5_2 then L5_2 = {} end L4_2.photos = L5_2 L5_2 = L2_2.linkedReports if not L5_2 then L5_2 = {} end L4_2.linkedReports = L5_2 L5_2 = L2_2.linkedIncidents if not L5_2 then L5_2 = {} end L4_2.linkedIncidents = L5_2 L5_2 = json L5_2 = L5_2.decode L6_2 = L2_2.linkedProfiles L5_2 = L5_2(L6_2) if not L5_2 then L5_2 = {} end L4_2.linkedProfiles = L5_2 L3_2.sideBarData = L4_2 return L3_2 end function L43_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT creator, content, tags, employees, suspects, civilians, vehicles, evidence, weapons, linkedIncidents, linkedReports, linkedPoliceReports, photos FROM tk_mdt_reports WHERE id = ? ]] L4_2 = {} L5_2 = A0_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = L2_2 if L3_2 then L3_2 = L3_2[1] end if not L3_2 then L3_2 = {} end L4_2 = {} L5_2 = L3_2.creator L4_2.creator = L5_2 L5_2 = L3_2.content L4_2.content = L5_2 L5_2 = {} L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.tags L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.tags = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.employees L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.employees = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.suspects L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.suspects = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.civilians L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.civilians = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.vehicles L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.vehicles = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.evidence L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.evidence = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.weapons L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.weapons = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.linkedReports L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.linkedReports = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.linkedIncidents L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.linkedIncidents = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.linkedPoliceReports L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.linkedPoliceReports = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.photos L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.photos = L6_2 L4_2.sideBarData = L5_2 return L4_2 end function L44_1(A0_2, A1_2) local L2_2 L2_2 = true return L2_2 end function L45_1(A0_2, A1_2) local L2_2, L3_2 L2_2 = L38_1 L3_2 = A0_2 L2_2(L3_2) end PlayerDropped = L45_1 L45_1 = {} L46_1 = RegisterCallback L47_1 = "tk_mdt:getFivemanageToken" function L48_1(A0_2, A1_2) local L2_2, L3_2 L2_2 = L45_1 L2_2 = L2_2[A0_2] if L2_2 then return end L2_2 = L45_1 L2_2[A0_2] = true L2_2 = A1_2 L3_2 = ConfigSV L3_2 = L3_2.FivemanageToken L2_2(L3_2) end L46_1(L47_1, L48_1) L46_1 = RegisterCallback L47_1 = "tk_mdt:getActiveUnits" function L48_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 repeat L3_2 = Wait L4_2 = 100 L3_2(L4_2) L3_2 = L0_1 until L3_2 L3_2 = L23_1 L4_2 = A2_2 L5_2 = A0_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = A0_2 L6_2 = L6_2(L7_2) L7_2 = A0_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = A0_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Get data" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = {} L4_2 = jobPlayers L4_2 = L4_2[A2_2] if not L4_2 then L4_2 = {} end L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = GetPlayerFromId L10_2 = L4_2[L8_2] L9_2 = L9_2(L10_2) L10_2 = GetIdentifier L11_2 = L9_2 L10_2 = L10_2(L11_2) L11_2 = GetEntityCoords L12_2 = GetPlayerPed L13_2 = L4_2[L8_2] L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = #L3_2 L12_2 = L12_2 + 1 L13_2 = {} L14_2 = GetCharName L15_2 = L10_2 L14_2 = L14_2(L15_2) L13_2.name = L14_2 L14_2 = L41_1 L15_2 = A2_2 L16_2 = L10_2 L14_2 = L14_2(L15_2, L16_2) L13_2.callsign = L14_2 L13_2.identifier = L10_2 L14_2 = {} L15_2 = L11_2.x L16_2 = L11_2.y L14_2[1] = L15_2 L14_2[2] = L16_2 L13_2.coords = L14_2 L3_2[L12_2] = L13_2 end L5_2 = A1_2 L6_2 = L3_2 L5_2(L6_2) end L46_1(L47_1, L48_1) L46_1 = RegisterCallback L47_1 = "tk_mdt:addTag" function L48_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L10_2 = "Add tag" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) end L4_2 = AddTag L5_2 = A2_2 L6_2 = A3_2 L4_2 = L4_2(L5_2, L6_2) if L4_2 then L5_2 = L3_1 L5_2 = L5_2[A3_2] L6_2 = #L5_2 L6_2 = L6_2 + 1 L5_2[L6_2] = A2_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = A0_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = A0_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L6_2.name = L7_2 A2_2.logData = L6_2 L6_2 = jobPlayers L6_2 = L6_2[A3_2] if not L6_2 then L6_2 = {} end L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = TriggerClientEvent L12_2 = "tk_mdt:addTag" L13_2 = L6_2[L10_2] L14_2 = A2_2 L11_2(L12_2, L13_2, L14_2) end L7_2 = Webhook L8_2 = _U L9_2 = "webhook_create" L10_2 = GetPlayerName L11_2 = A0_2 L10_2 = L10_2(L11_2) L11_2 = A0_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = A0_2 L13_2, L14_2, L15_2, L16_2, L17_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2) L13_2 = A3_2 L14_2 = "Tag" L15_2 = json L15_2 = L15_2.encode L16_2 = A2_2 L17_2 = {} L17_2.indent = true L15_2, L16_2, L17_2 = L15_2(L16_2, L17_2) L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) end L5_2 = A1_2 L6_2 = L4_2 L5_2(L6_2) end L46_1(L47_1, L48_1) function L46_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L2_2 = {} L3_2 = pairs L4_2 = A0_2 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L2_2[L7_2] = L8_2 end L3_2 = pairs L4_2 = A1_2 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = type L10_2 = L8_2 L9_2 = L9_2(L10_2) if "table" == L9_2 then L9_2 = type L10_2 = L2_2[L7_2] L9_2 = L9_2(L10_2) if "table" == L9_2 then L9_2 = L46_1 L10_2 = L2_2[L7_2] L11_2 = L8_2 L9_2 = L9_2(L10_2, L11_2) L2_2[L7_2] = L9_2 end else L2_2[L7_2] = L8_2 end end return L2_2 end function L47_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L3_2 = type L4_2 = A0_2 L3_2 = L3_2(L4_2) if "table" ~= L3_2 or not A0_2 then L3_2 = {} A0_2 = L3_2 end L3_2 = type L4_2 = A1_2 L3_2 = L3_2(L4_2) if "table" ~= L3_2 or not A1_2 then L3_2 = {} A1_2 = L3_2 end L3_2 = {} L4_2 = pairs L5_2 = A1_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2[A2_2] if L10_2 then L10_2 = L9_2[A2_2] L3_2[L10_2] = L9_2 end end L4_2 = {} L5_2 = pairs L6_2 = A0_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2[A2_2] if L11_2 then L11_2 = L10_2[A2_2] L11_2 = L3_2[L11_2] if L11_2 then L12_2 = #L4_2 L12_2 = L12_2 + 1 L13_2 = L46_1 L14_2 = L10_2 L15_2 = L11_2 L13_2 = L13_2(L14_2, L15_2) L4_2[L12_2] = L13_2 else L12_2 = #L4_2 L12_2 = L12_2 + 1 L4_2[L12_2] = L10_2 end end end L5_2 = pairs L6_2 = A1_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2[A2_2] if L11_2 then L11_2 = L10_2[A2_2] L11_2 = L3_2[L11_2] if not L11_2 then L11_2 = #L4_2 L11_2 = L11_2 + 1 L4_2[L11_2] = L10_2 end end end return L4_2 end L48_1 = RegisterCallback L49_1 = "tk_mdt:getProfile" function L50_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L4_2 = L28_1 L5_2 = A3_2 L6_2 = "profiles" L4_2 = L4_2(L5_2, L6_2) L5_2 = Config L5_2 = L5_2.MDTs L5_2 = L5_2[A3_2] L5_2 = L5_2.pages L5_2 = L5_2[L4_2] L5_2 = L5_2.dataPage A3_2 = L5_2 or A3_2 if not L5_2 then end L5_2 = L42_1 L6_2 = A2_2 L7_2 = A3_2 L5_2 = L5_2(L6_2, L7_2) L6_2 = GetAdditionalSidebarData L7_2 = A2_2 L8_2 = "profile" L6_2 = L6_2(L7_2, L8_2) L7_2 = type L8_2 = L6_2 L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L5_2.sideBarData L13_2[L11_2] = L12_2 end end L7_2 = A1_2 L8_2 = L5_2 L7_2(L8_2) end L48_1(L49_1, L50_1) L48_1 = RegisterCallback L49_1 = "tk_mdt:getLaw" function L50_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2 L3_2 = GetLaw L4_2 = A2_2 L3_2 = L3_2(L4_2) L4_2 = {} L5_2 = L3_2.description L4_2.description = L5_2 L5_2 = A1_2 L6_2 = L4_2 L5_2(L6_2) end L48_1(L49_1, L50_1) L48_1 = RegisterCallback L49_1 = "tk_mdt:getVehicle" function L50_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L4_2 = Config L4_2 = L4_2.DebugMode if L4_2 then L4_2 = print L5_2 = "get vehicle" L6_2 = A2_2 L7_2 = A3_2 L4_2(L5_2, L6_2, L7_2) end L4_2 = GetVehicle L5_2 = A2_2 L6_2 = A3_2 L4_2 = L4_2(L5_2, L6_2) L5_2 = Config L5_2 = L5_2.DebugMode if L5_2 then L5_2 = print L6_2 = "vehicle" L7_2 = json L7_2 = L7_2.encode L8_2 = L4_2 L9_2 = {} L9_2.indent = true L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2) L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L5_2 = {} L6_2 = L4_2.color L5_2.color = L6_2 L6_2 = L4_2.garage L5_2.garage = L6_2 L6_2 = L4_2.notes L5_2.notes = L6_2 L6_2 = {} L7_2 = L4_2.bolos L6_2.bolos = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.tags L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.tags = L7_2 L7_2 = L4_2.linkedReports if not L7_2 then L7_2 = {} end L6_2.linkedReports = L7_2 L7_2 = L4_2.linkedIncidents if not L7_2 then L7_2 = {} end L6_2.linkedIncidents = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.photos L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.photos = L7_2 L5_2.sideBarData = L6_2 L6_2 = Config L6_2 = L6_2.DebugMode if L6_2 then L6_2 = print L7_2 = "data" L8_2 = json L8_2 = L8_2.encode L9_2 = L5_2 L10_2 = {} L10_2.indent = true L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2, L10_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L6_2 = GetAdditionalSidebarData L7_2 = A2_2 L8_2 = "vehicle" L6_2 = L6_2(L7_2, L8_2) L7_2 = Config L7_2 = L7_2.DebugMode if L7_2 then L7_2 = print L8_2 = "additional data" L9_2 = json L9_2 = L9_2.encode L10_2 = L6_2 L11_2 = {} L11_2.indent = true L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2, L11_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L7_2 = type L8_2 = L6_2 L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = Config L13_2 = L13_2.DebugMode if L13_2 then L13_2 = print L14_2 = "additional data" L15_2 = L11_2 L16_2 = L12_2 L13_2(L14_2, L15_2, L16_2) end L13_2 = L5_2.sideBarData L13_2[L11_2] = L12_2 end end L7_2 = Config L7_2 = L7_2.DebugMode if L7_2 then L7_2 = print L8_2 = "data" L9_2 = json L9_2 = L9_2.encode L10_2 = L5_2 L11_2 = {} L11_2.indent = true L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2, L11_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L7_2 = A1_2 L8_2 = L5_2 L7_2(L8_2) end L48_1(L49_1, L50_1) L48_1 = RegisterCallback L49_1 = "tk_mdt:getProperty" function L50_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L3_2 = GetProperty L4_2 = A2_2 L3_2 = L3_2(L4_2) L4_2 = {} L5_2 = L3_2.notes L4_2.notes = L5_2 L5_2 = L3_2.name L4_2.name = L5_2 L5_2 = L3_2.coords L4_2.coords = L5_2 L5_2 = {} L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.tags L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.tags = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.linkedProfiles L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.linkedProfiles = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.photos L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.photos = L6_2 L4_2.sideBarData = L5_2 L5_2 = GetAdditionalSidebarData L6_2 = A2_2 L7_2 = "property" L5_2 = L5_2(L6_2, L7_2) L6_2 = type L7_2 = L5_2 L6_2 = L6_2(L7_2) if "table" == L6_2 then L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = L4_2.sideBarData L12_2[L10_2] = L11_2 end end L6_2 = A1_2 L7_2 = L4_2 L6_2(L7_2) end L48_1(L49_1, L50_1) L48_1 = RegisterCallback L49_1 = "tk_mdt:getBusiness" function L50_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L3_2 = GetBusiness L4_2 = A2_2 L3_2 = L3_2(L4_2) L4_2 = {} L5_2 = L3_2.notes L4_2.notes = L5_2 L5_2 = {} L6_2 = L3_2.employees L5_2.employees = L6_2 L6_2 = json L6_2 = L6_2.decode L7_2 = L3_2.photos L6_2 = L6_2(L7_2) if not L6_2 then L6_2 = {} end L5_2.photos = L6_2 L4_2.sideBarData = L5_2 L5_2 = GetAdditionalSidebarData L6_2 = id L7_2 = "business" L5_2 = L5_2(L6_2, L7_2) L6_2 = type L7_2 = L5_2 L6_2 = L6_2(L7_2) if "table" == L6_2 then L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = L4_2.sideBarData L12_2[L10_2] = L11_2 end end L6_2 = A1_2 L7_2 = L4_2 L6_2(L7_2) end L48_1(L49_1, L50_1) L48_1 = RegisterCallback L49_1 = "tk_mdt:createIncident" function L50_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L3_2 = CreateIncident L4_2 = A0_2 L5_2 = nil L6_2 = A2_2 L3_2 = L3_2(L4_2, L5_2, L6_2) if L3_2 then L4_2 = L7_1 L4_2 = L4_2[A2_2] L5_2 = #L4_2 L5_2 = L5_2 + 1 L4_2[L5_2] = L3_2 L5_2 = {} L6_2 = GetIdentifier L7_2 = A0_2 L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = GetCharName L7_2 = GetIdentifier L8_2 = A0_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L7_2(L8_2) L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) L5_2.name = L6_2 L3_2.logData = L5_2 L5_2 = L32_1 L6_2 = {} L7_2 = GetIdentifier L8_2 = A0_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = A0_2 L8_2, L9_2, L10_2, L11_2, L12_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2) L6_2.name = L7_2 L6_2.action = "create" L7_2 = L3_2.id L6_2.value = L7_2 L6_2.page = "incidents" L6_2.job = A2_2 L5_2(L6_2) L5_2 = 1 L6_2 = jobPlayers L6_2 = L6_2[A2_2] L6_2 = #L6_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:addIncident" L11_2 = jobPlayers L11_2 = L11_2[A2_2] L11_2 = L11_2[L8_2] L12_2 = L3_2 L9_2(L10_2, L11_2, L12_2) end end L4_2 = A1_2 L5_2 = L3_2 L4_2(L5_2) end L48_1(L49_1, L50_1) L48_1 = RegisterCallback L49_1 = "tk_mdt:getIncident" function L50_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2) L10_2 = "Get data" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L4_2 = GetIncident L5_2 = A2_2 L4_2 = L4_2(L5_2) L5_2 = {} L6_2 = L4_2.creator L5_2.creator = L6_2 L6_2 = L4_2.content L5_2.content = L6_2 L6_2 = {} L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.tags L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.tags = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.employees L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.employees = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.criminals L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.criminals = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.civilians L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.civilians = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.vehicles L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.vehicles = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.evidence L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.evidence = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.weapons L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.weapons = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.linkedReports L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.linkedReports = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.linkedIncidents L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.linkedIncidents = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.linkedPoliceReports L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.linkedPoliceReports = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.photos L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.photos = L7_2 L5_2.sideBarData = L6_2 L6_2 = GetAdditionalSidebarData L7_2 = A2_2 L8_2 = "incident" L6_2 = L6_2(L7_2, L8_2) L7_2 = type L8_2 = L6_2 L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L5_2.sideBarData L13_2[L11_2] = L12_2 end end L7_2 = A1_2 L8_2 = L5_2 L7_2(L8_2) end L48_1(L49_1, L50_1) function L48_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2 L4_2 = Config L4_2 = L4_2.MDTs if L4_2 then L4_2 = L4_2[A0_2] end if L4_2 then L4_2 = L4_2.reportTypes end if L4_2 then L4_2 = L4_2[A1_2] end if not L4_2 then L4_2 = {} end if L4_2 then L5_2 = L4_2[A2_2] if L5_2 then L5_2 = L4_2[A2_2] if A3_2 >= L5_2 then L5_2 = true return L5_2 end end end L5_2 = false return L5_2 end L49_1 = RegisterCallback L50_1 = "tk_mdt:createReport" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 L4_2 = L23_1 L5_2 = A2_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) L10_2 = "Create report" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) end L4_2 = CreateReport L5_2 = A0_2 L6_2 = A2_2 L7_2 = A3_2 L4_2 = L4_2(L5_2, L6_2, L7_2) if L4_2 then L5_2 = L8_1 L5_2 = L5_2[A2_2] L6_2 = #L5_2 L6_2 = L6_2 + 1 L5_2[L6_2] = L4_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = A0_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = A0_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) L6_2.name = L7_2 L4_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = A0_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = A0_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) L7_2.name = L8_2 L7_2.action = "create" L8_2 = L4_2.id L7_2.value = L8_2 L7_2.page = "reports" L7_2.job = A2_2 L6_2(L7_2) L6_2 = jobPlayers L6_2 = L6_2[A2_2] if not L6_2 then L6_2 = {} end L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = TriggerClientEvent L12_2 = "tk_mdt:addReport" L13_2 = L6_2[L10_2] L14_2 = L4_2 L11_2(L12_2, L13_2, L14_2) end L7_2 = pairs L8_2 = jobPlayers L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do if L11_2 ~= A2_2 then L13_2 = 1 L14_2 = #L12_2 L15_2 = 1 for L16_2 = L13_2, L14_2, L15_2 do L17_2 = GetPlayerFromId L18_2 = L12_2[L16_2] L17_2 = L17_2(L18_2) L18_2 = GetJobName L19_2 = L17_2 L18_2 = L18_2(L19_2) L19_2 = GetGradeId L20_2 = L17_2 L19_2 = L19_2(L20_2) L20_2 = L48_1 L21_2 = A2_2 L22_2 = L4_2.reportType L23_2 = L18_2 L24_2 = L19_2 L20_2 = L20_2(L21_2, L22_2, L23_2, L24_2) if L20_2 then L20_2 = TriggerClientEvent L21_2 = "tk_mdt:addReport" L22_2 = L12_2[L16_2] L23_2 = L4_2 L20_2(L21_2, L22_2, L23_2) end end end end L7_2 = Webhook L8_2 = _U L9_2 = "webhook_create" L10_2 = GetPlayerName L11_2 = A0_2 L10_2 = L10_2(L11_2) L11_2 = A0_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = A0_2 L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) L13_2 = A2_2 L14_2 = "Report" L15_2 = json L15_2 = L15_2.encode L16_2 = L4_2 L17_2 = {} L17_2.indent = true L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L15_2(L16_2, L17_2) L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) end L5_2 = A1_2 L6_2 = L4_2 L5_2(L6_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:getReport" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2 = L4_2(L5_2) L5_2 = GetJobName L6_2 = L4_2 L5_2 = L5_2(L6_2) L6_2 = GetGradeId L7_2 = L4_2 L6_2 = L6_2(L7_2) L7_2 = L23_1 L8_2 = A3_2 L9_2 = A0_2 L7_2 = L7_2(L8_2, L9_2) if not L7_2 then L7_2 = L48_1 L8_2 = A3_2 L9_2 = A2_2 L10_2 = L5_2 L11_2 = L6_2 L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2) if not L7_2 then L7_2 = Webhook L8_2 = _U L9_2 = "webhook_cheater" L10_2 = GetPlayerName L11_2 = A0_2 L10_2 = L10_2(L11_2) L11_2 = A0_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = A0_2 L13_2, L14_2, L15_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2) L13_2 = "Get data" L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) return L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end end L7_2 = L43_1 L8_2 = A2_2 L9_2 = A3_2 L7_2 = L7_2(L8_2, L9_2) L8_2 = GetAdditionalSidebarData L9_2 = A2_2 L10_2 = "report" L8_2 = L8_2(L9_2, L10_2) L9_2 = type L10_2 = L8_2 L9_2 = L9_2(L10_2) if "table" == L9_2 then L9_2 = pairs L10_2 = L8_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) for L13_2, L14_2 in L9_2, L10_2, L11_2, L12_2 do L15_2 = L7_2.sideBarData L15_2[L13_2] = L14_2 end end L9_2 = A1_2 L10_2 = L7_2 L9_2(L10_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:getTrainingReport" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2) L10_2 = "Get data" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) end L4_2 = GetTrainingReport L5_2 = A2_2 L6_2 = A3_2 L4_2 = L4_2(L5_2, L6_2) L5_2 = GetAdditionalSidebarData L6_2 = A2_2 L7_2 = "trainingReport" L5_2 = L5_2(L6_2, L7_2) L6_2 = type L7_2 = L5_2 L6_2 = L6_2(L7_2) if "table" == L6_2 then L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = L4_2.sideBarData L12_2[L10_2] = L11_2 end end L6_2 = A1_2 L7_2 = L4_2 L6_2(L7_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:createTrainingReport" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L10_2 = "Create training report" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) end L4_2 = CreateTrainingReport L5_2 = A0_2 L6_2 = A2_2 L7_2 = A3_2 L4_2 = L4_2(L5_2, L6_2, L7_2) if L4_2 then L5_2 = L9_1 L5_2 = L5_2[A3_2] L6_2 = #L5_2 L6_2 = L6_2 + 1 L5_2[L6_2] = L4_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = A0_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = A0_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L6_2.name = L7_2 L4_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = A0_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = A0_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L7_2.name = L8_2 L7_2.action = "create" L8_2 = L4_2.id L7_2.value = L8_2 L7_2.page = "trainingReports" L7_2.job = A3_2 L6_2(L7_2) L6_2 = jobPlayers L6_2 = L6_2[A3_2] if not L6_2 then L6_2 = {} end L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = TriggerClientEvent L12_2 = "tk_mdt:addTrainingReport" L13_2 = L6_2[L10_2] L14_2 = L4_2 L11_2(L12_2, L13_2, L14_2) end L7_2 = Webhook L8_2 = _U L9_2 = "webhook_create" L10_2 = GetPlayerName L11_2 = A0_2 L10_2 = L10_2(L11_2) L11_2 = A0_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = A0_2 L13_2, L14_2, L15_2, L16_2, L17_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2) L13_2 = A3_2 L14_2 = "Training report" L15_2 = json L15_2 = L15_2.encode L16_2 = L4_2 L17_2 = {} L17_2.indent = true L15_2, L16_2, L17_2 = L15_2(L16_2, L17_2) L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) end L5_2 = A1_2 L6_2 = L4_2 L5_2(L6_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:getPoliceReport" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2) L10_2 = "Get data" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L4_2 = GetPoliceReport L5_2 = A2_2 L4_2 = L4_2(L5_2) L5_2 = {} L6_2 = L4_2.phoneNumber L5_2.phoneNumber = L6_2 L6_2 = L4_2.content L5_2.content = L6_2 L6_2 = {} L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.tags L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.tags = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.linkedIncidents L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.linkedIncidents = L7_2 L7_2 = json L7_2 = L7_2.decode L8_2 = L4_2.linkedReports L7_2 = L7_2(L8_2) if not L7_2 then L7_2 = {} end L6_2.linkedReports = L7_2 L5_2.sideBarData = L6_2 L6_2 = GetAdditionalSidebarData L7_2 = A2_2 L8_2 = "policeReport" L6_2 = L6_2(L7_2, L8_2) L7_2 = type L8_2 = L6_2 L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L5_2.sideBarData L13_2[L11_2] = L12_2 end end L7_2 = A1_2 L8_2 = L5_2 L7_2(L8_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:createEvidence" function L51_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L3_2 = L23_1 L4_2 = A2_2 L5_2 = A0_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = A0_2 L6_2 = L6_2(L7_2) L7_2 = A0_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = A0_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L9_2 = "Create evidence" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = CreateEvidence L4_2 = A0_2 L5_2 = A2_2 L3_2 = L3_2(L4_2, L5_2) if L3_2 then L4_2 = L11_1 L5_2 = L11_1 L5_2 = L5_2[A2_2] if not L5_2 then L5_2 = {} end L4_2[A2_2] = L5_2 L4_2 = L11_1 L4_2 = L4_2[A2_2] L5_2 = L11_1 L5_2 = L5_2[A2_2] L5_2 = #L5_2 L5_2 = L5_2 + 1 L4_2[L5_2] = L3_2 L4_2 = {} L5_2 = GetIdentifier L6_2 = A0_2 L5_2 = L5_2(L6_2) L4_2.identifier = L5_2 L5_2 = GetCharName L6_2 = GetIdentifier L7_2 = A0_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2) L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2.name = L5_2 L3_2.logData = L4_2 L4_2 = L32_1 L5_2 = {} L6_2 = GetIdentifier L7_2 = A0_2 L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = GetCharName L7_2 = GetIdentifier L8_2 = A0_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L7_2(L8_2) L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L5_2.name = L6_2 L5_2.action = "create" L6_2 = L3_2.id L5_2.value = L6_2 L5_2.page = "evidence" L5_2.job = A2_2 L4_2(L5_2) L4_2 = 1 L5_2 = jobPlayers L5_2 = L5_2[A2_2] L5_2 = #L5_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TriggerClientEvent L9_2 = "tk_mdt:addEvidence" L10_2 = jobPlayers L10_2 = L10_2[A2_2] L10_2 = L10_2[L7_2] L11_2 = L3_2 L8_2(L9_2, L10_2, L11_2) end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_create" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2) L10_2 = A2_2 L11_2 = "Evidence" L12_2 = json L12_2 = L12_2.encode L13_2 = L3_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2 = L12_2(L13_2, L14_2) L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L4_2 = A1_2 L5_2 = L3_2 L4_2(L5_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:getEvidenceItem" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2) L10_2 = "Get data" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L4_2 = GetEvidenceItem L5_2 = A2_2 L4_2 = L4_2(L5_2) L5_2 = {} L6_2 = L4_2.notes L5_2.notes = L6_2 L6_2 = {} L7_2 = L4_2.linkedReports if not L7_2 then L7_2 = {} end L6_2.linkedReports = L7_2 L7_2 = L4_2.linkedIncidents if not L7_2 then L7_2 = {} end L6_2.linkedIncidents = L7_2 L5_2.sideBarData = L6_2 L6_2 = GetAdditionalSidebarData L7_2 = A2_2 L8_2 = "evidence" L6_2 = L6_2(L7_2, L8_2) L7_2 = type L8_2 = L6_2 L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L5_2.sideBarData L13_2[L11_2] = L12_2 end end L7_2 = A1_2 L8_2 = L5_2 L7_2(L8_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:createWeapon" function L51_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L3_2 = L23_1 L4_2 = A2_2 L5_2 = A0_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = A0_2 L6_2 = L6_2(L7_2) L7_2 = A0_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = A0_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L9_2 = "Create weapon" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = CreateWeapon L4_2 = A0_2 L5_2 = A2_2 L3_2 = L3_2(L4_2, L5_2) if L3_2 then L4_2 = L12_1 L5_2 = L12_1 L5_2 = L5_2[A2_2] if not L5_2 then L5_2 = {} end L4_2[A2_2] = L5_2 L4_2 = L12_1 L4_2 = L4_2[A2_2] L5_2 = L12_1 L5_2 = L5_2[A2_2] L5_2 = #L5_2 L5_2 = L5_2 + 1 L4_2[L5_2] = L3_2 L4_2 = {} L5_2 = GetIdentifier L6_2 = A0_2 L5_2 = L5_2(L6_2) L4_2.identifier = L5_2 L5_2 = GetCharName L6_2 = GetIdentifier L7_2 = A0_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2) L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2.name = L5_2 L3_2.logData = L4_2 L4_2 = L32_1 L5_2 = {} L6_2 = GetIdentifier L7_2 = A0_2 L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = GetCharName L7_2 = GetIdentifier L8_2 = A0_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L7_2(L8_2) L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L5_2.name = L6_2 L5_2.action = "create" L6_2 = L3_2.id L5_2.value = L6_2 L5_2.page = "weapons" L5_2.job = A2_2 L4_2(L5_2) L4_2 = 1 L5_2 = jobPlayers L5_2 = L5_2[A2_2] L5_2 = #L5_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TriggerClientEvent L9_2 = "tk_mdt:addWeapon" L10_2 = jobPlayers L10_2 = L10_2[A2_2] L10_2 = L10_2[L7_2] L11_2 = L3_2 L8_2(L9_2, L10_2, L11_2) end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_create" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2) L10_2 = A2_2 L11_2 = "Weapon" L12_2 = json L12_2 = L12_2.encode L13_2 = L3_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2 = L12_2(L13_2, L14_2) L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L4_2 = A1_2 L5_2 = L3_2 L4_2(L5_2) end L49_1(L50_1, L51_1) L49_1 = RegisterCallback L50_1 = "tk_mdt:getWeapon" function L51_1(A0_2, A1_2, A2_2, A3_2) local L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L4_2 = L23_1 L5_2 = A3_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2) L10_2 = "Get data" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L4_2 = GetWeapon L5_2 = A2_2 L4_2 = L4_2(L5_2) L5_2 = {} L6_2 = L4_2.serial L5_2.serial = L6_2 L6_2 = L4_2.notes L5_2.notes = L6_2 L6_2 = {} L7_2 = L4_2.linkedIncidents if not L7_2 then L7_2 = {} end L6_2.linkedIncidents = L7_2 L7_2 = L4_2.linkedReports if not L7_2 then L7_2 = {} end L6_2.linkedReports = L7_2 L5_2.sideBarData = L6_2 L6_2 = GetAdditionalSidebarData L7_2 = A2_2 L8_2 = "weapon" L6_2 = L6_2(L7_2, L8_2) L7_2 = type L8_2 = L6_2 L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L5_2.sideBarData L13_2[L11_2] = L12_2 end end L7_2 = Config L7_2 = L7_2.DebugMode if L7_2 then L7_2 = print L8_2 = "getWeapon" L9_2 = json L9_2 = L9_2.encode L10_2 = L5_2 L11_2 = {} L11_2.indent = true L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2, L11_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L7_2 = A1_2 L8_2 = L5_2 L7_2(L8_2) end L49_1(L50_1, L51_1) function L49_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = pairs L3_2 = A0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.identifier if L8_2 == A1_2 then return L6_2 end end L2_2 = false return L2_2 end function L50_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = {} L2_2 = Config L2_2 = L2_2.MDTs L2_2 = L2_2[A0_2] if L2_2 then L2_2 = L2_2.jobs end L3_2 = Config L3_2 = L3_2.DebugMode if L3_2 then L3_2 = print L4_2 = "get jobs4" L5_2 = A0_2 L3_2(L4_2, L5_2) end L3_2 = type L4_2 = L2_2 L3_2 = L3_2(L4_2) if "table" ~= L3_2 then return L1_2 end L3_2 = pairs L4_2 = L16_1.employees L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.job L9_2 = L2_2[L9_2] if L9_2 then L9_2 = L8_2.gradeNumber L10_2 = L8_2.job L10_2 = L2_2[L10_2] if L9_2 >= L10_2 then L9_2 = #L1_2 L9_2 = L9_2 + 1 L1_2[L9_2] = L8_2 L9_2 = L49_1 L10_2 = employees L10_2 = L10_2[A0_2] L11_2 = L8_2.identifier L9_2 = L9_2(L10_2, L11_2) if L9_2 then L10_2 = #L1_2 L10_2 = L1_2[L10_2] L11_2 = employees L11_2 = L11_2[A0_2] L11_2 = L11_2[L9_2] L11_2 = L11_2.licenses if not L11_2 then L11_2 = {} end L10_2.licenses = L11_2 L10_2 = #L1_2 L10_2 = L1_2[L10_2] L11_2 = employees L11_2 = L11_2[A0_2] L11_2 = L11_2[L9_2] L11_2 = L11_2.image if not L11_2 then L11_2 = nil end L10_2.image = L11_2 L10_2 = #L1_2 L10_2 = L1_2[L10_2] L11_2 = employees L11_2 = L11_2[A0_2] L11_2 = L11_2[L9_2] L11_2 = L11_2.callsign if not L11_2 then L11_2 = nil end L10_2.callsign = L11_2 L10_2 = #L1_2 L10_2 = L1_2[L10_2] L11_2 = employees L11_2 = L11_2[A0_2] L11_2 = L11_2[L9_2] L11_2 = L11_2.status if not L11_2 then L11_2 = nil end L10_2.status = L11_2 L10_2 = #L1_2 L10_2 = L1_2[L10_2] L11_2 = employees L11_2 = L11_2[A0_2] L11_2 = L11_2[L9_2] L11_2 = L11_2.notes if not L11_2 then L11_2 = nil end L10_2.notes = L11_2 end end end end return L1_2 end L51_1 = RegisterLatentCallback L52_1 = "tk_mdt:getUIData" function L53_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 L3_2 = Config L3_2 = L3_2.DebugMode if L3_2 then L3_2 = print L4_2 = "get ui data" L5_2 = A0_2 L6_2 = A2_2 L7_2 = L0_1 L3_2(L4_2, L5_2, L6_2, L7_2) end repeat L3_2 = Wait L4_2 = 100 L3_2(L4_2) L3_2 = L0_1 until L3_2 L3_2 = Config L3_2 = L3_2.DebugMode if L3_2 then L3_2 = print L4_2 = "get ui data2" L3_2(L4_2) end L3_2 = GetGameTimer L3_2 = L3_2() L4_2 = L23_1 L5_2 = A2_2 L6_2 = A0_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Config L4_2 = L4_2.DebugMode if L4_2 then L4_2 = print L5_2 = "no access to page" L4_2(L5_2) end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = A0_2 L7_2 = L7_2(L8_2) L8_2 = A0_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) L10_2 = "Get data" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2) end L4_2 = Config L4_2 = L4_2.DebugMode if L4_2 then L4_2 = print L5_2 = "time taken for access check" L6_2 = GetGameTimer L6_2 = L6_2() L6_2 = L6_2 - L3_2 L4_2(L5_2, L6_2) end L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2 = L4_2(L5_2) L5_2 = GetJobName L6_2 = L4_2 L5_2 = L5_2(L6_2) L6_2 = GetGradeId L7_2 = L4_2 L6_2 = L6_2(L7_2) L7_2 = {} L8_2 = Config L8_2 = L8_2.DebugMode if L8_2 then L8_2 = print L9_2 = "xPlayer" L10_2 = L4_2 L11_2 = L8_1 L11_2 = #L11_2 L8_2(L9_2, L10_2, L11_2) end L8_2 = GetGameTimer L8_2 = L8_2() L3_2 = L8_2 L8_2 = pairs L9_2 = L8_1 L8_2, L9_2, L10_2, L11_2 = L8_2(L9_2) for L12_2, L13_2 in L8_2, L9_2, L10_2, L11_2 do L14_2 = pairs L15_2 = L13_2 L14_2, L15_2, L16_2, L17_2 = L14_2(L15_2) for L18_2, L19_2 in L14_2, L15_2, L16_2, L17_2 do if L12_2 ~= A2_2 then L20_2 = L48_1 L21_2 = L12_2 L22_2 = L19_2.reportType L23_2 = L5_2 L24_2 = L6_2 L20_2 = L20_2(L21_2, L22_2, L23_2, L24_2) if not L20_2 then goto lbl_112 end end L20_2 = #L7_2 L20_2 = L20_2 + 1 L7_2[L20_2] = L19_2 ::lbl_112:: end end L8_2 = Config L8_2 = L8_2.DebugMode if L8_2 then L8_2 = print L9_2 = "time taken for report filter" L10_2 = GetGameTimer L10_2 = L10_2() L10_2 = L10_2 - L3_2 L8_2(L9_2, L10_2) end L8_2 = Config L8_2 = L8_2.DebugMode if L8_2 then L8_2 = print L9_2 = "filtered reports" L10_2 = #L7_2 L8_2(L9_2, L10_2) end L8_2 = {} L9_2 = pairs L10_2 = Config L10_2 = L10_2.MDTs L10_2 = L10_2[A2_2] L10_2 = L10_2.pages L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) for L13_2, L14_2 in L9_2, L10_2, L11_2, L12_2 do L15_2 = L14_2.name L16_2 = L14_2.dataPage if not L16_2 then L16_2 = A2_2 end L8_2[L15_2] = L16_2 end L9_2 = Config L9_2 = L9_2.DebugMode if L9_2 then L9_2 = print L10_2 = "data pages" L11_2 = #L8_2 L9_2(L10_2, L11_2) end L9_2 = GetGameTimer L9_2 = L9_2() L3_2 = L9_2 L9_2 = L47_1 L10_2 = L16_1.profiles L11_2 = profiles L11_2 = L11_2[A2_2] L12_2 = "identifier" L9_2 = L9_2(L10_2, L11_2, L12_2) if not L9_2 then L9_2 = {} end L10_2 = Config L10_2 = L10_2.DebugMode if L10_2 then L10_2 = print L11_2 = "time taken for profiles" L12_2 = GetGameTimer L12_2 = L12_2() L12_2 = L12_2 - L3_2 L10_2(L11_2, L12_2) end L10_2 = Config L10_2 = L10_2.DebugMode if L10_2 then L10_2 = print L11_2 = "profiles data value" L12_2 = #L9_2 L10_2(L11_2, L12_2) end L10_2 = GetGameTimer L10_2 = L10_2() L3_2 = L10_2 L10_2 = L47_1 L11_2 = L16_1.vehicles L12_2 = L4_1 L12_2 = L12_2[A2_2] L13_2 = "plate" L10_2 = L10_2(L11_2, L12_2, L13_2) if not L10_2 then L10_2 = {} end L11_2 = Config L11_2 = L11_2.DebugMode if L11_2 then L11_2 = print L12_2 = "time taken for vehicles" L13_2 = GetGameTimer L13_2 = L13_2() L13_2 = L13_2 - L3_2 L11_2(L12_2, L13_2) end L11_2 = Config L11_2 = L11_2.DebugMode if L11_2 then L11_2 = print L12_2 = "vehicles data value" L13_2 = #L10_2 L11_2(L12_2, L13_2) end L11_2 = GetGameTimer L11_2 = L11_2() L3_2 = L11_2 L11_2 = L47_1 L12_2 = L16_1.businesses L13_2 = L6_1 L13_2 = L13_2[A2_2] L14_2 = "name" L11_2 = L11_2(L12_2, L13_2, L14_2) if not L11_2 then L11_2 = {} end L12_2 = Config L12_2 = L12_2.DebugMode if L12_2 then L12_2 = print L13_2 = "time taken for businesses" L14_2 = GetGameTimer L14_2 = L14_2() L14_2 = L14_2 - L3_2 L12_2(L13_2, L14_2) end L12_2 = Config L12_2 = L12_2.DebugMode if L12_2 then L12_2 = print L13_2 = "businesses data value" L14_2 = #L11_2 L12_2(L13_2, L14_2) end L12_2 = GetGameTimer L12_2 = L12_2() L3_2 = L12_2 L12_2 = L47_1 L13_2 = L16_1.properties L14_2 = L5_1 L14_2 = L14_2[A2_2] L15_2 = "id" L12_2 = L12_2(L13_2, L14_2, L15_2) if not L12_2 then L12_2 = {} end L13_2 = Config L13_2 = L13_2.DebugMode if L13_2 then L13_2 = print L14_2 = "time taken for properties" L15_2 = GetGameTimer L15_2 = L15_2() L15_2 = L15_2 - L3_2 L13_2(L14_2, L15_2) end L13_2 = Config L13_2 = L13_2.DebugMode if L13_2 then L13_2 = print L14_2 = "properties data value" L15_2 = #L12_2 L13_2(L14_2, L15_2) end L13_2 = GetGameTimer L13_2 = L13_2() L3_2 = L13_2 L13_2 = L50_1 L14_2 = A2_2 L13_2 = L13_2(L14_2) if not L13_2 then L13_2 = {} end L14_2 = Config L14_2 = L14_2.DebugMode if L14_2 then L14_2 = print L15_2 = "time taken for employees" L16_2 = GetGameTimer L16_2 = L16_2() L16_2 = L16_2 - L3_2 L14_2(L15_2, L16_2) end L14_2 = Config L14_2 = L14_2.DebugMode if L14_2 then L14_2 = print L15_2 = "employees" L16_2 = #L13_2 L14_2(L15_2, L16_2) end L14_2 = GetGameTimer L14_2 = L14_2() L3_2 = L14_2 L14_2 = GetJobLabelsByPage L15_2 = A2_2 L14_2 = L14_2(L15_2) if not L14_2 then L14_2 = {} end L15_2 = Config L15_2 = L15_2.DebugMode if L15_2 then L15_2 = print L16_2 = "time taken for job labels" L17_2 = GetGameTimer L17_2 = L17_2() L17_2 = L17_2 - L3_2 L15_2(L16_2, L17_2) end L15_2 = Config L15_2 = L15_2.DebugMode if L15_2 then L15_2 = print L16_2 = "job labels" L17_2 = #L14_2 L15_2(L16_2, L17_2) end L15_2 = GetGameTimer L15_2 = L15_2() L3_2 = L15_2 L15_2 = GetGradeLabelsByPage L16_2 = A2_2 L15_2 = L15_2(L16_2) if not L15_2 then L15_2 = {} end L16_2 = Config L16_2 = L16_2.DebugMode if L16_2 then L16_2 = print L17_2 = "time taken for grade labels" L18_2 = GetGameTimer L18_2 = L18_2() L18_2 = L18_2 - L3_2 L16_2(L17_2, L18_2) end L16_2 = Config L16_2 = L16_2.DebugMode if L16_2 then L16_2 = print L17_2 = "grade labels" L18_2 = #L15_2 L16_2(L17_2, L18_2) end L16_2 = GetGameTimer L16_2 = L16_2() L3_2 = L16_2 L16_2 = {} L16_2.profiles = L9_2 L16_2.vehicles = L10_2 L16_2.businesses = L11_2 L16_2.properties = L12_2 L16_2.employees = L13_2 L17_2 = L3_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.tags = L17_2 L17_2 = L7_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.incidents = L17_2 L17_2 = L7_2 or L17_2 if not L7_2 then L17_2 = {} end L16_2.reports = L17_2 L17_2 = L9_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.trainingReports = L17_2 L17_2 = L10_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.policeReports = L17_2 L17_2 = L11_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.evidence = L17_2 L17_2 = L12_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.weapons = L17_2 L17_2 = L14_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.announcements = L17_2 L17_2 = permissions L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.permissions = L17_2 L17_2 = charges L18_2 = L8_2.charges L17_2 = L17_2[L18_2] if not L17_2 then L17_2 = {} end L16_2.charges = L17_2 L17_2 = laws L18_2 = L8_2.legislation L17_2 = L17_2[L18_2] if not L17_2 then L17_2 = {} end L16_2.laws = L17_2 L17_2 = L2_1 L17_2 = L17_2[A2_2] if not L17_2 then L17_2 = {} end L16_2.logs = L17_2 L16_2.jobLabels = L14_2 L16_2.gradeLabels = L15_2 L17_2 = L1_1 L16_2.players = L17_2 L17_2 = grades if not L17_2 then L17_2 = {} end L16_2.grades = L17_2 L17_2 = Config L17_2 = L17_2.DebugMode if L17_2 then L17_2 = print L18_2 = "time taken for data" L19_2 = GetGameTimer L19_2 = L19_2() L19_2 = L19_2 - L3_2 L17_2(L18_2, L19_2) end L17_2 = Config L17_2 = L17_2.DebugMode if L17_2 then L17_2 = print L18_2 = "data is done" L19_2 = #L16_2 L17_2(L18_2, L19_2) end L17_2 = A1_2 L18_2 = L16_2 L17_2(L18_2) end L51_1(L52_1, L53_1) L51_1 = RegisterNetEvent L52_1 = "tk_mdt:playerLoaded" function L53_1() local L0_2, L1_2, L2_2 L0_2 = source repeat L1_2 = Wait L2_2 = 100 L1_2(L2_2) L1_2 = L0_1 until L1_2 L1_2 = Wait L2_2 = 5000 L1_2(L2_2) L1_2 = L40_1 L2_2 = L0_2 L1_2(L2_2) end L51_1(L52_1, L53_1) L51_1 = RegisterNetEvent L52_1 = "tk_mdt:jobUpdated" function L53_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L0_2 = source L1_2 = L40_1 L2_2 = L0_2 L1_2(L2_2) L1_2 = AddEmployee L2_2 = L0_2 L1_2(L2_2) L1_2 = false L2_2 = GetPlayerFromId L3_2 = L0_2 L2_2 = L2_2(L3_2) L3_2 = GetIdentifier L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = pairs L5_2 = L16_1.employees L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.identifier if L10_2 == L3_2 then L10_2 = GetJobName L11_2 = L2_2 L10_2 = L10_2(L11_2) L11_2 = GetGradeId L12_2 = L2_2 L11_2 = L11_2(L12_2) L9_2.job = L10_2 L9_2.gradeNumber = L11_2 L12_2 = GetGradeLabel L13_2 = L10_2 L14_2 = L11_2 L12_2 = L12_2(L13_2, L14_2) L9_2.grade = L12_2 L1_2 = true break end end if not L1_2 then L4_2 = GetJobName L5_2 = L2_2 L4_2 = L4_2(L5_2) L5_2 = GetGradeId L6_2 = L2_2 L5_2 = L5_2(L6_2) L6_2 = L16_1.employees L7_2 = L16_1.employees L7_2 = #L7_2 L7_2 = L7_2 + 1 L8_2 = {} L8_2.identifier = L3_2 L9_2 = GetCharName L10_2 = L3_2 L9_2 = L9_2(L10_2) L8_2.name = L9_2 L8_2.job = L4_2 L8_2.gradeNumber = L5_2 L9_2 = GetGradeLabel L10_2 = L4_2 L11_2 = L5_2 L9_2 = L9_2(L10_2, L11_2) L8_2.grade = L9_2 L9_2 = GetPhoneNumber L10_2 = L3_2 L9_2 = L9_2(L10_2) L8_2.phoneNumber = L9_2 L6_2[L7_2] = L8_2 end end L51_1(L52_1, L53_1) L51_1 = RegisterNetEvent L52_1 = "tk_mdt:saveProfile" function L53_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = GetIdentifier L5_2 = L3_2 L4_2 = L4_2(L5_2) L5_2 = L23_1 L6_2 = A1_2 L7_2 = L2_2 L5_2 = L5_2(L6_2, L7_2) if not L5_2 then L5_2 = Webhook L6_2 = _U L7_2 = "webhook_cheater" L8_2 = GetPlayerName L9_2 = L2_2 L8_2 = L8_2(L9_2) L9_2 = L2_2 L10_2 = L4_2 L11_2 = "Save profile" L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2) return L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2) end L5_2 = SaveProfile L6_2 = A0_2 L7_2 = L4_2 L8_2 = A1_2 L5_2(L6_2, L7_2, L8_2) L5_2 = profiles L5_2 = L5_2[A1_2] L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = L11_2.identifier L13_2 = A0_2.identifier if L12_2 == L13_2 then L12_2 = L5_2[L10_2] L13_2 = A0_2.image L12_2.image = L13_2 L12_2 = L5_2[L10_2] L12_2 = L12_2.sideBarData L13_2 = A0_2.sideBarData L13_2 = L13_2.tags if not L13_2 then L13_2 = {} end L12_2.tags = L13_2 L12_2 = jobPlayers L12_2 = L12_2[A1_2] L13_2 = 1 L14_2 = #L12_2 L15_2 = 1 for L16_2 = L13_2, L14_2, L15_2 do L17_2 = TriggerClientEvent L18_2 = "tk_mdt:updateProfile" L19_2 = L12_2[L16_2] L20_2 = L5_2[L10_2] L17_2(L18_2, L19_2, L20_2) end break end end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_update" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2) L12_2 = A1_2 L13_2 = "Profile" L14_2 = json L14_2 = L14_2.encode L15_2 = A0_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2) end L51_1(L52_1, L53_1) L51_1 = RegisterNetEvent L52_1 = "tk_mdt:saveVehicle" function L53_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Save vehicle" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = SaveVehicle L4_2 = A0_2 L5_2 = A1_2 L3_2(L4_2, L5_2) L3_2 = pairs L4_2 = L4_1 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.plate L10_2 = A0_2.plate if L9_2 == L10_2 then L9_2 = L4_1 L9_2 = L9_2[L7_2] L10_2 = A0_2.image L9_2.image = L10_2 L9_2 = L4_1 L9_2 = L9_2[L7_2] L9_2 = L9_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.tags if not L10_2 then L10_2 = {} end L9_2.tags = L10_2 L9_2 = 1 L10_2 = jobPlayers L10_2 = L10_2[A1_2] L10_2 = #L10_2 L11_2 = 1 for L12_2 = L9_2, L10_2, L11_2 do L13_2 = TriggerClientEvent L14_2 = "tk_mdt:updateVehicle" L15_2 = jobPlayers L15_2 = L15_2[A1_2] L15_2 = L15_2[L12_2] L16_2 = L4_1 L16_2 = L16_2[L7_2] L13_2(L14_2, L15_2, L16_2) end break end end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = A1_2 L10_2 = "Vehicle" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L51_1(L52_1, L53_1) L51_1 = RegisterNetEvent L52_1 = "tk_mdt:saveProperty" function L53_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = "Save property" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L3_2 = SaveProperty L4_2 = A0_2 L5_2 = A1_2 L3_2(L4_2, L5_2) L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = A1_2 L10_2 = "Property" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L51_1(L52_1, L53_1) L51_1 = RegisterNetEvent L52_1 = "tk_mdt:saveBusiness" function L53_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = "Save business" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L3_2 = SaveBusiness L4_2 = A0_2 L5_2 = A1_2 L3_2(L4_2, L5_2) L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = A1_2 L10_2 = "Business" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L51_1(L52_1, L53_1) function L51_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = L4_1 L3_2 = L4_1 L3_2 = L3_2[A0_2] if not L3_2 then L3_2 = {} end L2_2[A0_2] = L3_2 L2_2 = pairs L3_2 = L4_1 L3_2 = L3_2[A0_2] L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.plate if L8_2 == A1_2 then return L6_2 end end L2_2 = L4_1 L2_2 = L2_2[A0_2] L2_2 = #L2_2 L2_2 = L2_2 + 1 return L2_2 end function L52_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = profiles L3_2 = profiles L3_2 = L3_2[A0_2] if not L3_2 then L3_2 = {} end L2_2[A0_2] = L3_2 L2_2 = pairs L3_2 = profiles L3_2 = L3_2[A0_2] L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.identifier if L8_2 == A1_2 then return L6_2 end end L2_2 = profiles L2_2 = L2_2[A0_2] L2_2 = #L2_2 L2_2 = L2_2 + 1 return L2_2 end function L53_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L1_2 = pairs L2_2 = L16_1.vehicles L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = L6_2.plate if L7_2 == A0_2 then L7_2 = L6_2.owner return L7_2 end end L1_2 = nil return L1_2 end L54_1 = RegisterNetEvent L55_1 = "tk_mdt:saveIncident" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) L9_2 = "Save incident" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end L3_2 = A0_2.title if "" ~= L3_2 then L3_2 = A0_2.title if L3_2 then goto lbl_34 end end L3_2 = "Incident #%s" L4_2 = L3_2 L3_2 = L3_2.format L5_2 = A0_2.id L3_2 = L3_2(L4_2, L5_2) ::lbl_34:: A0_2.title = L3_2 L3_2 = SaveIncident L4_2 = A0_2 L3_2(L4_2) L3_2 = pairs L4_2 = L7_1 L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.id L10_2 = A0_2.id if L9_2 == L10_2 then L9_2 = A0_2.title if not L9_2 then L9_2 = "Incident #%s" L10_2 = L9_2 L9_2 = L9_2.format L11_2 = A0_2.id L9_2 = L9_2(L10_2, L11_2) end L8_2.title = L9_2 L9_2 = L8_2.sideBarData if not L9_2 then L9_2 = {} L8_2.sideBarData = L9_2 end L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.tags if not L10_2 then L10_2 = {} end L9_2.tags = L10_2 L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.employees if not L10_2 then L10_2 = {} end L9_2.employees = L10_2 L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.criminals if not L10_2 then L10_2 = {} end L9_2.criminals = L10_2 L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.civilians if not L10_2 then L10_2 = {} end L9_2.civilians = L10_2 L9_2 = 1 L10_2 = jobPlayers L10_2 = L10_2[A1_2] L10_2 = #L10_2 L11_2 = 1 for L12_2 = L9_2, L10_2, L11_2 do L13_2 = TriggerClientEvent L14_2 = "tk_mdt:updateIncident" L15_2 = jobPlayers L15_2 = L15_2[A1_2] L15_2 = L15_2[L12_2] L16_2 = L8_2 L13_2(L14_2, L15_2, L16_2) end break end end L3_2 = type L4_2 = A0_2.sideBarData L4_2 = L4_2.vehicles L3_2 = L3_2(L4_2) if "table" == L3_2 then L3_2 = pairs L4_2 = A0_2.sideBarData L4_2 = L4_2.vehicles L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L17_1 L10_2 = L17_1 L10_2 = L10_2[A1_2] if not L10_2 then L10_2 = {} end L9_2[A1_2] = L10_2 L9_2 = L51_1 L10_2 = A1_2 L11_2 = L8_2.plate L9_2 = L9_2(L10_2, L11_2) L10_2 = L8_2.hasBOLO if L10_2 then L10_2 = L17_1 L10_2 = L10_2[A1_2] L11_2 = L8_2.plate L12_2 = L17_1 L12_2 = L12_2[A1_2] L13_2 = L8_2.plate L12_2 = L12_2[L13_2] if not L12_2 then L12_2 = {} end L10_2[L11_2] = L12_2 L10_2 = L17_1 L10_2 = L10_2[A1_2] L11_2 = L8_2.plate L10_2 = L10_2[L11_2] L11_2 = A0_2.id L10_2 = L10_2[L11_2] if not L10_2 then L10_2 = L53_1 L11_2 = L8_2.plate L10_2 = L10_2(L11_2) L11_2 = BoloCreated L12_2 = L2_2 L13_2 = L8_2.plate L14_2 = L8_2.name L15_2 = L10_2 L16_2 = A0_2.id L17_2 = A0_2.title L18_2 = false L19_2 = A0_2.date L11_2(L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end L10_2 = L17_1 L10_2 = L10_2[A1_2] L11_2 = L8_2.plate L10_2 = L10_2[L11_2] L11_2 = A0_2.id L12_2 = {} L13_2 = A0_2.id L12_2.id = L13_2 L13_2 = A0_2.title L12_2.title = L13_2 L12_2.isReport = false L13_2 = A0_2.date L12_2.date = L13_2 L10_2[L11_2] = L12_2 else L10_2 = L17_1 L10_2 = L10_2[A1_2] L11_2 = L8_2.plate L10_2 = L10_2[L11_2] if L10_2 then L10_2 = L17_1 L10_2 = L10_2[A1_2] L11_2 = L8_2.plate L10_2 = L10_2[L11_2] L11_2 = A0_2.id L10_2[L11_2] = nil L10_2 = L53_1 L11_2 = L8_2.plate L10_2 = L10_2(L11_2) L11_2 = BoloRemoved L12_2 = L2_2 L13_2 = L8_2.plate L14_2 = L8_2.name L15_2 = L10_2 L16_2 = A0_2.id L17_2 = A0_2.title L18_2 = false L19_2 = A0_2.date L11_2(L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end end L10_2 = GetBOLOsByPlate L11_2 = L8_2.plate L12_2 = A1_2 L10_2 = L10_2(L11_2, L12_2) L11_2 = L4_1 L11_2 = L11_2[A1_2] L12_2 = L4_1 L12_2 = L12_2[A1_2] L12_2 = L12_2[L9_2] if not L12_2 then L12_2 = {} end L11_2[L9_2] = L12_2 L11_2 = L4_1 L11_2 = L11_2[A1_2] L11_2 = L11_2[L9_2] L12_2 = L10_2 or L12_2 if not L10_2 then L12_2 = {} end L11_2.bolos = L12_2 L11_2 = 1 L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = #L12_2 L13_2 = 1 for L14_2 = L11_2, L12_2, L13_2 do L15_2 = TriggerClientEvent L16_2 = "tk_mdt:updateVehicle" L17_2 = jobPlayers L17_2 = L17_2[A1_2] L17_2 = L17_2[L14_2] L18_2 = {} L19_2 = L8_2.plate L18_2.plate = L19_2 L18_2.bolos = L10_2 L15_2(L16_2, L17_2, L18_2) end end end L3_2 = type L4_2 = A0_2.sideBarData L4_2 = L4_2.criminals L3_2 = L3_2(L4_2) if "table" == L3_2 then L3_2 = pairs L4_2 = A0_2.sideBarData L4_2 = L4_2.criminals L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L18_1 L10_2 = L18_1 L10_2 = L10_2[A1_2] if not L10_2 then L10_2 = {} end L9_2[A1_2] = L10_2 L9_2 = L8_2.hasWarrant if L9_2 then L9_2 = L18_1 L9_2 = L9_2[A1_2] L10_2 = L8_2.identifier L11_2 = L18_1 L11_2 = L11_2[A1_2] L12_2 = L8_2.identifier L11_2 = L11_2[L12_2] if not L11_2 then L11_2 = {} end L9_2[L10_2] = L11_2 L9_2 = L18_1 L9_2 = L9_2[A1_2] L10_2 = L8_2.identifier L9_2 = L9_2[L10_2] L10_2 = A0_2.id L11_2 = {} L12_2 = A0_2.id L11_2.incidentId = L12_2 L12_2 = A0_2.title L11_2.incidentTitle = L12_2 L12_2 = A0_2.date L11_2.date = L12_2 L9_2[L10_2] = L11_2 else L9_2 = L18_1 L9_2 = L9_2[A1_2] L10_2 = L8_2.identifier L9_2 = L9_2[L10_2] if L9_2 then L9_2 = L18_1 L9_2 = L9_2[A1_2] L10_2 = L8_2.identifier L9_2 = L9_2[L10_2] L10_2 = A0_2.id L9_2[L10_2] = nil end end L9_2 = GetWarrantsByIdentifier L10_2 = L8_2.identifier L11_2 = A1_2 L9_2 = L9_2(L10_2, L11_2) L10_2 = L52_1 L11_2 = A1_2 L12_2 = L8_2.identifier L10_2 = L10_2(L11_2, L12_2) L11_2 = profiles L11_2 = L11_2[A1_2] L12_2 = profiles L12_2 = L12_2[A1_2] L12_2 = L12_2[L10_2] if not L12_2 then L12_2 = {} end L11_2[L10_2] = L12_2 L11_2 = profiles L11_2 = L11_2[A1_2] L11_2 = L11_2[L10_2] L12_2 = L9_2 or L12_2 if not L9_2 then L12_2 = {} end L11_2.warrants = L12_2 L11_2 = 1 L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = #L12_2 L13_2 = 1 for L14_2 = L11_2, L12_2, L13_2 do L15_2 = TriggerClientEvent L16_2 = "tk_mdt:updateProfile" L17_2 = jobPlayers L17_2 = L17_2[A1_2] L17_2 = L17_2[L14_2] L18_2 = {} L19_2 = L8_2.identifier L18_2.identifier = L19_2 L18_2.warrants = L9_2 L15_2(L16_2, L17_2, L18_2) end end end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) L9_2 = A1_2 L10_2 = "Incident" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:saveReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = GetJobName L5_2 = L3_2 L4_2 = L4_2(L5_2) L5_2 = GetGradeId L6_2 = L3_2 L5_2 = L5_2(L6_2) L6_2 = L23_1 L7_2 = A1_2 L8_2 = L2_2 L6_2 = L6_2(L7_2, L8_2) if not L6_2 then L6_2 = L48_1 L7_2 = A1_2 L8_2 = A0_2.reportType L9_2 = L4_2 L10_2 = L5_2 L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2) if not L6_2 then L6_2 = Webhook L7_2 = _U L8_2 = "webhook_cheater" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2) L12_2 = "Save report" L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2) return L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2) end end L6_2 = A0_2.title if "" ~= L6_2 then L6_2 = A0_2.title if L6_2 then goto lbl_51 end end L6_2 = "Report #%s" L7_2 = L6_2 L6_2 = L6_2.format L8_2 = A0_2.id L6_2 = L6_2(L7_2, L8_2) ::lbl_51:: A0_2.title = L6_2 L6_2 = SaveReport L7_2 = A0_2 L6_2(L7_2) L6_2 = L8_1 L6_2 = L6_2[A1_2] L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L12_2.id L14_2 = A0_2.id if L13_2 == L14_2 then L13_2 = A0_2.title if not L13_2 then L13_2 = "Report #%s" L14_2 = L13_2 L13_2 = L13_2.format L15_2 = A0_2.id L13_2 = L13_2(L14_2, L15_2) end L12_2.title = L13_2 L13_2 = L12_2.sideBarData if not L13_2 then L13_2 = {} L12_2.sideBarData = L13_2 end L13_2 = L12_2.sideBarData L14_2 = A0_2.sideBarData L14_2 = L14_2.tags if not L14_2 then L14_2 = {} end L13_2.tags = L14_2 L13_2 = L12_2.sideBarData L14_2 = A0_2.sideBarData L14_2 = L14_2.employees if not L14_2 then L14_2 = {} end L13_2.employees = L14_2 L13_2 = L12_2.sideBarData L14_2 = A0_2.sideBarData L14_2 = L14_2.suspects if not L14_2 then L14_2 = {} end L13_2.suspects = L14_2 L13_2 = L12_2.sideBarData L14_2 = A0_2.sideBarData L14_2 = L14_2.civilians if not L14_2 then L14_2 = {} end L13_2.civilians = L14_2 L13_2 = jobPlayers L13_2 = L13_2[A1_2] if not L13_2 then L13_2 = {} end L14_2 = 1 L15_2 = #L13_2 L16_2 = 1 for L17_2 = L14_2, L15_2, L16_2 do L18_2 = TriggerClientEvent L19_2 = "tk_mdt:updateReport" L20_2 = L13_2[L17_2] L21_2 = L12_2 L18_2(L19_2, L20_2, L21_2) end L14_2 = pairs L15_2 = jobPlayers L14_2, L15_2, L16_2, L17_2 = L14_2(L15_2) for L18_2, L19_2 in L14_2, L15_2, L16_2, L17_2 do if L18_2 ~= A1_2 then L20_2 = 1 L21_2 = #L19_2 L22_2 = 1 for L23_2 = L20_2, L21_2, L22_2 do L24_2 = GetPlayerFromId L25_2 = L19_2[L23_2] L24_2 = L24_2(L25_2) L25_2 = GetJobName L26_2 = L24_2 L25_2 = L25_2(L26_2) L26_2 = GetGradeId L27_2 = L24_2 L26_2 = L26_2(L27_2) L27_2 = L48_1 L28_2 = A1_2 L29_2 = A0_2.reportType L30_2 = L25_2 L31_2 = L26_2 L27_2 = L27_2(L28_2, L29_2, L30_2, L31_2) if L27_2 then L27_2 = TriggerClientEvent L28_2 = "tk_mdt:updateReport" L29_2 = L19_2[L23_2] L30_2 = L6_2[L11_2] L27_2(L28_2, L29_2, L30_2) end L27_2 = Wait L28_2 = 50 L27_2(L28_2) end end end break end end L7_2 = type L8_2 = A0_2.sideBarData L8_2 = L8_2.vehicles L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = pairs L8_2 = A0_2.sideBarData L8_2 = L8_2.vehicles L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L17_1 L14_2 = L17_1 L14_2 = L14_2[A1_2] if not L14_2 then L14_2 = {} end L13_2[A1_2] = L14_2 L13_2 = L12_2.hasBOLO if L13_2 then L13_2 = L17_1 L13_2 = L13_2[A1_2] L14_2 = L12_2.plate L15_2 = L17_1 L15_2 = L15_2[A1_2] L16_2 = L12_2.plate L15_2 = L15_2[L16_2] if not L15_2 then L15_2 = {} end L13_2[L14_2] = L15_2 L13_2 = L17_1 L13_2 = L13_2[A1_2] L14_2 = L12_2.plate L13_2 = L13_2[L14_2] L14_2 = A0_2.id L13_2 = L13_2[L14_2] if not L13_2 then L13_2 = L53_1 L14_2 = L12_2.plate L13_2 = L13_2(L14_2) L14_2 = BoloCreated L15_2 = L2_2 L16_2 = L12_2.plate L17_2 = L12_2.name L18_2 = L13_2 L19_2 = A0_2.id L20_2 = A0_2.title L21_2 = true L22_2 = A0_2.date L14_2(L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2) end L13_2 = L17_1 L13_2 = L13_2[A1_2] L14_2 = L12_2.plate L13_2 = L13_2[L14_2] L14_2 = A0_2.id L15_2 = {} L16_2 = A0_2.id L15_2.id = L16_2 L16_2 = A0_2.title L15_2.title = L16_2 L15_2.isReport = true L16_2 = A0_2.date L15_2.date = L16_2 L13_2[L14_2] = L15_2 else L13_2 = L17_1 L13_2 = L13_2[A1_2] L14_2 = L12_2.plate L13_2 = L13_2[L14_2] if L13_2 then L13_2 = L17_1 L13_2 = L13_2[A1_2] L14_2 = L12_2.plate L13_2 = L13_2[L14_2] L14_2 = A0_2.id L13_2[L14_2] = nil L13_2 = L53_1 L14_2 = L12_2.plate L13_2 = L13_2(L14_2) L14_2 = BoloRemoved L15_2 = L2_2 L16_2 = L12_2.plate L17_2 = L12_2.name L18_2 = L13_2 L19_2 = A0_2.id L20_2 = A0_2.title L21_2 = true L22_2 = A0_2.date L14_2(L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2) end end L13_2 = GetBOLOsByPlate L14_2 = L12_2.plate L15_2 = A1_2 L13_2 = L13_2(L14_2, L15_2) L14_2 = L51_1 L15_2 = A1_2 L16_2 = L12_2.plate L14_2 = L14_2(L15_2, L16_2) L15_2 = L4_1 L15_2 = L15_2[A1_2] L16_2 = L4_1 L16_2 = L16_2[A1_2] L16_2 = L16_2[L14_2] if not L16_2 then L16_2 = {} end L15_2[L14_2] = L16_2 L15_2 = L4_1 L15_2 = L15_2[A1_2] L15_2 = L15_2[L14_2] L16_2 = L13_2 or L16_2 if not L13_2 then L16_2 = {} end L15_2.bolos = L16_2 L15_2 = 1 L16_2 = jobPlayers L16_2 = L16_2[A1_2] L16_2 = #L16_2 L17_2 = 1 for L18_2 = L15_2, L16_2, L17_2 do L19_2 = TriggerClientEvent L20_2 = "tk_mdt:updateVehicle" L21_2 = jobPlayers L21_2 = L21_2[A1_2] L21_2 = L21_2[L18_2] L22_2 = {} L23_2 = L12_2.plate L22_2.plate = L23_2 L22_2.bolos = L13_2 L19_2(L20_2, L21_2, L22_2) end end end L7_2 = Webhook L8_2 = _U L9_2 = "webhook_update" L10_2 = GetPlayerName L11_2 = L2_2 L10_2 = L10_2(L11_2) L11_2 = L2_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = L2_2 L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2) L13_2 = A1_2 L14_2 = "Report" L15_2 = json L15_2 = L15_2.encode L16_2 = A0_2 L17_2 = {} L17_2.indent = true L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2 = L15_2(L16_2, L17_2) L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2, L31_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:saveTrainingReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) L9_2 = "Save training report" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) end L3_2 = A0_2.title if "" ~= L3_2 then L3_2 = A0_2.title if L3_2 then goto lbl_34 end end L3_2 = "Training Report #%s" L4_2 = L3_2 L3_2 = L3_2.format L5_2 = A0_2.id L3_2 = L3_2(L4_2, L5_2) ::lbl_34:: A0_2.title = L3_2 L3_2 = SaveTrainingReport L4_2 = A0_2 L3_2(L4_2) L3_2 = L9_1 L3_2 = L3_2[A1_2] L4_2 = pairs L5_2 = L3_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.id L11_2 = A0_2.id if L10_2 == L11_2 then L10_2 = L3_2[L8_2] L11_2 = A0_2.title if not L11_2 then L11_2 = "Training Report #%s" L12_2 = L11_2 L11_2 = L11_2.format L13_2 = A0_2.id L11_2 = L11_2(L12_2, L13_2) end L10_2.title = L11_2 L10_2 = jobPlayers L10_2 = L10_2[A1_2] if not L10_2 then L10_2 = {} end L11_2 = 1 L12_2 = #L10_2 L13_2 = 1 for L14_2 = L11_2, L12_2, L13_2 do L15_2 = TriggerClientEvent L16_2 = "tk_mdt:updateTrainingReport" L17_2 = L10_2[L14_2] L18_2 = L3_2[L8_2] L15_2(L16_2, L17_2, L18_2) end break end end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_update" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) L10_2 = A1_2 L11_2 = "Training report" L12_2 = json L12_2 = L12_2.encode L13_2 = A0_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L12_2(L13_2, L14_2) L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:savePoliceReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Save police report" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = SavePoliceReport L4_2 = A0_2 L3_2(L4_2) L3_2 = pairs L4_2 = L10_1 L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.id L10_2 = A0_2.id if L9_2 == L10_2 then L9_2 = L8_2.sideBarData if not L9_2 then L9_2 = {} L8_2.sideBarData = L9_2 end L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.tags if not L10_2 then L10_2 = {} end L9_2.tags = L10_2 L9_2 = 1 L10_2 = jobPlayers L10_2 = L10_2[A1_2] L10_2 = #L10_2 L11_2 = 1 for L12_2 = L9_2, L10_2, L11_2 do L13_2 = TriggerClientEvent L14_2 = "tk_mdt:updatePoliceReport" L15_2 = jobPlayers L15_2 = L15_2[A1_2] L15_2 = L15_2[L12_2] L16_2 = L8_2 L13_2(L14_2, L15_2, L16_2) end break end end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = A1_2 L10_2 = "Police report" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:saveEvidence" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Save evidence" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = A0_2.name if "" ~= L3_2 then L3_2 = A0_2.name if L3_2 then goto lbl_34 end end L3_2 = "Evidence #%s" L4_2 = L3_2 L3_2 = L3_2.format L5_2 = A0_2.id L3_2 = L3_2(L4_2, L5_2) ::lbl_34:: A0_2.name = L3_2 L3_2 = SaveEvidence L4_2 = A0_2 L3_2(L4_2) L3_2 = pairs L4_2 = L11_1 L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.id L10_2 = A0_2.id if L9_2 == L10_2 then L9_2 = A0_2.name if not L9_2 then L9_2 = "Evidence #%s" L10_2 = L9_2 L9_2 = L9_2.format L11_2 = A0_2.id L9_2 = L9_2(L10_2, L11_2) end L8_2.name = L9_2 L9_2 = A0_2.image L8_2.image = L9_2 L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.tags if not L10_2 then L10_2 = {} end L9_2.tags = L10_2 L9_2 = 1 L10_2 = jobPlayers L10_2 = L10_2[A1_2] L10_2 = #L10_2 L11_2 = 1 for L12_2 = L9_2, L10_2, L11_2 do L13_2 = TriggerClientEvent L14_2 = "tk_mdt:updateEvidence" L15_2 = jobPlayers L15_2 = L15_2[A1_2] L15_2 = L15_2[L12_2] L16_2 = L8_2 L13_2(L14_2, L15_2, L16_2) end break end end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = A1_2 L10_2 = "Evidence" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:saveWeapon" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Save weapon" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = A0_2.name if "" ~= L3_2 then L3_2 = A0_2.name if L3_2 then goto lbl_34 end end L3_2 = "Weapon #%s" L4_2 = L3_2 L3_2 = L3_2.format L5_2 = A0_2.id L3_2 = L3_2(L4_2, L5_2) ::lbl_34:: A0_2.name = L3_2 L3_2 = SaveWeapon L4_2 = A0_2 L3_2(L4_2) L3_2 = pairs L4_2 = L12_1 L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.id L10_2 = A0_2.id if L9_2 == L10_2 then L9_2 = A0_2.name if not L9_2 then L9_2 = "Weapon #%s" L10_2 = L9_2 L9_2 = L9_2.format L11_2 = A0_2.id L9_2 = L9_2(L10_2, L11_2) end L8_2.name = L9_2 L9_2 = A0_2.serial L8_2.serial = L9_2 L9_2 = A0_2.image L8_2.image = L9_2 L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.owners if not L10_2 then L10_2 = {} end L9_2.owners = L10_2 L9_2 = L8_2.sideBarData L10_2 = A0_2.sideBarData L10_2 = L10_2.tags if not L10_2 then L10_2 = {} end L9_2.tags = L10_2 L9_2 = 1 L10_2 = jobPlayers L10_2 = L10_2[A1_2] L10_2 = #L10_2 L11_2 = 1 for L12_2 = L9_2, L10_2, L11_2 do L13_2 = TriggerClientEvent L14_2 = "tk_mdt:updateWeapon" L15_2 = jobPlayers L15_2 = L15_2[A1_2] L15_2 = L15_2[L12_2] L16_2 = L8_2 L13_2(L14_2, L15_2, L16_2) end break end end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = A1_2 L10_2 = "Weapon" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateLaw" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) L9_2 = "Update law" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) end L3_2 = SaveLaw L4_2 = A0_2 L3_2(L4_2) L3_2 = pairs L4_2 = laws L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.id L10_2 = A0_2.id if L9_2 == L10_2 then L9_2 = A0_2.name L8_2.name = L9_2 L9_2 = ipairs L10_2 = GetPlayers L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L10_2() L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) for L13_2, L14_2 in L9_2, L10_2, L11_2, L12_2 do L15_2 = TriggerClientEvent L16_2 = "tk_mdt:updateLaw" L17_2 = L14_2 L18_2 = L8_2 L15_2(L16_2, L17_2, L18_2) end break end end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) L9_2 = A1_2 L10_2 = "Law" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:createCharge" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L9_2 = "Create charge" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = A0_2.name if L3_2 then L3_2 = A0_2.class if L3_2 then goto lbl_31 end end do return end ::lbl_31:: L3_2 = type L4_2 = A0_2.fine L3_2 = L3_2(L4_2) if "table" ~= L3_2 then L3_2 = {} A0_2.fine = L3_2 end L3_2 = type L4_2 = A0_2.sentence L3_2 = L3_2(L4_2) if "table" ~= L3_2 then L3_2 = {} A0_2.sentence = L3_2 end L3_2 = A0_2.fine L3_2 = L3_2.default if not L3_2 then L3_2 = A0_2.fine L3_2.default = 0 end L3_2 = A0_2.sentence L3_2 = L3_2.default if not L3_2 then L3_2 = A0_2.sentence L3_2.default = 0 end L3_2 = A0_2.fine L4_2 = A0_2.fine L4_2 = L4_2.min if not L4_2 then L4_2 = A0_2.fine L4_2 = L4_2.default end L3_2.min = L4_2 L3_2 = A0_2.fine L4_2 = A0_2.fine L4_2 = L4_2.max if not L4_2 then L4_2 = A0_2.fine L4_2 = L4_2.default end L3_2.max = L4_2 L3_2 = A0_2.sentence L4_2 = A0_2.sentence L4_2 = L4_2.min if not L4_2 then L4_2 = A0_2.sentence L4_2 = L4_2.default end L3_2.min = L4_2 L3_2 = A0_2.sentence L4_2 = A0_2.sentence L4_2 = L4_2.max if not L4_2 then L4_2 = A0_2.sentence L4_2 = L4_2.default end L3_2.max = L4_2 L3_2 = A0_2.fine L4_2 = math L4_2 = L4_2.min L5_2 = A0_2.fine L5_2 = L5_2.min L6_2 = A0_2.fine L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.min = L4_2 L3_2 = A0_2.fine L4_2 = math L4_2 = L4_2.max L5_2 = A0_2.fine L5_2 = L5_2.max L6_2 = A0_2.fine L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.max = L4_2 L3_2 = A0_2.sentence L4_2 = math L4_2 = L4_2.min L5_2 = A0_2.sentence L5_2 = L5_2.min L6_2 = A0_2.sentence L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.min = L4_2 L3_2 = A0_2.sentence L4_2 = math L4_2 = L4_2.max L5_2 = A0_2.sentence L5_2 = L5_2.max L6_2 = A0_2.sentence L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.max = L4_2 L3_2 = CreateCharge L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if L3_2 then L4_2 = charges L5_2 = charges L5_2 = #L5_2 L5_2 = L5_2 + 1 L4_2[L5_2] = L3_2 L4_2 = {} L5_2 = GetIdentifier L6_2 = L2_2 L5_2 = L5_2(L6_2) L4_2.identifier = L5_2 L5_2 = GetCharName L6_2 = GetIdentifier L7_2 = L2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2) L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2.name = L5_2 L3_2.logData = L4_2 L4_2 = L32_1 L5_2 = {} L6_2 = GetIdentifier L7_2 = L2_2 L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = GetCharName L7_2 = GetIdentifier L8_2 = L2_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L7_2(L8_2) L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L5_2.name = L6_2 L5_2.action = "create" L6_2 = L3_2.name L5_2.value = L6_2 L5_2.page = "charges" L5_2.job = A1_2 L4_2(L5_2) L4_2 = ipairs L5_2 = GetPlayers L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2() L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:addCharge" L12_2 = L9_2 L13_2 = L3_2 L10_2(L11_2, L12_2, L13_2) end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_create" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2) L10_2 = A1_2 L11_2 = "Charge" L12_2 = json L12_2 = L12_2.encode L13_2 = L3_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2 = L12_2(L13_2, L14_2) L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateCharge" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = "Update charge" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L3_2 = A0_2.name if L3_2 then L3_2 = A0_2.class if L3_2 then goto lbl_31 end end do return end ::lbl_31:: L3_2 = type L4_2 = A0_2.fine L3_2 = L3_2(L4_2) if "table" ~= L3_2 then L3_2 = {} A0_2.fine = L3_2 end L3_2 = type L4_2 = A0_2.sentence L3_2 = L3_2(L4_2) if "table" ~= L3_2 then L3_2 = {} A0_2.sentence = L3_2 end L3_2 = A0_2.fine L3_2 = L3_2.default if not L3_2 then L3_2 = A0_2.fine L3_2.default = 0 end L3_2 = A0_2.sentence L3_2 = L3_2.default if not L3_2 then L3_2 = A0_2.sentence L3_2.default = 0 end L3_2 = A0_2.fine L4_2 = A0_2.fine L4_2 = L4_2.min if not L4_2 then L4_2 = A0_2.fine L4_2 = L4_2.default end L3_2.min = L4_2 L3_2 = A0_2.fine L4_2 = A0_2.fine L4_2 = L4_2.max if not L4_2 then L4_2 = A0_2.fine L4_2 = L4_2.default end L3_2.max = L4_2 L3_2 = A0_2.sentence L4_2 = A0_2.sentence L4_2 = L4_2.min if not L4_2 then L4_2 = A0_2.sentence L4_2 = L4_2.default end L3_2.min = L4_2 L3_2 = A0_2.sentence L4_2 = A0_2.sentence L4_2 = L4_2.max if not L4_2 then L4_2 = A0_2.sentence L4_2 = L4_2.default end L3_2.max = L4_2 L3_2 = A0_2.fine L4_2 = math L4_2 = L4_2.min L5_2 = A0_2.fine L5_2 = L5_2.min L6_2 = A0_2.fine L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.min = L4_2 L3_2 = A0_2.fine L4_2 = math L4_2 = L4_2.max L5_2 = A0_2.fine L5_2 = L5_2.max L6_2 = A0_2.fine L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.max = L4_2 L3_2 = A0_2.sentence L4_2 = math L4_2 = L4_2.min L5_2 = A0_2.sentence L5_2 = L5_2.min L6_2 = A0_2.sentence L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.min = L4_2 L3_2 = A0_2.sentence L4_2 = math L4_2 = L4_2.max L5_2 = A0_2.sentence L5_2 = L5_2.max L6_2 = A0_2.sentence L6_2 = L6_2.default L4_2 = L4_2(L5_2, L6_2) L3_2.max = L4_2 L3_2 = UpdateCharge L4_2 = A0_2 L3_2(L4_2) L3_2 = pairs L4_2 = charges L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.id L10_2 = A0_2.id if L9_2 == L10_2 then L8_2 = A0_2 break end end L3_2 = ipairs L4_2 = GetPlayers L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2() L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:updateCharge" L11_2 = L8_2 L12_2 = A0_2 L9_2(L10_2, L11_2, L12_2) end L3_2 = Webhook L4_2 = _U L5_2 = "webhook_update" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = A1_2 L10_2 = "Charge" L11_2 = json L11_2 = L11_2.encode L12_2 = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeCharge" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Remove charge" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = nil L4_2 = RemoveCharge L5_2 = A0_2 L4_2(L5_2) L4_2 = charges L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.name L4_2[L9_2] = nil break end end L5_2 = {} L5_2.chargeId = A0_2 L5_2.name = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "charges" L7_2.job = A1_2 L6_2(L7_2) L6_2 = ipairs L7_2 = GetPlayers L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2() L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = TriggerClientEvent L13_2 = "tk_mdt:removeCharge" L14_2 = L11_2 L15_2 = L5_2 L12_2(L13_2, L14_2, L15_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_delete" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = A1_2 L13_2 = "Profile" L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeLaw" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Remove law" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = nil L4_2 = RemoveLaw L5_2 = A0_2 L4_2(L5_2) L4_2 = laws L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.name L4_2[L9_2] = nil break end end L5_2 = {} L5_2.lawId = A0_2 L5_2.name = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "legislation" L7_2.job = A1_2 L6_2(L7_2) L6_2 = ipairs L7_2 = GetPlayers L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2() L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = TriggerClientEvent L13_2 = "tk_mdt:removeLaw" L14_2 = L11_2 L15_2 = L5_2 L12_2(L13_2, L14_2, L15_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_delete" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = A1_2 L13_2 = "Profile" L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:createLaw" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L9_2 = "Create law" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = CreateLaw L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if L3_2 then L4_2 = laws L5_2 = laws L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L4_2[A1_2] = L5_2 L4_2 = laws L4_2 = L4_2[A1_2] L5_2 = laws L5_2 = L5_2[A1_2] L5_2 = #L5_2 L5_2 = L5_2 + 1 L4_2[L5_2] = L3_2 L4_2 = {} L5_2 = GetIdentifier L6_2 = L2_2 L5_2 = L5_2(L6_2) L4_2.identifier = L5_2 L5_2 = GetCharName L6_2 = GetIdentifier L7_2 = L2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2) L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2.name = L5_2 L3_2.logData = L4_2 L4_2 = L32_1 L5_2 = {} L6_2 = GetIdentifier L7_2 = L2_2 L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = GetCharName L7_2 = GetIdentifier L8_2 = L2_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L7_2(L8_2) L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L5_2.name = L6_2 L5_2.action = "create" L6_2 = L3_2.name L5_2.value = L6_2 L5_2.page = "legislation" L5_2.job = A1_2 L4_2(L5_2) L4_2 = ipairs L5_2 = GetPlayers L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2() L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:addLaw" L12_2 = L9_2 L13_2 = L3_2 L10_2(L11_2, L12_2, L13_2) end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_create" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2) L10_2 = A1_2 L11_2 = "Law" L12_2 = json L12_2 = L12_2.encode L13_2 = L3_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2 = L12_2(L13_2, L14_2) L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:addChatMessage" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = "Add chat message" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L3_2 = L13_1 L4_2 = L13_1 L4_2 = L4_2[A1_2] if not L4_2 then L4_2 = {} end L3_2[A1_2] = L4_2 L3_2 = L13_1 L3_2 = L3_2[A1_2] L3_2 = #L3_2 L3_2 = L3_2 + 1 L4_2 = {} L4_2.id = L3_2 L4_2.message = A0_2 L5_2 = os L5_2 = L5_2.time L5_2 = L5_2() L4_2.timestamp = L5_2 L5_2 = GetIdentifier L6_2 = GetPlayerFromId L7_2 = L2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L6_2(L7_2) L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L4_2.from = L5_2 L5_2 = L13_1 L5_2 = L5_2[A1_2] L6_2 = L13_1 L6_2 = #L6_2 L6_2 = L6_2 + 1 L5_2[L6_2] = L4_2 L5_2 = {} L6_2 = GetIdentifier L7_2 = L2_2 L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = GetCharName L7_2 = GetIdentifier L8_2 = L2_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L7_2(L8_2) L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L5_2.name = L6_2 L4_2.logData = L5_2 L5_2 = L32_1 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L6_2.name = L7_2 L6_2.action = "create" L6_2.value = A0_2 L6_2.page = "home" L6_2.component = "chat" L6_2.job = A1_2 L5_2(L6_2) L5_2 = jobPlayers L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L6_2 = 1 L7_2 = #L5_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:addChatMessage" L12_2 = L5_2[L9_2] L13_2 = L4_2 L10_2(L11_2, L12_2, L13_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:createAnnouncement" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = "Create announcement" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L3_2 = CreateAnnouncement L4_2 = L2_2 L5_2 = A0_2 L6_2 = A1_2 L3_2(L4_2, L5_2, L6_2) L3_2 = Webhook L4_2 = _U L5_2 = "webhook_create" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2) L9_2 = A1_2 L10_2 = "Announcement" L11_2 = json L11_2 = L11_2.encode L12_2 = {} L12_2.message = A0_2 L13_2 = {} L13_2.indent = true L11_2, L12_2, L13_2 = L11_2(L12_2, L13_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:toggleAnnouncementPin" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2 L2_2 = source L3_2 = ToggleAnnouncementPin L4_2 = A0_2 L5_2 = A1_2 L3_2(L4_2, L5_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeAnnouncement" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2) L9_2 = "Pin announcement" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2) end L3_2 = RemoveAnnouncement L4_2 = L2_2 L5_2 = A0_2 L6_2 = A1_2 L3_2(L4_2, L5_2, L6_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateEmployeeImage" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2) L9_2 = "Update employee image" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) end L3_2 = UpdateEmployeeImage L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then return end L4_2 = pairs L5_2 = employees L5_2 = L5_2[A1_2] L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.identifier L11_2 = A0_2.identifier if L10_2 == L11_2 then employeeIndex = L8_2 break end end L4_2 = employees L5_2 = employees L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L4_2[A1_2] = L5_2 L4_2 = employeeIndex if not L4_2 then L4_2 = employees L4_2 = L4_2[A1_2] L4_2 = #L4_2 L4_2 = L4_2 + 1 end employeeIndex = L4_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L6_2 = employees L6_2 = L6_2[A1_2] L7_2 = employeeIndex L6_2 = L6_2[L7_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L4_2 = L4_2[L5_2] L5_2 = A0_2.image L4_2.image = L5_2 L4_2 = jobPlayers L4_2 = L4_2[A1_2] if not L4_2 then L4_2 = {} end L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:updateEmployeeImage" L11_2 = L4_2[L8_2] L12_2 = A0_2 L9_2(L10_2, L11_2, L12_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateEmployeeCallsign" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2) L9_2 = "Update employee callsign" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) end L3_2 = UpdateEmployeeCallsign L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then return end L4_2 = pairs L5_2 = employees L5_2 = L5_2[A1_2] L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.identifier L11_2 = A0_2.identifier if L10_2 == L11_2 then employeeIndex = L8_2 break end end L4_2 = employees L5_2 = employees L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L4_2[A1_2] = L5_2 L4_2 = employeeIndex if not L4_2 then L4_2 = employees L4_2 = L4_2[A1_2] L4_2 = #L4_2 L4_2 = L4_2 + 1 end employeeIndex = L4_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L6_2 = employees L6_2 = L6_2[A1_2] L7_2 = employeeIndex L6_2 = L6_2[L7_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L4_2 = L4_2[L5_2] L5_2 = A0_2.callsign L4_2.callsign = L5_2 L4_2 = jobPlayers L4_2 = L4_2[A1_2] if not L4_2 then L4_2 = {} end L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:updateEmployeeCallsign" L11_2 = L4_2[L8_2] L12_2 = A0_2 L9_2(L10_2, L11_2, L12_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateEmployeeStatus" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2) L9_2 = "Update employee status" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) end L3_2 = UpdateEmployeeStatus L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then return end L4_2 = pairs L5_2 = employees L5_2 = L5_2[A1_2] L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.identifier L11_2 = A0_2.identifier if L10_2 == L11_2 then employeeIndex = L8_2 break end end L4_2 = employees L5_2 = employees L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L4_2[A1_2] = L5_2 L4_2 = employeeIndex if not L4_2 then L4_2 = employees L4_2 = L4_2[A1_2] L4_2 = #L4_2 L4_2 = L4_2 + 1 end employeeIndex = L4_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L6_2 = employees L6_2 = L6_2[A1_2] L7_2 = employeeIndex L6_2 = L6_2[L7_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L4_2 = L4_2[L5_2] L5_2 = A0_2.status L4_2.status = L5_2 L4_2 = jobPlayers L4_2 = L4_2[A1_2] if not L4_2 then L4_2 = {} end L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:updateEmployeeStatus" L11_2 = L4_2[L8_2] L12_2 = A0_2 L9_2(L10_2, L11_2, L12_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateEmployeeNotes" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2) L9_2 = "Update employee notes" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) end L3_2 = UpdateEmployeeNotes L4_2 = A0_2 L5_2 = A1_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then return end L4_2 = pairs L5_2 = employees L5_2 = L5_2[A1_2] L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.identifier L11_2 = A0_2.identifier if L10_2 == L11_2 then employeeIndex = L8_2 break end end L4_2 = employees L5_2 = employees L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L4_2[A1_2] = L5_2 L4_2 = employeeIndex if not L4_2 then L4_2 = employees L4_2 = L4_2[A1_2] L4_2 = #L4_2 L4_2 = L4_2 + 1 end employeeIndex = L4_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L6_2 = employees L6_2 = L6_2[A1_2] L7_2 = employeeIndex L6_2 = L6_2[L7_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L4_2 = employees L4_2 = L4_2[A1_2] L5_2 = employeeIndex L4_2 = L4_2[L5_2] L5_2 = A0_2.notes L4_2.notes = L5_2 L4_2 = jobPlayers L4_2 = L4_2[A1_2] if not L4_2 then L4_2 = {} end L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:updateEmployeeNotes" L11_2 = L4_2[L8_2] L12_2 = A0_2 L9_2(L10_2, L11_2, L12_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:updateEmployeeLicenses" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L9_2 = "Update employee licenses" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = pairs L4_2 = employees L4_2 = L4_2[A1_2] L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.identifier L10_2 = A0_2.identifier if L9_2 == L10_2 then employeeIndex = L7_2 break end end L3_2 = employees L4_2 = employees L4_2 = L4_2[A1_2] if not L4_2 then L4_2 = {} end L3_2[A1_2] = L4_2 L3_2 = employeeIndex if not L3_2 then L3_2 = employees L3_2 = L3_2[A1_2] L3_2 = #L3_2 L3_2 = L3_2 + 1 end employeeIndex = L3_2 L3_2 = employees L3_2 = L3_2[A1_2] L4_2 = employeeIndex L5_2 = employees L5_2 = L5_2[A1_2] L6_2 = employeeIndex L5_2 = L5_2[L6_2] if not L5_2 then L5_2 = {} end L3_2[L4_2] = L5_2 L3_2 = employees L3_2 = L3_2[A1_2] L4_2 = employeeIndex L3_2 = L3_2[L4_2] L3_2 = L3_2.licenses if not L3_2 then L3_2 = {} end L4_2 = pairs L5_2 = L3_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2 in L4_2, L5_2, L6_2, L7_2 do L9_2 = A0_2.license if L8_2 == L9_2 then L9_2 = A0_2.newValue L3_2[L8_2] = L9_2 end end L4_2 = A0_2.license L4_2 = L3_2[L4_2] if not L4_2 then L4_2 = A0_2.license L5_2 = A0_2.newValue L3_2[L4_2] = L5_2 end A0_2.licenses = L3_2 L4_2 = UpdateEmployeeLicenses L5_2 = A0_2 L6_2 = A1_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then return end L5_2 = employees L5_2 = L5_2[A1_2] L6_2 = employeeIndex L5_2 = L5_2[L6_2] L5_2.licenses = L3_2 L5_2 = jobPlayers L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L6_2 = 1 L7_2 = #L5_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:updateEmployeeLicenses" L12_2 = L5_2[L9_2] L13_2 = {} L14_2 = A0_2.identifier L13_2.identifier = L14_2 L13_2.licenses = L3_2 L10_2(L11_2, L12_2, L13_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:createCall" function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = os L1_2 = L1_2.time L1_2 = L1_2() L1_2 = L1_2 * 1000 A0_2.timestamp = L1_2 L1_2 = A0_2.type L2_2 = L15_1 if not L2_2 then L2_2 = {} end L15_1 = L2_2 L2_2 = L15_1 L3_2 = L15_1 L3_2 = L3_2[L1_2] if not L3_2 then L3_2 = {} end L2_2[L1_2] = L3_2 L2_2 = L15_1 L2_2 = L2_2[L1_2] L3_2 = next L4_2 = L2_2 L3_2 = L3_2(L4_2) if not L3_2 then A0_2.id = 1 L3_2 = #L2_2 L3_2 = L3_2 + 1 L2_2[L3_2] = A0_2 else L3_2 = #L2_2 L3_2 = L2_2[L3_2] L3_2 = L3_2.id L4_2 = L3_2 + 1 A0_2.id = L4_2 L4_2 = #L2_2 L4_2 = L4_2 + 1 L2_2[L4_2] = A0_2 end L3_2 = jobPlayers L3_2 = L3_2[L1_2] L4_2 = type L5_2 = L3_2 L4_2 = L4_2(L5_2) if "table" == L4_2 then L4_2 = 1 L5_2 = #L3_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TriggerClientEvent L9_2 = "tk_mdt:addCall" L10_2 = L3_2[L7_2] L11_2 = A0_2 L8_2(L9_2, L10_2, L11_2) end end L4_2 = A0_2.time if not L4_2 then L4_2 = 300000 end L5_2 = SetTimeout L6_2 = L4_2 function L7_2() local L0_3, L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3, L8_3, L9_3, L10_3, L11_3, L12_3, L13_3 L0_3 = pairs L1_3 = L2_2 L0_3, L1_3, L2_3, L3_3 = L0_3(L1_3) for L4_3, L5_3 in L0_3, L1_3, L2_3, L3_3 do L6_3 = L5_3.id L7_3 = A0_2.id if L6_3 == L7_3 then L6_3 = table L6_3 = L6_3.remove L7_3 = L2_2 L8_3 = L4_3 L6_3(L7_3, L8_3) L6_3 = type L7_3 = L3_2 L6_3 = L6_3(L7_3) if "table" == L6_3 then L6_3 = 1 L7_3 = L3_2 L7_3 = #L7_3 L8_3 = 1 for L9_3 = L6_3, L7_3, L8_3 do L10_3 = TriggerClientEvent L11_3 = "tk_mdt:removeCall" L12_3 = L3_2 L12_3 = L12_3[L9_3] L13_3 = A0_2.id L10_3(L11_3, L12_3, L13_3) end end break end end end L5_2(L6_2, L7_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:createPoliceReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L2_2 = source if not A1_2 then A1_2 = "police" end L3_2 = GetCharName L4_2 = GetIdentifier L5_2 = GetPlayerFromId L6_2 = L2_2 L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2) L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2 = GetPhoneNumber L5_2 = GetIdentifier L6_2 = GetPlayerFromId L7_2 = L2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2) L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L5_2 = A0_2.hideName L5_2 = L3_2 or L5_2 if L5_2 or not L3_2 then L5_2 = nil end A0_2.creator = L5_2 L5_2 = A0_2.hidePhoneNumber L5_2 = L4_2 or L5_2 if L5_2 or not L4_2 then L5_2 = nil end A0_2.phoneNumber = L5_2 L5_2 = CreatePoliceReport L6_2 = A0_2 L7_2 = A1_2 L5_2 = L5_2(L6_2, L7_2) if not L5_2 then return end A0_2.id = L5_2 L6_2 = os L6_2 = L6_2.time L6_2 = L6_2() A0_2.date = L6_2 L6_2 = L10_1 L7_2 = L10_1 L7_2 = L7_2[A1_2] if not L7_2 then L7_2 = {} end L6_2[A1_2] = L7_2 L6_2 = L10_1 L6_2 = L6_2[A1_2] L7_2 = L10_1 L7_2 = L7_2[A1_2] L7_2 = #L7_2 L7_2 = L7_2 + 1 L6_2[L7_2] = A0_2 L6_2 = type L7_2 = jobPlayers L7_2 = L7_2[A1_2] L6_2 = L6_2(L7_2) if "table" ~= L6_2 then return end L6_2 = 1 L7_2 = jobPlayers L7_2 = L7_2[A1_2] L7_2 = #L7_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:addPoliceReport" L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = L12_2[L9_2] L13_2 = {} L14_2 = A0_2.id L13_2.id = L14_2 L14_2 = A0_2.title L13_2.title = L14_2 L14_2 = A0_2.creator L13_2.creator = L14_2 L14_2 = A0_2.date L13_2.date = L14_2 L10_2(L11_2, L12_2, L13_2) end end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeEvidence" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Remove evidence" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = nil L4_2 = RemoveEvidence L5_2 = L2_2 L6_2 = A0_2 L4_2(L5_2, L6_2) L4_2 = L11_1 L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.name L11_2 = table L11_2 = L11_2.remove L12_2 = L4_2 L13_2 = L9_2 L11_2(L12_2, L13_2) break end end L5_2 = {} L5_2.id = A0_2 L5_2.name = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "evidence" L7_2.job = A1_2 L6_2(L7_2) L6_2 = 1 L7_2 = jobPlayers L7_2 = L7_2[A1_2] L7_2 = #L7_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:removeEvidence" L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = L12_2[L9_2] L13_2 = L5_2 L10_2(L11_2, L12_2, L13_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_delete" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = A1_2 L13_2 = "Evidence" L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeIncident" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Remove incident" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = nil L4_2 = RemoveIncident L5_2 = L2_2 L6_2 = A0_2 L4_2(L5_2, L6_2) L4_2 = L7_1 L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.title L11_2 = table L11_2 = L11_2.remove L12_2 = L4_2 L13_2 = L9_2 L11_2(L12_2, L13_2) break end end L5_2 = {} L5_2.id = A0_2 L5_2.title = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "incidents" L7_2.job = A1_2 L6_2(L7_2) L6_2 = 1 L7_2 = jobPlayers L7_2 = L7_2[A1_2] L7_2 = #L7_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:removeIncident" L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = L12_2[L9_2] L13_2 = L5_2 L10_2(L11_2, L12_2, L13_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_delete" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = A1_2 L13_2 = "Incident" L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 L2_2 = source L3_2 = nil L4_2 = nil L5_2 = nil L6_2 = L8_1 L6_2 = L6_2[A1_2] L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L12_2.id if L13_2 == A0_2 then L3_2 = L12_2.title L4_2 = L12_2.reportType L5_2 = L11_2 break end end L7_2 = GetPlayerFromId L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = GetJobName L9_2 = L7_2 L8_2 = L8_2(L9_2) L9_2 = GetGradeId L10_2 = L7_2 L9_2 = L9_2(L10_2) L10_2 = L23_1 L11_2 = A1_2 L12_2 = L2_2 L10_2 = L10_2(L11_2, L12_2) if not L10_2 then L10_2 = L48_1 L11_2 = A1_2 L12_2 = L4_2 L13_2 = L8_2 L14_2 = L9_2 L10_2 = L10_2(L11_2, L12_2, L13_2, L14_2) if not L10_2 then L10_2 = Webhook L11_2 = _U L12_2 = "webhook_cheater" L13_2 = GetPlayerName L14_2 = L2_2 L13_2 = L13_2(L14_2) L14_2 = L2_2 L15_2 = GetIdentifier L16_2 = GetPlayerFromId L17_2 = L2_2 L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L16_2(L17_2) L15_2 = L15_2(L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) L16_2 = "Remove report" L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) return L10_2(L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) end end L10_2 = RemoveReport L11_2 = L2_2 L12_2 = A0_2 L13_2 = A1_2 L10_2(L11_2, L12_2, L13_2) L10_2 = table L10_2 = L10_2.remove L11_2 = L6_2 L12_2 = L5_2 L10_2(L11_2, L12_2) L10_2 = {} L10_2.id = A0_2 L10_2.title = L3_2 L11_2 = {} L12_2 = GetIdentifier L13_2 = L2_2 L12_2 = L12_2(L13_2) L11_2.identifier = L12_2 L12_2 = GetCharName L13_2 = GetIdentifier L14_2 = L2_2 L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) L11_2.name = L12_2 L10_2.logData = L11_2 L11_2 = L32_1 L12_2 = {} L13_2 = GetIdentifier L14_2 = L2_2 L13_2 = L13_2(L14_2) L12_2.identifier = L13_2 L13_2 = GetCharName L14_2 = GetIdentifier L15_2 = L2_2 L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L14_2(L15_2) L13_2 = L13_2(L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) L12_2.name = L13_2 L12_2.action = "delete" L12_2.value = L3_2 L12_2.page = "reports" L12_2.job = A1_2 L11_2(L12_2) L11_2 = jobPlayers L11_2 = L11_2[A1_2] if not L11_2 then L11_2 = {} end L12_2 = 1 L13_2 = #L11_2 L14_2 = 1 for L15_2 = L12_2, L13_2, L14_2 do L16_2 = TriggerClientEvent L17_2 = "tk_mdt:removeReport" L18_2 = L11_2[L15_2] L19_2 = L10_2 L16_2(L17_2, L18_2, L19_2) end L12_2 = pairs L13_2 = jobPlayers L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) for L16_2, L17_2 in L12_2, L13_2, L14_2, L15_2 do if L16_2 ~= A1_2 then L18_2 = 1 L19_2 = #L17_2 L20_2 = 1 for L21_2 = L18_2, L19_2, L20_2 do L22_2 = GetPlayerFromId L23_2 = L17_2[L21_2] L22_2 = L22_2(L23_2) L23_2 = GetJobName L24_2 = L22_2 L23_2 = L23_2(L24_2) L24_2 = GetGradeId L25_2 = L22_2 L24_2 = L24_2(L25_2) L25_2 = L48_1 L26_2 = A1_2 L27_2 = L4_2 L28_2 = L23_2 L29_2 = L24_2 L25_2 = L25_2(L26_2, L27_2, L28_2, L29_2) if L25_2 then L25_2 = TriggerClientEvent L26_2 = "tk_mdt:removeReport" L27_2 = L17_2[L21_2] L28_2 = L10_2 L25_2(L26_2, L27_2, L28_2) end L25_2 = Wait L26_2 = 50 L25_2(L26_2) end end end L12_2 = Webhook L13_2 = _U L14_2 = "webhook_delete" L15_2 = GetPlayerName L16_2 = L2_2 L15_2 = L15_2(L16_2) L16_2 = L2_2 L17_2 = GetIdentifier L18_2 = GetPlayerFromId L19_2 = L2_2 L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L18_2(L19_2) L17_2 = L17_2(L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) L18_2 = A1_2 L19_2 = "Report" L20_2 = json L20_2 = L20_2.encode L21_2 = L10_2 L22_2 = {} L22_2.indent = true L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L20_2(L21_2, L22_2) L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2 = L13_2(L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeTrainingReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L9_2 = "Remove training report" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) end L3_2 = nil L4_2 = RemoveTrainingReport L5_2 = L2_2 L6_2 = A0_2 L7_2 = A1_2 L4_2(L5_2, L6_2, L7_2) L4_2 = L9_1 L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.title L11_2 = table L11_2 = L11_2.remove L12_2 = L4_2 L13_2 = L9_2 L11_2(L12_2, L13_2) break end end L5_2 = {} L5_2.id = A0_2 L5_2.title = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "trainingReports" L7_2.job = A1_2 L6_2(L7_2) L6_2 = jobPlayers L6_2 = L6_2[A1_2] if not L6_2 then L6_2 = {} end L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = TriggerClientEvent L12_2 = "tk_mdt:removeTrainingReport" L13_2 = L6_2[L10_2] L14_2 = L5_2 L11_2(L12_2, L13_2, L14_2) end L7_2 = Webhook L8_2 = _U L9_2 = "webhook_delete" L10_2 = GetPlayerName L11_2 = L2_2 L10_2 = L10_2(L11_2) L11_2 = L2_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = L2_2 L13_2, L14_2, L15_2, L16_2, L17_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2) L13_2 = A1_2 L14_2 = "Training report" L15_2 = json L15_2 = L15_2.encode L16_2 = L5_2 L17_2 = {} L17_2.indent = true L15_2, L16_2, L17_2 = L15_2(L16_2, L17_2) L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removePoliceReport" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Remove police report" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = nil L4_2 = RemovePoliceReport L5_2 = L2_2 L6_2 = A0_2 L4_2(L5_2, L6_2) L4_2 = L10_1 L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.title L11_2 = table L11_2 = L11_2.remove L12_2 = L4_2 L13_2 = L9_2 L11_2(L12_2, L13_2) break end end L5_2 = {} L5_2.id = A0_2 L5_2.title = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "policeReports" L7_2.job = A1_2 L6_2(L7_2) L6_2 = 1 L7_2 = jobPlayers L7_2 = L7_2[A1_2] L7_2 = #L7_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:removePoliceReport" L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = L12_2[L9_2] L13_2 = L5_2 L10_2(L11_2, L12_2, L13_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_delete" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = A1_2 L13_2 = "Police report" L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = RegisterNetEvent L55_1 = "tk_mdt:removeWeapon" function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = L23_1 L4_2 = A1_2 L5_2 = L2_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then L3_2 = Webhook L4_2 = _U L5_2 = "webhook_cheater" L6_2 = GetPlayerName L7_2 = L2_2 L6_2 = L6_2(L7_2) L7_2 = L2_2 L8_2 = GetIdentifier L9_2 = GetPlayerFromId L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L9_2 = "Remove weapon" L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) return L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L3_2 = nil L4_2 = RemoveWeapon L5_2 = L2_2 L6_2 = A0_2 L4_2(L5_2, L6_2) L4_2 = L12_1 L4_2 = L4_2[A1_2] L5_2 = pairs L6_2 = L4_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.id if L11_2 == A0_2 then L3_2 = L10_2.name L11_2 = table L11_2 = L11_2.remove L12_2 = L4_2 L13_2 = L9_2 L11_2(L12_2, L13_2) break end end L5_2 = {} L5_2.id = A0_2 L5_2.name = L3_2 L6_2 = {} L7_2 = GetIdentifier L8_2 = L2_2 L7_2 = L7_2(L8_2) L6_2.identifier = L7_2 L7_2 = GetCharName L8_2 = GetIdentifier L9_2 = L2_2 L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2) L7_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2.name = L7_2 L5_2.logData = L6_2 L6_2 = L32_1 L7_2 = {} L8_2 = GetIdentifier L9_2 = L2_2 L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = GetCharName L9_2 = GetIdentifier L10_2 = L2_2 L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L9_2(L10_2) L8_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2.name = L8_2 L7_2.action = "delete" L7_2.value = L3_2 L7_2.page = "weapons" L7_2.job = A1_2 L6_2(L7_2) L6_2 = 1 L7_2 = jobPlayers L7_2 = L7_2[A1_2] L7_2 = #L7_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:removeWeapon" L12_2 = jobPlayers L12_2 = L12_2[A1_2] L12_2 = L12_2[L9_2] L13_2 = L5_2 L10_2(L11_2, L12_2, L13_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_delete" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2, L16_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2, L16_2) L12_2 = A1_2 L13_2 = "Weapon" L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L54_1(L55_1, L56_1) L54_1 = AddEventHandler L55_1 = "playerDropped" function L56_1(A0_2) local L1_2, L2_2 L1_2 = PlayerDropped L2_2 = source L1_2(L2_2) end L54_1(L55_1, L56_1) L54_1 = CreateThread function L55_1() local L0_2, L1_2 repeat L0_2 = Wait L1_2 = 100 L0_2(L1_2) L0_2 = frameworkLoaded until L0_2 L0_2 = L37_1 L0_2() end L54_1(L55_1) function L54_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_tags (name, color, minGrade, grades, page) VALUES (?, ?, ?, ?, ?) ]] L4_2 = {} L5_2 = A0_2.name L6_2 = A0_2.color L7_2 = A0_2.minGrade L8_2 = A0_2.grades if L8_2 then L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.grades L8_2 = L8_2(L9_2) end L9_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L4_2[5] = L9_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end AddTag = L54_1 function L54_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT name, label, color, minGrade, grades, page FROM tk_mdt_tags ]] L0_2 = L0_2(L1_2) L1_2 = ipairs L2_2 = L0_2 L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = json L7_2 = L7_2.decode L8_2 = L6_2.grades L7_2 = L7_2(L8_2) L6_2.grades = L7_2 L7_2 = type L8_2 = L6_2.grades L7_2 = L7_2(L8_2) if "table" ~= L7_2 then L7_2 = {} L6_2.grades = L7_2 end end return L0_2 end GetTags = L54_1 function L54_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = charges L2_2 = L2_2[A1_2] if not L2_2 then return end L2_2 = pairs L3_2 = charges L3_2 = L3_2[A1_2] L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.id if L8_2 == A0_2 then return L7_2 end end return end GetChargeById = L54_1 function L54_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2 L2_2 = "%" L3_2 = A0_2 L4_2 = "%" L2_2 = L2_2 .. L3_2 .. L4_2 L3_2 = MySQL L3_2 = L3_2.Sync L3_2 = L3_2.fetchAll L4_2 = [[ SELECT criminals FROM tk_mdt_incidents WHERE criminals LIKE ? AND page = ? ]] L5_2 = {} L6_2 = L2_2 L7_2 = A1_2 L5_2[1] = L6_2 L5_2[2] = L7_2 L3_2 = L3_2(L4_2, L5_2) L4_2 = {} L5_2 = ipairs L6_2 = L3_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = json L11_2 = L11_2.decode L12_2 = L10_2.criminals L11_2 = L11_2(L12_2) L12_2 = ipairs L13_2 = L11_2 L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) for L16_2, L17_2 in L12_2, L13_2, L14_2, L15_2 do L18_2 = L17_2.identifier if L18_2 == A0_2 then L18_2 = type L19_2 = L17_2.charges L18_2 = L18_2(L19_2) if "table" == L18_2 then L18_2 = ipairs L19_2 = L17_2.charges L18_2, L19_2, L20_2, L21_2 = L18_2(L19_2) for L22_2, L23_2 in L18_2, L19_2, L20_2, L21_2 do L24_2 = GetChargeById L25_2 = L23_2.id L26_2 = A1_2 L24_2 = L24_2(L25_2, L26_2) if L24_2 then L25_2 = L24_2.name L25_2 = L4_2[L25_2] if L25_2 then L25_2 = L24_2.name L26_2 = L24_2.name L26_2 = L4_2[L26_2] L27_2 = L23_2.amount L26_2 = L26_2 + L27_2 L4_2[L25_2] = L26_2 else L25_2 = L24_2.name L26_2 = L23_2.amount L4_2[L25_2] = L26_2 end end end end end end end L5_2 = {} L6_2 = pairs L7_2 = L4_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = #L5_2 L12_2 = L12_2 + 1 L13_2 = L10_2 L14_2 = " x" L15_2 = L11_2 L13_2 = L13_2 .. L14_2 .. L15_2 L5_2[L12_2] = L13_2 end return L5_2 end GetChargesByIdentifier = L54_1 function L54_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT criminals, date FROM tk_mdt_incidents WHERE criminals LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = 0 L4_2 = os L4_2 = L4_2.time L4_2 = L4_2() L5_2 = Config L5_2 = L5_2.LicensePointsDuration L5_2 = L5_2 * 24 L5_2 = L5_2 * 60 L5_2 = L5_2 * 60 L6_2 = ipairs L7_2 = L2_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = json L12_2 = L12_2.decode L13_2 = L11_2.criminals L12_2 = L12_2(L13_2) L13_2 = ipairs L14_2 = L12_2 L13_2, L14_2, L15_2, L16_2 = L13_2(L14_2) for L17_2, L18_2 in L13_2, L14_2, L15_2, L16_2 do L19_2 = L18_2.identifier if L19_2 == A0_2 then L19_2 = L18_2.points if L19_2 then L19_2 = L11_2.date L19_2 = L4_2 - L19_2 if L5_2 >= L19_2 then L19_2 = L18_2.points L3_2 = L3_2 + L19_2 end end end end end return L3_2 end GetLicensePointsByIdentifier = L54_1 function L54_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_incidents WHERE criminals LIKE ? OR civilians LIKE ? ]] L4_2 = {} L5_2 = L1_2 L6_2 = L1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = ipairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetIncidentsByIdentifier = L54_1 function L54_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_reports WHERE suspects LIKE ? OR civilians LIKE ? ]] L4_2 = {} L5_2 = L1_2 L6_2 = L1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = ipairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetReportsByIdentifier = L54_1 function L54_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = Config L2_2 = L2_2.DebugMode if L2_2 then L2_2 = print L3_2 = "get incidents by plate" L4_2 = L1_2 L2_2(L3_2, L4_2) end L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_incidents WHERE vehicles LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = Config L3_2 = L3_2.DebugMode if L3_2 then L3_2 = print L4_2 = "data" L5_2 = json L5_2 = L5_2.encode L6_2 = L2_2 L7_2 = {} L7_2.indent = true L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = {} L4_2 = ipairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = Config L10_2 = L10_2.DebugMode if L10_2 then L10_2 = print L11_2 = "v" L12_2 = json L12_2 = L12_2.encode L13_2 = L9_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2 = L12_2(L13_2, L14_2) L10_2(L11_2, L12_2, L13_2, L14_2) end L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end L4_2 = Config L4_2 = L4_2.DebugMode if L4_2 then L4_2 = print L5_2 = "incidentsData" L6_2 = json L6_2 = L6_2.encode L7_2 = L3_2 L8_2 = {} L8_2.indent = true L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2, L8_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end return L3_2 end GetIncidentsByPlate = L54_1 function L54_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = Config L2_2 = L2_2.DebugMode if L2_2 then L2_2 = print L3_2 = "get reports by plate" L4_2 = L1_2 L2_2(L3_2, L4_2) end L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_reports WHERE vehicles LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = Config L3_2 = L3_2.DebugMode if L3_2 then L3_2 = print L4_2 = "data" L5_2 = json L5_2 = L5_2.encode L6_2 = L2_2 L7_2 = {} L7_2.indent = true L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L3_2 = {} L4_2 = ipairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = Config L10_2 = L10_2.DebugMode if L10_2 then L10_2 = print L11_2 = "v" L12_2 = json L12_2 = L12_2.encode L13_2 = L9_2 L14_2 = {} L14_2.indent = true L12_2, L13_2, L14_2 = L12_2(L13_2, L14_2) L10_2(L11_2, L12_2, L13_2, L14_2) end L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end L4_2 = Config L4_2 = L4_2.DebugMode if L4_2 then L4_2 = print L5_2 = "reportsData" L6_2 = json L6_2 = L6_2.encode L7_2 = L3_2 L8_2 = {} L8_2.indent = true L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2, L8_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end return L3_2 end GetReportsByPlate = L54_1 function L54_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_weapons WHERE owners LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = ipairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetWeaponsByIdentifier = L54_1 function L54_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = A0_2[1] L3_2 = A1_2[1] L2_2 = L2_2 - L3_2 L3_2 = A0_2[2] L4_2 = A1_2[2] L3_2 = L3_2 - L4_2 L4_2 = A0_2[3] L5_2 = A1_2[3] L4_2 = L4_2 - L5_2 L5_2 = math L5_2 = L5_2.sqrt L6_2 = L2_2 * L2_2 L7_2 = L3_2 * L3_2 L6_2 = L6_2 + L7_2 L7_2 = L4_2 * L4_2 L6_2 = L6_2 + L7_2 return L5_2(L6_2) end L55_1 = {} L56_1 = {} L56_1.name = "White" L57_1 = {} L58_1 = 255 L59_1 = 255 L60_1 = 255 L57_1[1] = L58_1 L57_1[2] = L59_1 L57_1[3] = L60_1 L56_1.rgb = L57_1 L57_1 = {} L57_1.name = "Black" L58_1 = {} L59_1 = 0 L60_1 = 0 L61_1 = 0 L58_1[1] = L59_1 L58_1[2] = L60_1 L58_1[3] = L61_1 L57_1.rgb = L58_1 L58_1 = {} L58_1.name = "Red" L59_1 = {} L60_1 = 255 L61_1 = 0 L62_1 = 0 L59_1[1] = L60_1 L59_1[2] = L61_1 L59_1[3] = L62_1 L58_1.rgb = L59_1 L59_1 = {} L59_1.name = "Green" L60_1 = {} L61_1 = 0 L62_1 = 128 L63_1 = 0 L60_1[1] = L61_1 L60_1[2] = L62_1 L60_1[3] = L63_1 L59_1.rgb = L60_1 L60_1 = {} L60_1.name = "Blue" L61_1 = {} L62_1 = 0 L63_1 = 0 L64_1 = 255 L61_1[1] = L62_1 L61_1[2] = L63_1 L61_1[3] = L64_1 L60_1.rgb = L61_1 L61_1 = {} L61_1.name = "Yellow" L62_1 = {} L63_1 = 255 L64_1 = 255 L65_1 = 0 L62_1[1] = L63_1 L62_1[2] = L64_1 L62_1[3] = L65_1 L61_1.rgb = L62_1 L62_1 = {} L62_1.name = "Purple" L63_1 = {} L64_1 = 128 L65_1 = 0 L66_1 = 128 L63_1[1] = L64_1 L63_1[2] = L65_1 L63_1[3] = L66_1 L62_1.rgb = L63_1 L63_1 = {} L63_1.name = "Orange" L64_1 = {} L65_1 = 255 L66_1 = 165 L67_1 = 0 L64_1[1] = L65_1 L64_1[2] = L66_1 L64_1[3] = L67_1 L63_1.rgb = L64_1 L55_1[1] = L56_1 L55_1[2] = L57_1 L55_1[3] = L58_1 L55_1[4] = L59_1 L55_1[5] = L60_1 L55_1[6] = L61_1 L55_1[7] = L62_1 L55_1[8] = L63_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = nil L2_2 = math L2_2 = L2_2.huge L3_2 = ipairs L4_2 = L55_1 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L54_1 L10_2 = A0_2 L11_2 = L8_2.rgb L9_2 = L9_2(L10_2, L11_2) if L2_2 > L9_2 then L2_2 = L9_2 L1_2 = L8_2.name end end L3_2 = L1_2 or L3_2 if not L1_2 then L3_2 = "Unknown" end return L3_2 end ColorToName = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = Config L2_2 = L2_2.DebugMode if L2_2 then L2_2 = print L3_2 = "get bolos" L4_2 = A0_2 L5_2 = A1_2 L2_2(L3_2, L4_2, L5_2) end if not A0_2 or not A1_2 then L2_2 = {} return L2_2 end L2_2 = os L2_2 = L2_2.time L2_2 = L2_2() L3_2 = Config L3_2 = L3_2.BOLODuration L3_2 = L3_2 * 24 L3_2 = L3_2 * 60 L3_2 = L3_2 * 60 L4_2 = {} L5_2 = L17_1 L6_2 = L17_1 L6_2 = L6_2[A1_2] if not L6_2 then L6_2 = {} end L5_2[A1_2] = L6_2 L5_2 = Config L5_2 = L5_2.DebugMode if L5_2 then L5_2 = print L6_2 = "boloCache" L7_2 = json L7_2 = L7_2.encode L8_2 = L17_1 L9_2 = {} L9_2.indent = true L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L7_2(L8_2, L9_2) L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L5_2 = L17_1 L5_2 = L5_2[A1_2] L5_2 = L5_2[A0_2] L6_2 = Config L6_2 = L6_2.DebugMode if L6_2 then L6_2 = print L7_2 = "plateData" L8_2 = json L8_2 = L8_2.encode L9_2 = L5_2 L10_2 = {} L10_2.indent = true L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2, L10_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end if not L5_2 then L6_2 = {} return L6_2 end L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = Config L12_2 = L12_2.DebugMode if L12_2 then L12_2 = print L13_2 = "v" L14_2 = json L14_2 = L14_2.encode L15_2 = L11_2 L16_2 = {} L16_2.indent = true L14_2, L15_2, L16_2 = L14_2(L15_2, L16_2) L12_2(L13_2, L14_2, L15_2, L16_2) end L12_2 = L11_2.date if L12_2 then L12_2 = L11_2.date L12_2 = L2_2 - L12_2 if L3_2 >= L12_2 then L12_2 = #L4_2 L12_2 = L12_2 + 1 L13_2 = {} L14_2 = L11_2.id L13_2.id = L14_2 L14_2 = L11_2.title L13_2.title = L14_2 L14_2 = L11_2.isReport L13_2.isReport = L14_2 L14_2 = L11_2.date L14_2 = L14_2 + L3_2 L14_2 = L14_2 * 1000 L13_2.expires = L14_2 L4_2[L12_2] = L13_2 end end end L6_2 = Config L6_2 = L6_2.DebugMode if L6_2 then L6_2 = print L7_2 = "bolos" L8_2 = json L8_2 = L8_2.encode L9_2 = L4_2 L10_2 = {} L10_2.indent = true L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2, L10_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end return L4_2 end GetBOLOsByPlate = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L2_2 = os L2_2 = L2_2.time L2_2 = L2_2() L3_2 = Config L3_2 = L3_2.WarrantDuration L3_2 = L3_2 * 24 L3_2 = L3_2 * 60 L3_2 = L3_2 * 60 L4_2 = {} L5_2 = L18_1 L6_2 = L18_1 L6_2 = L6_2[A1_2] if not L6_2 then L6_2 = {} end L5_2[A1_2] = L6_2 L5_2 = L18_1 L5_2 = L5_2[A1_2] L5_2 = L5_2[A0_2] if not L5_2 then L6_2 = {} return L6_2 end L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = L11_2.date L12_2 = L2_2 - L12_2 if L3_2 >= L12_2 then L12_2 = #L4_2 L12_2 = L12_2 + 1 L13_2 = {} L14_2 = L11_2.incidentId L13_2.incidentId = L14_2 L14_2 = L11_2.incidentTitle L13_2.incidentTitle = L14_2 L14_2 = L11_2.date L14_2 = L14_2 + L3_2 L14_2 = L14_2 * 1000 L13_2.expires = L14_2 L4_2[L12_2] = L13_2 end end return L4_2 end GetWarrantsByIdentifier = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L2_2 = MySQL L2_2 = L2_2.Async L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_vehicles (plate, image, notes, tags, photos, page) VALUES (?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE image = VALUES(image), notes = VALUES(notes), tags = VALUES(tags), photos = VALUES(photos) ]] L4_2 = {} L5_2 = A0_2.plate L6_2 = A0_2.image L7_2 = A0_2.notes L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.sideBarData L9_2 = L9_2.tags L8_2 = L8_2(L9_2) L9_2 = json L9_2 = L9_2.encode L10_2 = A0_2.sideBarData L10_2 = L10_2.photos L9_2 = L9_2(L10_2) L10_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L4_2[5] = L9_2 L4_2[6] = L10_2 L2_2(L3_2, L4_2) end SaveVehicle = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L2_2 = MySQL L2_2 = L2_2.Async L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_properties (id, image, notes, tags, linkedProfiles, photos, page) VALUES (?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE image = VALUES(image), notes = VALUES(notes), tags = VALUES(tags), linkedProfiles = VALUES(linkedProfiles), photos = VALUES(photos) ]] L4_2 = {} L5_2 = A0_2.id L6_2 = A0_2.image L7_2 = A0_2.notes L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.sideBarData L9_2 = L9_2.tags L8_2 = L8_2(L9_2) L9_2 = json L9_2 = L9_2.encode L10_2 = A0_2.sideBarData L10_2 = L10_2.linkedProfiles L9_2 = L9_2(L10_2) L10_2 = json L10_2 = L10_2.encode L11_2 = A0_2.sideBarData L11_2 = L11_2.photos L10_2 = L10_2(L11_2) L11_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L4_2[5] = L9_2 L4_2[6] = L10_2 L4_2[7] = L11_2 L2_2(L3_2, L4_2) end SaveProperty = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L2_2 = MySQL L2_2 = L2_2.Async L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_businesses (name, image, notes, photos, page) VALUES (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE image = VALUES(image), notes = VALUES(notes), photos = VALUES(photos) ]] L4_2 = {} L5_2 = A0_2.name L6_2 = A0_2.image L7_2 = A0_2.notes L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.sideBarData L9_2 = L9_2.photos L8_2 = L8_2(L9_2) L9_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L4_2[5] = L9_2 L2_2(L3_2, L4_2) end SaveBusiness = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT notes, photos FROM tk_mdt_businesses WHERE name = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if not L2_2 then L2_2 = {} end L3_2 = GetEmployeesByBusiness L4_2 = A0_2 L3_2 = L3_2(L4_2) if not L3_2 then L3_2 = {} end L2_2.employees = L3_2 return L2_2 end GetBusiness = L56_1 function L56_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, title, creator, date, employees, criminals, civilians, tags, page FROM tk_mdt_incidents ]] L0_2 = L0_2(L1_2) L1_2 = ipairs L2_2 = L0_2 L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = {} L8_2 = L6_2.tags if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.tags L8_2 = L8_2(L9_2) if L8_2 then goto lbl_23 end end L8_2 = {} ::lbl_23:: L7_2.tags = L8_2 L8_2 = L6_2.employees if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.employees L8_2 = L8_2(L9_2) if L8_2 then goto lbl_35 end end L8_2 = {} ::lbl_35:: L7_2.employees = L8_2 L8_2 = L6_2.criminals if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.criminals L8_2 = L8_2(L9_2) if L8_2 then goto lbl_47 end end L8_2 = {} ::lbl_47:: L7_2.criminals = L8_2 L8_2 = L6_2.civilians if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.civilians L8_2 = L8_2(L9_2) if L8_2 then goto lbl_59 end end L8_2 = {} ::lbl_59:: L7_2.civilians = L8_2 L6_2.sideBarData = L7_2 L6_2.tags = nil L6_2.employees = nil L6_2.criminals = nil L6_2.civilians = nil L7_2 = pairs L8_2 = L6_2.sideBarData L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = type L14_2 = L12_2 L13_2 = L13_2(L14_2) if "table" ~= L13_2 then L13_2 = {} L12_2 = L13_2 end end end return L0_2 end GetIncidents = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2 L1_2 = string L1_2 = L1_2.format L2_2 = "%%%s%%%s%%%s%%" L3_2 = "\"id\":" L4_2 = A0_2 L5_2 = "\"" L1_2 = L1_2(L2_2, L3_2, L4_2, L5_2) L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id, name, image FROM tk_mdt_evidence WHERE linkedIncidents LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end GetEvidenceByIncidentId = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT creator, content, tags, employees, criminals, civilians, vehicles, evidence, weapons, linkedIncidents, linkedReports, linkedPoliceReports, photos FROM tk_mdt_incidents WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if not L2_2 then L2_2 = {} end return L2_2 end GetIncident = L56_1 function L56_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2 L3_2 = A0_2 or nil if A0_2 then L3_2 = GetIdentifier L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2 = L4_2(L5_2) L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2) end if L3_2 then L4_2 = GetCharName L5_2 = L3_2 L4_2 = L4_2(L5_2) if L4_2 then goto lbl_18 end end L4_2 = _U L5_2 = "unknown" L4_2 = L4_2(L5_2) ::lbl_18:: L5_2 = A1_2 if L5_2 then L5_2 = L5_2.title end if not L5_2 then L5_2 = _U L6_2 = "new_incident" L5_2 = L5_2(L6_2) end if L3_2 then L6_2 = {} L7_2 = {} L7_2.identifier = L3_2 L7_2.name = L4_2 L6_2[1] = L7_2 if L6_2 then goto lbl_40 end end L6_2 = {} ::lbl_40:: L7_2 = A1_2 if L7_2 then L7_2 = L7_2.content end if not L7_2 then L7_2 = Config L7_2 = L7_2.MDTs L7_2 = L7_2[A2_2] if L7_2 then L7_2 = L7_2.templates end if L7_2 then L7_2 = L7_2.incident end end L8_2 = A1_2 if L8_2 then L8_2 = L8_2.criminals end L9_2 = A1_2 if L9_2 then L9_2 = L9_2.civilians end L10_2 = A1_2 if L10_2 then L10_2 = L10_2.vehicles end L11_2 = MySQL L11_2 = L11_2.Sync L11_2 = L11_2.insert L12_2 = [[ INSERT INTO tk_mdt_incidents (date, creator, title, employees, content, criminals, civilians, vehicles, page) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ]] L13_2 = {} L14_2 = os L14_2 = L14_2.time L14_2 = L14_2() L15_2 = L4_2 L16_2 = L5_2 L17_2 = json L17_2 = L17_2.encode L18_2 = L6_2 L17_2 = L17_2(L18_2) L18_2 = L7_2 L19_2 = L8_2 or L19_2 if L8_2 then L19_2 = json L19_2 = L19_2.encode L20_2 = L8_2 L19_2 = L19_2(L20_2) end L20_2 = L9_2 or L20_2 if L9_2 then L20_2 = json L20_2 = L20_2.encode L21_2 = L9_2 L20_2 = L20_2(L21_2) end L21_2 = L10_2 or L21_2 if L10_2 then L21_2 = json L21_2 = L21_2.encode L22_2 = L10_2 L21_2 = L21_2(L22_2) end L22_2 = A2_2 L13_2[1] = L14_2 L13_2[2] = L15_2 L13_2[3] = L16_2 L13_2[4] = L17_2 L13_2[5] = L18_2 L13_2[6] = L19_2 L13_2[7] = L20_2 L13_2[8] = L21_2 L13_2[9] = L22_2 L11_2 = L11_2(L12_2, L13_2) L12_2 = Config L12_2 = L12_2.DebugMode if L12_2 then L12_2 = print L13_2 = "incidentId" L14_2 = L11_2 L12_2(L13_2, L14_2) end if not L11_2 then return end L12_2 = Config L12_2 = L12_2.DebugMode if L12_2 then L12_2 = print L13_2 = "returning" L12_2(L13_2) end L12_2 = {} L12_2.id = L11_2 L12_2.title = L5_2 L12_2.creator = L4_2 L13_2 = os L13_2 = L13_2.time L13_2 = L13_2() L12_2.date = L13_2 L12_2.content = L7_2 L13_2 = {} L14_2 = {} L13_2.tags = L14_2 L14_2 = L8_2 or L14_2 if not L8_2 then L14_2 = {} end L13_2.criminals = L14_2 L13_2.employees = L6_2 L14_2 = {} L13_2.civilians = L14_2 L14_2 = L10_2 or L14_2 if not L10_2 then L14_2 = {} end L13_2.vehicles = L14_2 L14_2 = {} L13_2.evidence = L14_2 L14_2 = {} L13_2.weapons = L14_2 L14_2 = {} L13_2.linkedIncidents = L14_2 L14_2 = {} L13_2.linkedReports = L14_2 L14_2 = {} L13_2.linkedPoliceReports = L14_2 L14_2 = {} L13_2.photos = L14_2 L12_2.sideBarData = L13_2 return L12_2 end CreateIncident = L56_1 function L56_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, title, date, report_type as reportType, tags, employees, suspects, civilians, page FROM tk_mdt_reports ]] L0_2 = L0_2(L1_2) L1_2 = ipairs L2_2 = L0_2 L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = {} L8_2 = L6_2.tags if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.tags L8_2 = L8_2(L9_2) if L8_2 then goto lbl_23 end end L8_2 = {} ::lbl_23:: L7_2.tags = L8_2 L8_2 = L6_2.employees if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.employees L8_2 = L8_2(L9_2) if L8_2 then goto lbl_35 end end L8_2 = {} ::lbl_35:: L7_2.employees = L8_2 L8_2 = L6_2.suspects if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.suspects L8_2 = L8_2(L9_2) if L8_2 then goto lbl_47 end end L8_2 = {} ::lbl_47:: L7_2.suspects = L8_2 L8_2 = L6_2.civilians if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.civilians L8_2 = L8_2(L9_2) if L8_2 then goto lbl_59 end end L8_2 = {} ::lbl_59:: L7_2.civilians = L8_2 L6_2.sideBarData = L7_2 L6_2.tags = nil L6_2.employees = nil L6_2.suspects = nil L6_2.civilians = nil L7_2 = pairs L8_2 = L6_2.sideBarData L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = type L14_2 = L12_2 L13_2 = L13_2(L14_2) if "table" ~= L13_2 then L13_2 = {} L12_2 = L13_2 end end end return L0_2 end GetReports = L56_1 function L56_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 L3_2 = GetIdentifier L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L4_2(L5_2) L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) L4_2 = GetCharName L5_2 = L3_2 L4_2 = L4_2(L5_2) L5_2 = _U L6_2 = "new_report" L5_2 = L5_2(L6_2) L6_2 = {} L7_2 = {} L7_2.identifier = L3_2 L7_2.name = L4_2 L6_2[1] = L7_2 L7_2 = A2_2 if L7_2 then L7_2 = L7_2.reportType end L8_2 = Config L8_2 = L8_2.MDTs L8_2 = L8_2[A1_2] if L8_2 then L8_2 = L8_2.templates end L9_2 = type L10_2 = L8_2 L9_2 = L9_2(L10_2) if "table" == L9_2 then L9_2 = L8_2[L7_2] if L9_2 then goto lbl_41 end L9_2 = L8_2.report if L9_2 then goto lbl_41 end end L9_2 = nil ::lbl_41:: L10_2 = MySQL L10_2 = L10_2.Sync L10_2 = L10_2.insert L11_2 = [[ INSERT INTO tk_mdt_reports (date, creator, title, report_type, employees, content, page) VALUES (?, ?, ?, ?, ?, ?, ?) ]] L12_2 = {} L13_2 = os L13_2 = L13_2.time L13_2 = L13_2() L14_2 = L4_2 L15_2 = L5_2 L16_2 = L7_2 L17_2 = json L17_2 = L17_2.encode L18_2 = L6_2 L17_2 = L17_2(L18_2) L18_2 = L9_2 L19_2 = A1_2 L12_2[1] = L13_2 L12_2[2] = L14_2 L12_2[3] = L15_2 L12_2[4] = L16_2 L12_2[5] = L17_2 L12_2[6] = L18_2 L12_2[7] = L19_2 L10_2 = L10_2(L11_2, L12_2) if not L10_2 then return end L11_2 = {} L11_2.id = L10_2 L11_2.title = L5_2 L11_2.creator = L4_2 L12_2 = os L12_2 = L12_2.time L12_2 = L12_2() L11_2.date = L12_2 L11_2.content = L9_2 L11_2.reportType = L7_2 L12_2 = {} L13_2 = {} L12_2.tags = L13_2 L13_2 = {} L12_2.suspects = L13_2 L12_2.employees = L6_2 L13_2 = {} L12_2.civilians = L13_2 L13_2 = {} L12_2.vehicles = L13_2 L13_2 = {} L12_2.evidence = L13_2 L13_2 = {} L12_2.weapons = L13_2 L13_2 = {} L12_2.linkedIncidents = L13_2 L13_2 = {} L12_2.linkedReports = L13_2 L13_2 = {} L12_2.linkedPoliceReports = L13_2 L13_2 = {} L12_2.photos = L13_2 L11_2.sideBarData = L12_2 return L11_2 end CreateReport = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT content, data FROM tk_mdt_training_reports WHERE id = ? ]] L4_2 = {} L5_2 = A0_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = L2_2[1] if not L3_2 then L3_2 = {} end L4_2 = json L4_2 = L4_2.decode L5_2 = L3_2.data L4_2 = L4_2(L5_2) if not L4_2 then L4_2 = {} end L3_2.data = L4_2 L4_2 = {} L5_2 = L28_1 L6_2 = A1_2 L7_2 = "trainingReports" L5_2 = L5_2(L6_2, L7_2) L6_2 = Config L6_2 = L6_2.MDTs L6_2 = L6_2[A1_2] L6_2 = L6_2.pages L6_2 = L6_2[L5_2] L6_2 = L6_2.sidebar L7_2 = pairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L4_2[L12_2] = 50 end L7_2 = pairs L8_2 = L3_2.data L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = L12_2 or L13_2 if not L12_2 then L13_2 = 50 end L4_2[L11_2] = L13_2 end L7_2 = {} L8_2 = L3_2.content L7_2.content = L8_2 L7_2.sideBarData = L4_2 return L7_2 end GetTrainingReport = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L1_2 = pairs L2_2 = Config L2_2 = L2_2.MDTs L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = Config L7_2 = L7_2.DebugMode if L7_2 then L7_2 = print L8_2 = "get jobs5" L9_2 = L5_2 L7_2(L8_2, L9_2) end L7_2 = type L8_2 = L6_2.jobs L7_2 = L7_2(L8_2) if "table" == L7_2 then L7_2 = L6_2.jobs L7_2 = L7_2[A0_2] if L7_2 then return L5_2 end end end L1_2 = nil return L1_2 end GetMDTPageByJob = L56_1 function L56_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 L3_2 = GetIdentifier L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L4_2(L5_2) L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2) L4_2 = GetCharName L5_2 = L3_2 L4_2 = L4_2(L5_2) L5_2 = _U L6_2 = "new_training_report" L5_2 = L5_2(L6_2) L6_2 = Config L6_2 = L6_2.MDTs L6_2 = L6_2[A2_2] if L6_2 then L6_2 = L6_2.templates end if L6_2 then L6_2 = L6_2.trainingReport end L7_2 = MySQL L7_2 = L7_2.Sync L7_2 = L7_2.insert L8_2 = [[ INSERT INTO tk_mdt_training_reports (date, creator, title, trainee, content, page) VALUES (?, ?, ?, ?, ?, ?) ]] L9_2 = {} L10_2 = os L10_2 = L10_2.time L10_2 = L10_2() L11_2 = L4_2 L12_2 = L5_2 L13_2 = A1_2 L14_2 = L6_2 L15_2 = A2_2 L9_2[1] = L10_2 L9_2[2] = L11_2 L9_2[3] = L12_2 L9_2[4] = L13_2 L9_2[5] = L14_2 L9_2[6] = L15_2 L7_2 = L7_2(L8_2, L9_2) if not L7_2 then return end L8_2 = {} L9_2 = L28_1 L10_2 = A2_2 L11_2 = "trainingReports" L9_2 = L9_2(L10_2, L11_2) L10_2 = Config L10_2 = L10_2.MDTs L10_2 = L10_2[A2_2] L10_2 = L10_2.pages L10_2 = L10_2[L9_2] L10_2 = L10_2.sidebar L11_2 = pairs L12_2 = L10_2 L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2) for L15_2, L16_2 in L11_2, L12_2, L13_2, L14_2 do L8_2[L16_2] = 50 end L11_2 = {} L11_2.id = L7_2 L11_2.title = L5_2 L11_2.creator = L4_2 L12_2 = GetCharName L13_2 = A1_2 L12_2 = L12_2(L13_2) L11_2.trainee = L12_2 L12_2 = os L12_2 = L12_2.time L12_2 = L12_2() L11_2.date = L12_2 L11_2.content = L6_2 L11_2.sideBarData = L8_2 return L11_2 end CreateTrainingReport = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L1_2 = {} L2_2 = pairs L3_2 = A0_2.sideBarData L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = type L9_2 = L7_2 L8_2 = L8_2(L9_2) if "number" == L8_2 then L1_2[L6_2] = L7_2 end end L2_2 = MySQL L2_2 = L2_2.Async L2_2 = L2_2.execute L3_2 = [[ UPDATE tk_mdt_training_reports SET title = ?, content = ?, data = ? WHERE id = ? ]] L4_2 = {} L5_2 = A0_2.title L6_2 = A0_2.content L7_2 = json L7_2 = L7_2.encode L8_2 = L1_2 L7_2 = L7_2(L8_2) L8_2 = A0_2.id L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L2_2(L3_2, L4_2) end SaveTrainingReport = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L1_2 = MySQL L1_2 = L1_2.Async L1_2 = L1_2.execute L2_2 = [[ UPDATE tk_mdt_police_reports SET tags = ?, linkedIncidents = ?, linkedReports = ? WHERE id = ? ]] L3_2 = {} L4_2 = json L4_2 = L4_2.encode L5_2 = A0_2.sideBarData L5_2 = L5_2.tags L4_2 = L4_2(L5_2) L5_2 = json L5_2 = L5_2.encode L6_2 = A0_2.sideBarData L6_2 = L6_2.linkedIncidents L5_2 = L5_2(L6_2) L6_2 = json L6_2 = L6_2.encode L7_2 = A0_2.sideBarData L7_2 = L7_2.linkedReports L6_2 = L6_2(L7_2) L7_2 = A0_2.id L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L3_2[4] = L7_2 L1_2(L2_2, L3_2) end SavePoliceReport = L56_1 function L56_1() local L0_2, L1_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, title, date, creator, page FROM tk_mdt_police_reports ]] L0_2 = L0_2(L1_2) return L0_2 end GetPoliceReports = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT phoneNumber, content, tags, linkedIncidents, linkedReports FROM tk_mdt_police_reports WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if not L2_2 then L2_2 = {} end return L2_2 end GetPoliceReport = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.insert L3_2 = [[ INSERT INTO tk_mdt_police_reports (date, title, creator, phoneNumber, content, page) VALUES (?, ?, ?, ?, ?, ?) ]] L4_2 = {} L5_2 = os L5_2 = L5_2.time L5_2 = L5_2() L6_2 = A0_2.title L7_2 = A0_2.creator L8_2 = A0_2.phoneNumber L9_2 = A0_2.content L10_2 = A1_2 or L10_2 if not A1_2 then L10_2 = "police" end L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L4_2[5] = L9_2 L4_2[6] = L10_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end CreatePoliceReport = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_incidents WHERE evidence LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = pairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetIncidentsByEvidenceId = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_reports WHERE evidence LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = pairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetReportsByEvidenceId = L56_1 function L56_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, name, date, creator, image, tags, page FROM tk_mdt_evidence ]] L0_2 = L0_2(L1_2) L1_2 = ipairs L2_2 = L0_2 L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = {} L8_2 = L6_2.tags if L8_2 then L8_2 = json L8_2 = L8_2.decode L9_2 = L6_2.tags L8_2 = L8_2(L9_2) if L8_2 then goto lbl_23 end end L8_2 = {} ::lbl_23:: L7_2.tags = L8_2 L6_2.sideBarData = L7_2 L6_2.tags = nil L7_2 = pairs L8_2 = L6_2.sideBarData L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = type L14_2 = L12_2 L13_2 = L13_2(L14_2) if "table" ~= L13_2 then L13_2 = {} L12_2 = L13_2 end end end return L0_2 end GetEvidence = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT notes, tags FROM tk_mdt_evidence WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if not L2_2 then L2_2 = {} end L3_2 = GetIncidentsByEvidenceId L4_2 = A0_2 L3_2 = L3_2(L4_2) L2_2.linkedIncidents = L3_2 L3_2 = GetReportsByEvidenceId L4_2 = A0_2 L3_2 = L3_2(L4_2) L2_2.linkedReports = L3_2 return L2_2 end GetEvidenceItem = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L1_2 = MySQL L1_2 = L1_2.Async L1_2 = L1_2.execute L2_2 = [[ UPDATE tk_mdt_evidence SET name = ?, image = ?, notes = ?, tags = ? WHERE id = ? ]] L3_2 = {} L4_2 = A0_2.name L5_2 = A0_2.image L6_2 = A0_2.notes L7_2 = json L7_2 = L7_2.encode L8_2 = A0_2.sideBarData L8_2 = L8_2.tags L7_2 = L7_2(L8_2) L8_2 = A0_2.id L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L3_2[4] = L7_2 L3_2[5] = L8_2 L1_2(L2_2, L3_2) end SaveEvidence = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L2_2 = GetIdentifier L3_2 = GetPlayerFromId L4_2 = A0_2 L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 = L3_2(L4_2) L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2) L3_2 = GetCharName L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = _U L5_2 = "new_evidence" L4_2 = L4_2(L5_2) L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.insert L6_2 = [[ INSERT INTO tk_mdt_evidence (date, creator, name, page) VALUES (?, ?, ?, ?) ]] L7_2 = {} L8_2 = os L8_2 = L8_2.time L8_2 = L8_2() L9_2 = L3_2 L10_2 = L4_2 L11_2 = A1_2 L7_2[1] = L8_2 L7_2[2] = L9_2 L7_2[3] = L10_2 L7_2[4] = L11_2 L5_2 = L5_2(L6_2, L7_2) if not L5_2 then return end L6_2 = {} L6_2.id = L5_2 L6_2.name = L4_2 L6_2.creator = L3_2 L7_2 = os L7_2 = L7_2.time L7_2 = L7_2() L6_2.date = L7_2 L7_2 = {} L8_2 = {} L7_2.tags = L8_2 L8_2 = {} L7_2.linkedIncidents = L8_2 L8_2 = {} L7_2.linkedReports = L8_2 L6_2.sideBarData = L7_2 return L6_2 end CreateEvidence = L56_1 function L56_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, name, serial, date, owners, creator, image, tags, page FROM tk_mdt_weapons ]] L0_2 = L0_2(L1_2) L1_2 = ipairs L2_2 = L0_2 L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = L6_2.owners if L7_2 then L7_2 = json L7_2 = L7_2.decode L8_2 = L6_2.owners L7_2 = L7_2(L8_2) end L8_2 = {} L9_2 = L6_2.tags if L9_2 then L9_2 = json L9_2 = L9_2.decode L10_2 = L6_2.tags L9_2 = L9_2(L10_2) if L9_2 then goto lbl_30 end end L9_2 = {} ::lbl_30:: L8_2.tags = L9_2 L9_2 = type L10_2 = L7_2 L9_2 = L9_2(L10_2) L9_2 = L7_2 or L9_2 if "table" ~= L9_2 or not L7_2 then L9_2 = {} end L8_2.owners = L9_2 L6_2.sideBarData = L8_2 L6_2.tags = nil L6_2.owners = nil L8_2 = pairs L9_2 = L6_2.sideBarData L8_2, L9_2, L10_2, L11_2 = L8_2(L9_2) for L12_2, L13_2 in L8_2, L9_2, L10_2, L11_2 do L14_2 = type L15_2 = L13_2 L14_2 = L14_2(L15_2) if "table" ~= L14_2 then L14_2 = {} L13_2 = L14_2 end end end return L0_2 end GetWeapons = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_incidents WHERE weapons LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = pairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetIncidentsByWeaponId = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = "%" L2_2 = A0_2 L3_2 = "%" L1_2 = L1_2 .. L2_2 .. L3_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ SELECT id FROM tk_mdt_reports WHERE weapons LIKE ? ]] L4_2 = {} L5_2 = L1_2 L4_2[1] = L5_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = {} L4_2 = pairs L5_2 = L2_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = #L3_2 L10_2 = L10_2 + 1 L11_2 = L9_2.id L3_2[L10_2] = L11_2 end return L3_2 end GetReportsByWeaponId = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT serial, notes, owners, tags FROM tk_mdt_weapons WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if not L2_2 then L2_2 = {} end L3_2 = GetIncidentsByWeaponId L4_2 = A0_2 L3_2 = L3_2(L4_2) L2_2.linkedIncidents = L3_2 L3_2 = GetReportsByWeaponId L4_2 = A0_2 L3_2 = L3_2(L4_2) L2_2.linkedReports = L3_2 return L2_2 end GetWeapon = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L1_2 = MySQL L1_2 = L1_2.Async L1_2 = L1_2.execute L2_2 = [[ UPDATE tk_mdt_weapons SET name = ?, image = ?, notes = ?, serial = ?, owners = ?, tags = ? WHERE id = ? ]] L3_2 = {} L4_2 = A0_2.name L5_2 = A0_2.image L6_2 = A0_2.notes L7_2 = A0_2.serial L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.sideBarData L9_2 = L9_2.owners L8_2 = L8_2(L9_2) L9_2 = json L9_2 = L9_2.encode L10_2 = A0_2.sideBarData L10_2 = L10_2.tags L9_2 = L9_2(L10_2) L10_2 = A0_2.id L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L3_2[4] = L7_2 L3_2[5] = L8_2 L3_2[6] = L9_2 L3_2[7] = L10_2 L1_2(L2_2, L3_2) end SaveWeapon = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L2_2 = GetIdentifier L3_2 = GetPlayerFromId L4_2 = A0_2 L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 = L3_2(L4_2) L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2) L3_2 = GetCharName L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = _U L5_2 = "new_weapon" L4_2 = L4_2(L5_2) L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.insert L6_2 = [[ INSERT INTO tk_mdt_weapons (date, creator, name, page) VALUES (?, ?, ?, ?) ]] L7_2 = {} L8_2 = os L8_2 = L8_2.time L8_2 = L8_2() L9_2 = L3_2 L10_2 = L4_2 L11_2 = A1_2 L7_2[1] = L8_2 L7_2[2] = L9_2 L7_2[3] = L10_2 L7_2[4] = L11_2 L5_2 = L5_2(L6_2, L7_2) if not L5_2 then return end L6_2 = {} L6_2.id = L5_2 L6_2.name = L4_2 L6_2.creator = L3_2 L7_2 = os L7_2 = L7_2.time L7_2 = L7_2() L6_2.date = L7_2 L7_2 = {} L8_2 = {} L7_2.owners = L8_2 L8_2 = {} L7_2.tags = L8_2 L8_2 = {} L7_2.linkedIncidents = L8_2 L8_2 = {} L7_2.linkedReports = L8_2 L6_2.sideBarData = L7_2 return L6_2 end CreateWeapon = L56_1 function L56_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 L0_2 = type L1_2 = Config L1_2 = L1_2.Charges L0_2 = L0_2(L1_2) if "table" == L0_2 then L0_2 = ipairs L1_2 = Config L1_2 = L1_2.Charges L0_2, L1_2, L2_2, L3_2 = L0_2(L1_2) for L4_2, L5_2 in L0_2, L1_2, L2_2, L3_2 do L6_2 = MySQL L6_2 = L6_2.Sync L6_2 = L6_2.fetchScalar L7_2 = [[ SELECT id FROM tk_mdt_charges WHERE name = ? ]] L8_2 = {} L9_2 = L5_2.name L8_2[1] = L9_2 L6_2 = L6_2(L7_2, L8_2) if not L6_2 then L7_2 = MySQL L7_2 = L7_2.Sync L7_2 = L7_2.insert L8_2 = [[ INSERT INTO tk_mdt_charges (name, class, description, fine, sentence, points, color, page) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ]] L9_2 = {} L10_2 = L5_2.name L11_2 = L5_2.class L12_2 = L5_2.description L13_2 = json L13_2 = L13_2.encode L14_2 = L5_2.fine L13_2 = L13_2(L14_2) L14_2 = json L14_2 = L14_2.encode L15_2 = L5_2.sentence L14_2 = L14_2(L15_2) L15_2 = L5_2.points if not L15_2 then L15_2 = 0 end L16_2 = L5_2.color L17_2 = L5_2.page if not L17_2 then L17_2 = "police" end L9_2[1] = L10_2 L9_2[2] = L11_2 L9_2[3] = L12_2 L9_2[4] = L13_2 L9_2[5] = L14_2 L9_2[6] = L15_2 L9_2[7] = L16_2 L9_2[8] = L17_2 L7_2(L8_2, L9_2) end end end L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT * FROM tk_mdt_charges ]] L0_2 = L0_2(L1_2) L1_2 = L0_2 or L1_2 if not L0_2 then L1_2 = {} end L2_2 = pairs L3_2 = L1_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.id if L8_2 then L8_2 = L7_2.name if L8_2 then L8_2 = L7_2.class if L8_2 then goto lbl_81 end end end L8_2 = table L8_2 = L8_2.remove L9_2 = L1_2 L10_2 = L6_2 L8_2(L9_2, L10_2) ::lbl_81:: L8_2 = json L8_2 = L8_2.decode L9_2 = L7_2.fine L8_2 = L8_2(L9_2) if not L8_2 then L8_2 = {} end L7_2.fine = L8_2 L8_2 = json L8_2 = L8_2.decode L9_2 = L7_2.sentence L8_2 = L8_2(L9_2) if not L8_2 then L8_2 = {} end L7_2.sentence = L8_2 L8_2 = type L9_2 = L7_2.fine L8_2 = L8_2(L9_2) if "table" ~= L8_2 then L8_2 = {} L8_2.default = 0 L8_2.min = 0 L8_2.max = 0 L7_2.fine = L8_2 end L8_2 = type L9_2 = L7_2.sentence L8_2 = L8_2(L9_2) if "table" ~= L8_2 then L8_2 = {} L8_2.default = 0 L8_2.min = 0 L8_2.max = 0 L7_2.sentence = L8_2 end L8_2 = L7_2.fine if L8_2 then L8_2 = L8_2.default end if not L8_2 then L8_2 = L7_2.fine L8_2.default = 0 end L8_2 = L7_2.fine if L8_2 then L8_2 = L8_2.min end if not L8_2 then L8_2 = L7_2.fine L8_2.min = 0 end L8_2 = L7_2.fine if L8_2 then L8_2 = L8_2.max end if not L8_2 then L8_2 = L7_2.fine L8_2.max = 0 end L8_2 = L7_2.sentence if L8_2 then L8_2 = L8_2.default end if not L8_2 then L8_2 = L7_2.sentence L8_2.default = 0 end L8_2 = L7_2.sentence if L8_2 then L8_2 = L8_2.min end if not L8_2 then L8_2 = L7_2.sentence L8_2.min = 0 end L8_2 = L7_2.sentence if L8_2 then L8_2 = L8_2.max end if not L8_2 then L8_2 = L7_2.sentence L8_2.max = 0 end end return L1_2 end GetCharges = L56_1 function L56_1() local L0_2, L1_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, name, date, page FROM tk_mdt_legislation ]] L0_2 = L0_2(L1_2) return L0_2 end GetLaws = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L2_2 = A0_2.name if L2_2 then L2_2 = A0_2.class if L2_2 then goto lbl_8 end end do return end ::lbl_8:: L2_2 = type L3_2 = A0_2.fine L2_2 = L2_2(L3_2) if "table" ~= L2_2 then L2_2 = {} L2_2.default = 0 L2_2.min = 0 L2_2.max = 0 A0_2.fine = L2_2 end L2_2 = type L3_2 = A0_2.sentence L2_2 = L2_2(L3_2) if "table" ~= L2_2 then L2_2 = {} L2_2.default = 0 L2_2.min = 0 L2_2.max = 0 A0_2.sentence = L2_2 end L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.insert L3_2 = [[ INSERT INTO tk_mdt_charges (name, class, description, fine, sentence, points, color, page) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ]] L4_2 = {} L5_2 = A0_2.name L6_2 = A0_2.class L7_2 = A0_2.description L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.fine L8_2 = L8_2(L9_2) L9_2 = json L9_2 = L9_2.encode L10_2 = A0_2.sentence L9_2 = L9_2(L10_2) L10_2 = A0_2.points L11_2 = A0_2.color L12_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L4_2[5] = L9_2 L4_2[6] = L10_2 L4_2[7] = L11_2 L4_2[8] = L12_2 L2_2 = L2_2(L3_2, L4_2) if not L2_2 then return end L3_2 = {} L3_2.id = L2_2 L4_2 = A0_2.name L3_2.name = L4_2 L4_2 = A0_2.class L3_2.class = L4_2 L4_2 = A0_2.description L3_2.description = L4_2 L4_2 = A0_2.fine L3_2.fine = L4_2 L4_2 = A0_2.sentence L3_2.sentence = L4_2 L4_2 = A0_2.points L3_2.points = L4_2 L4_2 = A0_2.color L3_2.color = L4_2 return L3_2 end CreateCharge = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = A0_2.id if L1_2 then L1_2 = A0_2.name if L1_2 then L1_2 = A0_2.class if L1_2 then goto lbl_11 end end end do return end ::lbl_11:: L1_2 = type L2_2 = A0_2.fine L1_2 = L1_2(L2_2) if "table" ~= L1_2 then L1_2 = {} L1_2.default = 0 L1_2.min = 0 L1_2.max = 0 A0_2.fine = L1_2 end L1_2 = type L2_2 = A0_2.sentence L1_2 = L1_2(L2_2) if "table" ~= L1_2 then L1_2 = {} L1_2.default = 0 L1_2.min = 0 L1_2.max = 0 A0_2.sentence = L1_2 end L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.insert L2_2 = [[ UPDATE tk_mdt_charges SET name = ?, class = ?, description = ?, fine = ?, sentence = ?, points = ?, color = ? WHERE id = ? ]] L3_2 = {} L4_2 = A0_2.name L5_2 = A0_2.class L6_2 = A0_2.description L7_2 = json L7_2 = L7_2.encode L8_2 = A0_2.fine L7_2 = L7_2(L8_2) L8_2 = json L8_2 = L8_2.encode L9_2 = A0_2.sentence L8_2 = L8_2(L9_2) L9_2 = A0_2.points L10_2 = A0_2.color L11_2 = A0_2.id L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L3_2[4] = L7_2 L3_2[5] = L8_2 L3_2[6] = L9_2 L3_2[7] = L10_2 L3_2[8] = L11_2 L1_2(L2_2, L3_2) end UpdateCharge = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.execute L2_2 = [[ DELETE FROM tk_mdt_charges WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2(L2_2, L3_2) end RemoveCharge = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.execute L2_2 = [[ DELETE FROM tk_mdt_legislation WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2(L2_2, L3_2) end RemoveLaw = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT description FROM tk_mdt_legislation WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if not L2_2 then L2_2 = {} end return L2_2 end GetLaw = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.insert L3_2 = [[ INSERT INTO tk_mdt_legislation (name, description, date, page) VALUES (?, ?, ?, ?) ]] L4_2 = {} L5_2 = A0_2.name L6_2 = A0_2.description L7_2 = os L7_2 = L7_2.time L7_2 = L7_2() L8_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L4_2[4] = L8_2 L2_2 = L2_2(L3_2, L4_2) if not L2_2 then return end L3_2 = {} L3_2.id = L2_2 L4_2 = A0_2.name L3_2.name = L4_2 L4_2 = A0_2.description L3_2.description = L4_2 L4_2 = os L4_2 = L4_2.time L4_2 = L4_2() L3_2.date = L4_2 return L3_2 end CreateLaw = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2 L1_2 = MySQL L1_2 = L1_2.Async L1_2 = L1_2.execute L2_2 = [[ UPDATE tk_mdt_legislation SET name = ?, description = ? WHERE id = ? ]] L3_2 = {} L4_2 = A0_2.name L5_2 = A0_2.description L6_2 = A0_2.id L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L1_2(L2_2, L3_2) end SaveLaw = L56_1 function L56_1() local L0_2, L1_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT id, message, date, creator, pinned, page FROM tk_mdt_announcements ]] L0_2 = L0_2(L1_2) return L0_2 end GetAnnouncements = L56_1 function L56_1() local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L0_2 = MySQL L0_2 = L0_2.Sync L0_2 = L0_2.fetchAll L1_2 = [[ SELECT data, page FROM tk_mdt_permissions ]] L0_2 = L0_2(L1_2) L1_2 = {} L2_2 = pairs L3_2 = L0_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.page L9_2 = json L9_2 = L9_2.decode L10_2 = L7_2.data L9_2 = L9_2(L10_2) L1_2[L8_2] = L9_2 end return L1_2 end GetPermissions = L56_1 function L56_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L3_2 = GetIdentifier L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L4_2(L5_2) L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L4_2 = GetCharName L5_2 = L3_2 L4_2 = L4_2(L5_2) L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.insert L6_2 = [[ INSERT INTO tk_mdt_announcements (date, creator, message, page) VALUES (?, ?, ?, ?) ]] L7_2 = {} L8_2 = os L8_2 = L8_2.time L8_2 = L8_2() L9_2 = L4_2 L10_2 = A1_2 L11_2 = A2_2 L7_2[1] = L8_2 L7_2[2] = L9_2 L7_2[3] = L10_2 L7_2[4] = L11_2 L5_2 = L5_2(L6_2, L7_2) if not L5_2 then return end L6_2 = L14_1 L6_2 = L6_2[A2_2] L7_2 = L14_1 L7_2 = L7_2[A2_2] L7_2 = #L7_2 L7_2 = L7_2 + 1 L8_2 = {} L8_2.id = L5_2 L8_2.message = A1_2 L9_2 = os L9_2 = L9_2.time L9_2 = L9_2() L8_2.date = L9_2 L8_2.creator = L4_2 L8_2.pinned = false L8_2.page = A2_2 L6_2[L7_2] = L8_2 L6_2 = jobPlayers L6_2 = L6_2[A2_2] if not L6_2 then L6_2 = {} end L7_2 = L32_1 L8_2 = {} L9_2 = GetIdentifier L10_2 = A0_2 L9_2 = L9_2(L10_2) L8_2.identifier = L9_2 L9_2 = GetCharName L10_2 = GetIdentifier L11_2 = A0_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L8_2.name = L9_2 L8_2.action = "create" L8_2.value = A1_2 L8_2.page = "home" L8_2.component = "announcements" L8_2.job = A2_2 L7_2(L8_2) L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = TriggerClientEvent L12_2 = "tk_mdt:addAnnouncement" L13_2 = L6_2[L10_2] L14_2 = {} L14_2.id = L5_2 L14_2.message = A1_2 L15_2 = os L15_2 = L15_2.time L15_2 = L15_2() L14_2.date = L15_2 L14_2.creator = L4_2 L15_2 = {} L15_2.identifier = L3_2 L15_2.name = L4_2 L14_2.logData = L15_2 L11_2(L12_2, L13_2, L14_2) end end CreateAnnouncement = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ UPDATE tk_mdt_announcements SET pinned = ? WHERE id = ? ]] L4_2 = {} L5_2 = A0_2.pinned L6_2 = A0_2.id L4_2[1] = L5_2 L4_2[2] = L6_2 L2_2(L3_2, L4_2) L2_2 = pairs L3_2 = L14_1 L3_2 = L3_2[A1_2] L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.id L9_2 = A0_2.id if L8_2 == L9_2 then L8_2 = A0_2.pinned L7_2.pinned = L8_2 break end end L2_2 = jobPlayers L2_2 = L2_2[A1_2] if not L2_2 then L2_2 = {} end L3_2 = 1 L4_2 = #L2_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = TriggerClientEvent L8_2 = "tk_mdt:toggleAnnouncementPin" L9_2 = L2_2[L6_2] L10_2 = {} L11_2 = A0_2.id L10_2.id = L11_2 L11_2 = A0_2.pinned L10_2.pinned = L11_2 L11_2 = A0_2.page L10_2.page = L11_2 L7_2(L8_2, L9_2, L10_2) end end ToggleAnnouncementPin = L56_1 function L56_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L3_2 = MySQL L3_2 = L3_2.Sync L3_2 = L3_2.execute L4_2 = [[ DELETE FROM tk_mdt_announcements WHERE id = ? ]] L5_2 = {} L6_2 = A1_2.id L5_2[1] = L6_2 L3_2(L4_2, L5_2) L3_2 = nil L4_2 = pairs L5_2 = L14_1 L5_2 = L5_2[A2_2] L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.id L11_2 = A1_2.id if L10_2 == L11_2 then L3_2 = L9_2.message L10_2 = table L10_2 = L10_2.remove L11_2 = L14_1 L11_2 = L11_2[A2_2] L12_2 = L8_2 L10_2(L11_2, L12_2) break end end L4_2 = GetIdentifier L5_2 = A0_2 L4_2 = L4_2(L5_2) L5_2 = {} L6_2 = A1_2.id L5_2.id = L6_2 L5_2.message = L3_2 L6_2 = {} L6_2.identifier = L4_2 L7_2 = GetCharName L8_2 = L4_2 L7_2 = L7_2(L8_2) L6_2.name = L7_2 L5_2.logData = L6_2 A1_2 = L5_2 L5_2 = L32_1 L6_2 = {} L6_2.identifier = L4_2 L7_2 = GetCharName L8_2 = L4_2 L7_2 = L7_2(L8_2) L6_2.name = L7_2 L6_2.action = "delete" L6_2.value = L3_2 L6_2.page = "home" L6_2.component = "announcements" L6_2.job = A2_2 L5_2(L6_2) L5_2 = jobPlayers L5_2 = L5_2[A2_2] if not L5_2 then L5_2 = {} end L6_2 = 1 L7_2 = #L5_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:removeAnnouncement" L12_2 = L5_2[L9_2] L13_2 = A1_2 L10_2(L11_2, L12_2, L13_2) end end RemoveAnnouncement = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_employees (identifier, image, page) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE image = VALUES(image) ]] L4_2 = {} L5_2 = A0_2.identifier L6_2 = A0_2.image L7_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end UpdateEmployeeImage = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_employees (identifier, callsign, page) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE callsign = VALUES(callsign) ]] L4_2 = {} L5_2 = A0_2.identifier L6_2 = A0_2.callsign L7_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end UpdateEmployeeCallsign = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_employees (identifier, status, page) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE status = VALUES(status) ]] L4_2 = {} L5_2 = A0_2.identifier L6_2 = A0_2.status L7_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end UpdateEmployeeStatus = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_employees (identifier, notes, page) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE notes = VALUES(notes) ]] L4_2 = {} L5_2 = A0_2.identifier L6_2 = A0_2.notes L7_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end UpdateEmployeeNotes = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.execute L3_2 = [[ INSERT INTO tk_mdt_employees (identifier, licenses, page) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE licenses = VALUES(licenses) ]] L4_2 = {} L5_2 = A0_2.identifier L6_2 = json L6_2 = L6_2.encode L7_2 = A0_2.licenses L6_2 = L6_2(L7_2) L7_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L4_2[3] = L7_2 L2_2 = L2_2(L3_2, L4_2) return L2_2 end UpdateEmployeeLicenses = L56_1 function L56_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = pairs L3_2 = A1_2 L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.identifier if L8_2 == A0_2 then return L6_2 end end return end GetEmployeeIndexByIdentifier = L56_1 function L56_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L1_2 = {} L2_2 = pairs L3_2 = Config L3_2 = L3_2.MDTs L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = pairs L9_2 = L7_2.pages L8_2, L9_2, L10_2, L11_2 = L8_2(L9_2) for L12_2, L13_2 in L8_2, L9_2, L10_2, L11_2 do L14_2 = L13_2.name if L14_2 == A0_2 then L14_2 = #L1_2 L14_2 = L14_2 + 1 L1_2[L14_2] = L6_2 end end end return L1_2 end function L57_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 L2_2 = Config L2_2 = L2_2.DebugMode if L2_2 then L2_2 = print L3_2 = "Registering character" L4_2 = A0_2 L5_2 = json L5_2 = L5_2.encode L6_2 = A1_2 L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L5_2(L6_2) L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end repeat L2_2 = Wait L3_2 = 5000 L2_2(L3_2) L2_2 = Config L2_2 = L2_2.DebugMode if L2_2 then L2_2 = print L3_2 = "waiting for player to exist" L4_2 = GetPlayerFromId L5_2 = A0_2 L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L4_2(L5_2) L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end L2_2 = GetPlayerFromId L3_2 = A0_2 L2_2 = L2_2(L3_2) until L2_2 L2_2 = GetPlayerFromId L3_2 = A0_2 L2_2 = L2_2(L3_2) L3_2 = GetIdentifier L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = Config L4_2 = L4_2.DebugMode if L4_2 then L4_2 = print L5_2 = "Registering character" L6_2 = A0_2 L7_2 = L3_2 L4_2(L5_2, L6_2, L7_2) end L4_2 = {} L5_2 = A1_2.identifier if not L5_2 then L5_2 = L3_2 end L4_2.identifier = L5_2 L5_2 = A1_2.name L4_2.name = L5_2 L5_2 = A1_2.dob L4_2.dob = L5_2 L5_2 = A1_2.fingerprint L4_2.fingerprint = L5_2 L5_2 = A1_2.image L4_2.image = L5_2 L5_2 = {} L6_2 = {} L5_2.warrants = L6_2 L6_2 = {} L5_2.tags = L6_2 L4_2.sideBarData = L5_2 L5_2 = {} L6_2 = _U L7_2 = "none" L6_2 = L6_2(L7_2) L5_2.identifier = L6_2 L6_2 = _U L7_2 = "automatically_registered" L6_2 = L6_2(L7_2) L5_2.name = L6_2 L4_2.logData = L5_2 L5_2 = L16_1.profiles if not L5_2 then L5_2 = {} end L16_1.profiles = L5_2 L5_2 = L16_1.profiles L6_2 = L16_1.profiles L6_2 = #L6_2 L6_2 = L6_2 + 1 L5_2[L6_2] = L4_2 L5_2 = L56_1 L6_2 = "profiles" L5_2 = L5_2(L6_2) L6_2 = pairs L7_2 = L5_2 L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2) for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do L12_2 = L32_1 L13_2 = {} L13_2.identifier = L3_2 L14_2 = _U L15_2 = "automatically_registered" L14_2 = L14_2(L15_2) L13_2.name = L14_2 L13_2.action = "create" L14_2 = A1_2.name L13_2.value = L14_2 L13_2.page = "profiles" L13_2.job = L11_2 L12_2(L13_2) L12_2 = type L13_2 = jobPlayers L13_2 = L13_2[L11_2] L12_2 = L12_2(L13_2) if "table" ~= L12_2 then L12_2 = jobPlayers L13_2 = {} L12_2[L11_2] = L13_2 end L12_2 = 1 L13_2 = jobPlayers L13_2 = L13_2[L11_2] L13_2 = #L13_2 L14_2 = 1 for L15_2 = L12_2, L13_2, L14_2 do L16_2 = TriggerClientEvent L17_2 = "tk_mdt:addProfile" L18_2 = jobPlayers L18_2 = L18_2[L11_2] L18_2 = L18_2[L15_2] L19_2 = L4_2 L16_2(L17_2, L18_2, L19_2) end end end RegisterCharacter = L57_1 function L57_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2 L2_2 = promise L3_2 = L2_2 L2_2 = L2_2.new L2_2 = L2_2(L3_2) L3_2 = TriggerCallback L4_2 = A0_2 L5_2 = "tk_mdt:getVehicleName" function L6_2(A0_3) local L1_3, L2_3, L3_3 L1_3 = L2_2 L2_3 = L1_3 L1_3 = L1_3.resolve L3_3 = A0_3 L1_3(L2_3, L3_3) end L7_2 = A1_2 L3_2(L4_2, L5_2, L6_2, L7_2) L3_2 = Citizen L3_2 = L3_2.Await L4_2 = L2_2 return L3_2(L4_2) end GetVehicleName = L57_1 function L57_1(A0_2, A1_2, A2_2, A3_2, A4_2) local L5_2, L6_2, L7_2, L8_2, L9_2 L5_2 = GetJobName L6_2 = A4_2 L5_2 = L5_2(L6_2) L6_2 = GetGradeId L7_2 = A4_2 L6_2 = L6_2(L7_2) if A2_2 then L7_2 = permissions L7_2 = L7_2[A0_2] if L7_2 then L7_2 = L7_2[A1_2] end if L7_2 then L7_2 = L7_2[A2_2] end if L7_2 then L7_2 = L7_2[A3_2] end if L7_2 then goto lbl_30 end end L7_2 = permissions L7_2 = L7_2[A0_2] if L7_2 then L7_2 = L7_2[A1_2] end if L7_2 then L7_2 = L7_2[A3_2] end ::lbl_30:: L8_2 = type L9_2 = L7_2 L8_2 = L8_2(L9_2) if "table" ~= L8_2 then L8_2 = true return L8_2 end L8_2 = L7_2[L5_2] if L8_2 then L8_2 = L7_2[L5_2] L8_2 = L6_2 >= L8_2 end return L8_2 end L58_1 = RegisterNetEvent L59_1 = "tk_mdt:removeJobPermission" function L60_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = L23_1 L5_2 = A1_2 L6_2 = L2_2 L4_2 = L4_2(L5_2, L6_2) if L4_2 then L4_2 = L57_1 L5_2 = A1_2 L6_2 = "permissions" L7_2 = nil L8_2 = "write" L9_2 = L3_2 L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) if L4_2 then goto lbl_36 end end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2) L10_2 = "Remove job permission" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) do return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end ::lbl_36:: L4_2 = A0_2.component if L4_2 then L4_2 = permissions L4_2 = L4_2[A1_2] L5_2 = A0_2.page L4_2 = L4_2[L5_2] L5_2 = A0_2.component L4_2 = L4_2[L5_2] L5_2 = A0_2.action L4_2 = L4_2[L5_2] L5_2 = A0_2.job L4_2[L5_2] = nil else L4_2 = permissions L4_2 = L4_2[A1_2] L5_2 = A0_2.page L4_2 = L4_2[L5_2] L5_2 = A0_2.action L4_2 = L4_2[L5_2] L5_2 = A0_2.job L4_2[L5_2] = nil end L4_2 = MySQL L4_2 = L4_2.Sync L4_2 = L4_2.execute L5_2 = [[ UPDATE tk_mdt_permissions SET data = ? WHERE page = ? ]] L6_2 = {} L7_2 = json L7_2 = L7_2.encode L8_2 = permissions L8_2 = L8_2[A1_2] L7_2 = L7_2(L8_2) L8_2 = A1_2 L6_2[1] = L7_2 L6_2[2] = L8_2 L4_2(L5_2, L6_2) L4_2 = jobPlayers L4_2 = L4_2[A1_2] L5_2 = 1 L6_2 = #L4_2 L7_2 = 1 for L8_2 = L5_2, L6_2, L7_2 do L9_2 = TriggerClientEvent L10_2 = "tk_mdt:updatePermissions" L11_2 = L4_2[L8_2] L12_2 = permissions L12_2 = L12_2[A1_2] L9_2(L10_2, L11_2, L12_2) end L5_2 = Webhook L6_2 = _U L7_2 = "webhook_delete" L8_2 = GetPlayerName L9_2 = L2_2 L8_2 = L8_2(L9_2) L9_2 = L2_2 L10_2 = GetIdentifier L11_2 = GetPlayerFromId L12_2 = L2_2 L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2) L10_2 = L10_2(L11_2, L12_2, L13_2, L14_2) L11_2 = A1_2 L12_2 = "Remove job permission" L13_2 = json L13_2 = L13_2.encode L14_2 = A0_2 L13_2, L14_2 = L13_2(L14_2) L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2) end L58_1(L59_1, L60_1) L58_1 = RegisterNetEvent L59_1 = "tk_mdt:updatePermission" function L60_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = L23_1 L5_2 = A1_2 L6_2 = L2_2 L4_2 = L4_2(L5_2, L6_2) if L4_2 then L4_2 = L57_1 L5_2 = A1_2 L6_2 = "permissions" L7_2 = nil L8_2 = "write" L9_2 = L3_2 L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) if L4_2 then goto lbl_36 end end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L10_2 = "Update job permission" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) do return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end ::lbl_36:: L4_2 = permissions L5_2 = permissions L5_2 = L5_2[A1_2] if not L5_2 then L5_2 = {} end L4_2[A1_2] = L5_2 L4_2 = permissions L4_2 = L4_2[A1_2] L5_2 = A0_2.page L6_2 = permissions L6_2 = L6_2[A1_2] L7_2 = A0_2.page L6_2 = L6_2[L7_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L4_2 = permissions L4_2 = L4_2[A1_2] L5_2 = A0_2.page L4_2 = L4_2[L5_2] L5_2 = A0_2.component if L5_2 then L5_2 = A0_2.component L6_2 = A0_2.component L6_2 = L4_2[L6_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L5_2 = A0_2.component L5_2 = L4_2[L5_2] L6_2 = A0_2.action L7_2 = A0_2.component L7_2 = L4_2[L7_2] L8_2 = A0_2.action L7_2 = L7_2[L8_2] if not L7_2 then L7_2 = {} end L5_2[L6_2] = L7_2 L5_2 = permissions L5_2 = L5_2[A1_2] L6_2 = A0_2.page L5_2 = L5_2[L6_2] L6_2 = A0_2.component L5_2 = L5_2[L6_2] L6_2 = A0_2.action L5_2 = L5_2[L6_2] L6_2 = A0_2.job L7_2 = A0_2.grade L5_2[L6_2] = L7_2 else L5_2 = A0_2.action L6_2 = A0_2.action L6_2 = L4_2[L6_2] if not L6_2 then L6_2 = {} end L4_2[L5_2] = L6_2 L5_2 = permissions L5_2 = L5_2[A1_2] L6_2 = A0_2.page L5_2 = L5_2[L6_2] L6_2 = A0_2.action L5_2 = L5_2[L6_2] L6_2 = A0_2.job L7_2 = A0_2.grade L5_2[L6_2] = L7_2 end L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.execute L6_2 = [[ INSERT INTO tk_mdt_permissions (data, page) VALUES (?, ?) ON DUPLICATE KEY UPDATE data = VALUES(data) ]] L7_2 = {} L8_2 = json L8_2 = L8_2.encode L9_2 = permissions L9_2 = L9_2[A1_2] L8_2 = L8_2(L9_2) L9_2 = A1_2 L7_2[1] = L8_2 L7_2[2] = L9_2 L5_2(L6_2, L7_2) L5_2 = jobPlayers L5_2 = L5_2[A1_2] L6_2 = 1 L7_2 = #L5_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:updatePermissions" L12_2 = L5_2[L9_2] L13_2 = permissions L13_2 = L13_2[A1_2] L10_2(L11_2, L12_2, L13_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_update" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2) L12_2 = A1_2 L13_2 = "Update job permission" L14_2 = json L14_2 = L14_2.encode L15_2 = A0_2 L14_2, L15_2 = L14_2(L15_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end L58_1(L59_1, L60_1) function L58_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2 L2_2 = pairs L3_2 = L3_1 L3_2 = L3_2[A1_2] L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.name if L8_2 == A0_2 then return L6_2 end end L2_2 = nil return L2_2 end L59_1 = RegisterNetEvent L60_1 = "tk_mdt:updateTag" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = L23_1 L5_2 = A1_2 L6_2 = L2_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L10_2 = "Update tag" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end L4_2 = L58_1 L5_2 = A0_2.name L6_2 = A1_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then return end L5_2 = L3_1 L5_2 = L5_2[A1_2] L5_2[L4_2] = A0_2 L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.execute L6_2 = [[ UPDATE tk_mdt_tags SET name = ?, label = ?, color = ?, minGrade = ?, grades = ? WHERE page = ? AND name = ? ]] L7_2 = {} L8_2 = A0_2.name L9_2 = A0_2.label L10_2 = A0_2.color L11_2 = A0_2.minGrade L12_2 = A0_2.grades if L12_2 then L12_2 = json L12_2 = L12_2.encode L13_2 = A0_2.grades L12_2 = L12_2(L13_2) end L13_2 = A1_2 L14_2 = A0_2.name L7_2[1] = L8_2 L7_2[2] = L9_2 L7_2[3] = L10_2 L7_2[4] = L11_2 L7_2[5] = L12_2 L7_2[6] = L13_2 L7_2[7] = L14_2 L5_2(L6_2, L7_2) L5_2 = jobPlayers L5_2 = L5_2[A1_2] L6_2 = 1 L7_2 = #L5_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:updateTag" L12_2 = L5_2[L9_2] L13_2 = A0_2 L10_2(L11_2, L12_2, L13_2) end L6_2 = Webhook L7_2 = _U L8_2 = "webhook_update" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2) L12_2 = A1_2 L13_2 = "Update tag" L14_2 = json L14_2 = L14_2.encode L15_2 = A0_2 L14_2, L15_2 = L14_2(L15_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end L59_1(L60_1, L61_1) L59_1 = RegisterNetEvent L60_1 = "tk_mdt:removeTag" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = L23_1 L5_2 = A1_2 L6_2 = L2_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L10_2 = "Remove tag" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L4_2 = L58_1 L5_2 = A0_2.name L6_2 = A1_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then return end L5_2 = table L5_2 = L5_2.remove L6_2 = L3_1 L6_2 = L6_2[A1_2] L7_2 = L4_2 L5_2(L6_2, L7_2) L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.execute L6_2 = [[ DELETE FROM tk_mdt_tags WHERE page = ? AND name = ? ]] L7_2 = {} L8_2 = A1_2 L9_2 = A0_2.name L7_2[1] = L8_2 L7_2[2] = L9_2 L5_2(L6_2, L7_2) L5_2 = GetIdentifier L6_2 = L3_2 L5_2 = L5_2(L6_2) L6_2 = {} L7_2 = A0_2.name L6_2.name = L7_2 L7_2 = {} L7_2.identifier = L5_2 L8_2 = GetCharName L9_2 = L5_2 L8_2 = L8_2(L9_2) L7_2.name = L8_2 L6_2.logData = L7_2 A0_2 = L6_2 L6_2 = L32_1 L7_2 = {} L7_2.identifier = L5_2 L8_2 = GetCharName L9_2 = L5_2 L8_2 = L8_2(L9_2) L7_2.name = L8_2 L7_2.action = "delete" L8_2 = A0_2.name L7_2.value = L8_2 L7_2.page = "tags" L7_2.job = A1_2 L6_2(L7_2) L6_2 = jobPlayers L6_2 = L6_2[A1_2] L7_2 = 1 L8_2 = #L6_2 L9_2 = 1 for L10_2 = L7_2, L8_2, L9_2 do L11_2 = TriggerClientEvent L12_2 = "tk_mdt:removeTag" L13_2 = L6_2[L10_2] L14_2 = A0_2 L11_2(L12_2, L13_2, L14_2) end L7_2 = Webhook L8_2 = _U L9_2 = "webhook_delete" L10_2 = GetPlayerName L11_2 = L2_2 L10_2 = L10_2(L11_2) L11_2 = L2_2 L12_2 = GetIdentifier L13_2 = GetPlayerFromId L14_2 = L2_2 L13_2, L14_2, L15_2, L16_2 = L13_2(L14_2) L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2) L13_2 = A1_2 L14_2 = "Remove tag" L15_2 = json L15_2 = L15_2.encode L16_2 = A0_2 L15_2, L16_2 = L15_2(L16_2) L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 = L8_2(L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2) end L59_1(L60_1, L61_1) L59_1 = RegisterNetEvent L60_1 = "tk_mdt:hireEmployee" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 L2_2 = source L3_2 = GetPlayerFromId L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = L23_1 L5_2 = A1_2 L6_2 = L2_2 L4_2 = L4_2(L5_2, L6_2) if L4_2 then L4_2 = L57_1 L5_2 = A1_2 L6_2 = "employees" L7_2 = nil L8_2 = "write" L9_2 = L3_2 L4_2 = L4_2(L5_2, L6_2, L7_2, L8_2, L9_2) if L4_2 then goto lbl_36 end end L4_2 = Webhook L5_2 = _U L6_2 = "webhook_cheater" L7_2 = GetPlayerName L8_2 = L2_2 L7_2 = L7_2(L8_2) L8_2 = L2_2 L9_2 = GetIdentifier L10_2 = GetPlayerFromId L11_2 = L2_2 L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L10_2(L11_2) L9_2 = L9_2(L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L10_2 = "Hire employee" L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2) do return L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end ::lbl_36:: L4_2 = GetPlayerFromId L5_2 = A0_2.targetId L4_2 = L4_2(L5_2) if not L4_2 then return end L5_2 = GetJobName L6_2 = L3_2 L5_2 = L5_2(L6_2) L6_2 = SetJob L7_2 = L4_2 L8_2 = L5_2 L9_2 = A0_2.grade L6_2(L7_2, L8_2, L9_2) L6_2 = AddEmployee L7_2 = A0_2.targetId L6_2(L7_2) L6_2 = GetIdentifier L7_2 = L4_2 L6_2 = L6_2(L7_2) A0_2.targetIdentifier = L6_2 L6_2 = GetCharName L7_2 = A0_2.targetIdentifier L6_2 = L6_2(L7_2) A0_2.targetName = L6_2 A0_2.targetJob = L5_2 L6_2 = Webhook L7_2 = _U L8_2 = "webhook_create" L9_2 = GetPlayerName L10_2 = L2_2 L9_2 = L9_2(L10_2) L10_2 = L2_2 L11_2 = GetIdentifier L12_2 = GetPlayerFromId L13_2 = L2_2 L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) L11_2 = L11_2(L12_2, L13_2, L14_2, L15_2) L12_2 = A1_2 L13_2 = "Hire employee" L14_2 = json L14_2 = L14_2.encode L15_2 = A0_2 L14_2, L15_2 = L14_2(L15_2) L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2 = L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2) end L59_1(L60_1, L61_1) function L59_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L2_2 = false L3_2 = pairs L4_2 = L16_1.employees L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = L8_2.identifier if L9_2 == A0_2 then L9_2 = table L9_2 = L9_2.remove L10_2 = L16_1.employees L11_2 = L7_2 L9_2(L10_2, L11_2) L2_2 = true break end end if not L2_2 then return end L3_2 = jobPlayers L3_2 = L3_2[A1_2] L4_2 = 1 L5_2 = #L3_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TriggerClientEvent L9_2 = "tk_mdt:removeEmployee" L10_2 = L3_2[L7_2] L11_2 = {} L11_2.identifier = A0_2 L8_2(L9_2, L10_2, L11_2) end end RemoveEmployee = L59_1 L59_1 = exports L60_1 = "RemoveEmployee" L61_1 = RemoveEmployee L59_1(L60_1, L61_1) L59_1 = RegisterCommand L60_1 = "convertmdt" function L61_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2, L25_2, L26_2, L27_2, L28_2, L29_2, L30_2 L3_2 = {} L4_2 = "tk_mdt_announcements" L5_2 = "tk_mdt_tags" L6_2 = "tk_mdt_profiles" L7_2 = "tk_mdt_vehicles" L8_2 = "tk_mdt_properties" L9_2 = "tk_mdt_businesses" L10_2 = "tk_mdt_incidents" L11_2 = "tk_mdt_reports" L12_2 = "tk_mdt_training_reports" L13_2 = "tk_mdt_police_reports" L14_2 = "tk_mdt_evidence" L15_2 = "tk_mdt_weapons" L16_2 = "tk_mdt_charges" L17_2 = "tk_mdt_legislation" L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L3_2[4] = L7_2 L3_2[5] = L8_2 L3_2[6] = L9_2 L3_2[7] = L10_2 L3_2[8] = L11_2 L3_2[9] = L12_2 L3_2[10] = L13_2 L3_2[11] = L14_2 L3_2[12] = L15_2 L3_2[13] = L16_2 L3_2[14] = L17_2 L4_2 = pairs L5_2 = L3_2 L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = HasColumn L11_2 = L9_2 L12_2 = "page" L10_2 = L10_2(L11_2, L12_2) if not L10_2 then L10_2 = MySQL L10_2 = L10_2.Sync L10_2 = L10_2.execute L11_2 = [[ ALTER TABLE ?? ADD COLUMN page VARCHAR(255) NOT NULL ]] L12_2 = {} L13_2 = L9_2 L12_2[1] = L13_2 L10_2(L11_2, L12_2) L10_2 = print L11_2 = "Added page column to " L12_2 = L9_2 L11_2 = L11_2 .. L12_2 L10_2(L11_2) L10_2 = MySQL L10_2 = L10_2.Sync L10_2 = L10_2.execute L11_2 = [[ UPDATE ?? SET page = ? ]] L12_2 = {} L13_2 = L9_2 L14_2 = "police" L12_2[1] = L13_2 L12_2[2] = L14_2 L10_2(L11_2, L12_2) L10_2 = print L11_2 = "Updated pages to police in " L12_2 = L9_2 L11_2 = L11_2 .. L12_2 L10_2(L11_2) else L10_2 = print L11_2 = "Page column already exists in " L12_2 = L9_2 L11_2 = L11_2 .. L12_2 L10_2(L11_2) end end L4_2 = HasColumn L5_2 = "tk_mdt_tags" L6_2 = "label" L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = MySQL L4_2 = L4_2.Sync L4_2 = L4_2.execute L5_2 = [[ ALTER TABLE tk_mdt_tags ADD COLUMN label VARCHAR(50) DEFAULT NULL ]] L4_2(L5_2) L4_2 = print L5_2 = "Added label column to tk_mdt_tags" L4_2(L5_2) else L4_2 = print L5_2 = "Label column already exists in tk_mdt_tags" L4_2(L5_2) end L4_2 = MySQL L4_2 = L4_2.Sync L4_2 = L4_2.execute L5_2 = [[ CREATE TABLE IF NOT EXISTS tk_mdt_employees LIKE tk_mdt_officers ]] L4_2(L5_2) L4_2 = print L5_2 = "Created tk_mdt_employees table" L4_2(L5_2) L4_2 = HasColumn L5_2 = "tk_mdt_employees" L6_2 = "page" L4_2 = L4_2(L5_2, L6_2) if not L4_2 then L4_2 = MySQL L4_2 = L4_2.Sync L4_2 = L4_2.execute L5_2 = [[ ALTER TABLE tk_mdt_employees ADD COLUMN page VARCHAR(255) NOT NULL ]] L4_2(L5_2) L4_2 = print L5_2 = "Added page column to tk_mdt_employees" L4_2(L5_2) end L4_2 = hasPrimaryKey L5_2 = "tk_mdt_employees" function L6_2(A0_3) local L1_3, L2_3 if A0_3 then L1_3 = MySQL L1_3 = L1_3.Sync L1_3 = L1_3.execute L2_3 = [[ ALTER TABLE tk_mdt_employees DROP PRIMARY KEY, ADD UNIQUE KEY `employee` (`identifier`, `page`) ]] L1_3(L2_3) end L1_3 = print L2_3 = "Changed primary key to unique key in tk_mdt_employees" L1_3(L2_3) end L4_2(L5_2, L6_2) L4_2 = hasPrimaryKey L5_2 = "tk_mdt_profiles" function L6_2(A0_3) local L1_3, L2_3 if A0_3 then L1_3 = MySQL L1_3 = L1_3.Sync L1_3 = L1_3.execute L2_3 = [[ ALTER TABLE tk_mdt_profiles DROP PRIMARY KEY, ADD UNIQUE KEY `profile` (`identifier`, `page`) ]] L1_3(L2_3) end L1_3 = print L2_3 = "Changed primary key to unique key in tk_mdt_profiles" L1_3(L2_3) end L4_2(L5_2, L6_2) L4_2 = hasPrimaryKey L5_2 = "tk_mdt_vehicles" function L6_2(A0_3) local L1_3, L2_3 if A0_3 then L1_3 = MySQL L1_3 = L1_3.Sync L1_3 = L1_3.execute L2_3 = [[ ALTER TABLE tk_mdt_vehicles DROP PRIMARY KEY, ADD UNIQUE KEY `vehicle` (`plate`, `page`) ]] L1_3(L2_3) end L1_3 = print L2_3 = "Changed primary key to unique key in tk_mdt_vehicles" L1_3(L2_3) end L4_2(L5_2, L6_2) L4_2 = hasPrimaryKey L5_2 = "tk_mdt_properties" function L6_2(A0_3) local L1_3, L2_3 if A0_3 then L1_3 = MySQL L1_3 = L1_3.Sync L1_3 = L1_3.execute L2_3 = [[ ALTER TABLE tk_mdt_properties DROP PRIMARY KEY, ADD UNIQUE KEY `property` (`id`, `page`) ]] L1_3(L2_3) end L1_3 = print L2_3 = "Changed primary key to unique key in tk_mdt_properties" L1_3(L2_3) end L4_2(L5_2, L6_2) L4_2 = hasPrimaryKey L5_2 = "tk_mdt_businesses" function L6_2(A0_3) local L1_3, L2_3 if A0_3 then L1_3 = MySQL L1_3 = L1_3.Sync L1_3 = L1_3.execute L2_3 = [[ ALTER TABLE tk_mdt_businesses DROP PRIMARY KEY, ADD UNIQUE KEY `business` (`name`, `page`) ]] L1_3(L2_3) end L1_3 = print L2_3 = "Changed primary key to unique key in tk_mdt_businesses" L1_3(L2_3) end L4_2(L5_2, L6_2) L4_2 = MySQL L4_2 = L4_2.Sync L4_2 = L4_2.execute L5_2 = [[ CREATE TABLE IF NOT EXISTS tk_mdt_permissions ( data LONGTEXT NOT NULL, page VARCHAR(255) NOT NULL ) ]] L4_2(L5_2) L4_2 = print L5_2 = "Created tk_mdt_permissions table" L4_2(L5_2) L4_2 = MySQL L4_2 = L4_2.Sync L4_2 = L4_2.fetchAll L5_2 = "SHOW COLUMNS FROM tk_mdt_reports LIKE 'officers'" L4_2 = L4_2(L5_2) L5_2 = #L4_2 if L5_2 > 0 then L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.execute L6_2 = [[ ALTER TABLE tk_mdt_reports CHANGE COLUMN officers employees LONGTEXT DEFAULT NULL ]] L5_2(L6_2) L5_2 = print L6_2 = "Changed officers column to employees in tk_mdt_reports" L5_2(L6_2) else L5_2 = print L6_2 = "Column already renamed in tk_mdt_reports" L5_2(L6_2) end L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.fetchAll L6_2 = "SHOW COLUMNS FROM tk_mdt_incidents LIKE 'officers'" L5_2 = L5_2(L6_2) L6_2 = #L5_2 if L6_2 > 0 then L6_2 = MySQL L6_2 = L6_2.Sync L6_2 = L6_2.execute L7_2 = [[ ALTER TABLE tk_mdt_incidents CHANGE COLUMN officers employees LONGTEXT DEFAULT NULL ]] L6_2(L7_2) L6_2 = print L7_2 = "Changed officers column to employees in tk_mdt_incidents" L6_2(L7_2) else L6_2 = print L7_2 = "Column already renamed in tk_mdt_incidents" L6_2(L7_2) end L6_2 = MySQL L6_2 = L6_2.Sync L6_2 = L6_2.fetchAll L7_2 = "SELECT * FROM tk_mdt_ems_announcements" L6_2 = L6_2(L7_2) if L6_2 then L7_2 = #L6_2 if L7_2 > 0 then L7_2 = ipairs L8_2 = L6_2 L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2) for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do L13_2 = MySQL L13_2 = L13_2.Sync L13_2 = L13_2.execute L14_2 = [[ INSERT INTO tk_mdt_announcements (id, message, creator, date, pinned, page) VALUES (?, ?, ?, ?, ?, ?) ]] L15_2 = {} L16_2 = L12_2.id L17_2 = L12_2.message L18_2 = L12_2.creator L19_2 = L12_2.date L20_2 = L12_2.pinned L21_2 = "ambulance" L15_2[1] = L16_2 L15_2[2] = L17_2 L15_2[3] = L18_2 L15_2[4] = L19_2 L15_2[5] = L20_2 L15_2[6] = L21_2 L13_2(L14_2, L15_2) end L7_2 = print L8_2 = "Migrated " L9_2 = #L6_2 L10_2 = " EMS announcements" L8_2 = L8_2 .. L9_2 .. L10_2 L7_2(L8_2) end else L7_2 = print L8_2 = "No EMS announcements to migrate" L7_2(L8_2) end L7_2 = MySQL L7_2 = L7_2.Sync L7_2 = L7_2.fetchAll L8_2 = "SELECT * FROM tk_mdt_ems_tags" L7_2 = L7_2(L8_2) if L7_2 then L8_2 = #L7_2 if L8_2 > 0 then L8_2 = ipairs L9_2 = L7_2 L8_2, L9_2, L10_2, L11_2 = L8_2(L9_2) for L12_2, L13_2 in L8_2, L9_2, L10_2, L11_2 do L14_2 = MySQL L14_2 = L14_2.Sync L14_2 = L14_2.execute L15_2 = [[ INSERT INTO tk_mdt_tags (name, color, minGrade, grades, page) VALUES (?, ?, ?, ?, ?) ]] L16_2 = {} L17_2 = L13_2.name L18_2 = L13_2.color L19_2 = L13_2.minGrade L20_2 = L13_2.grades L21_2 = "ambulance" L16_2[1] = L17_2 L16_2[2] = L18_2 L16_2[3] = L19_2 L16_2[4] = L20_2 L16_2[5] = L21_2 L14_2(L15_2, L16_2) end L8_2 = print L9_2 = "Migrated " L10_2 = #L7_2 L11_2 = " EMS tags" L9_2 = L9_2 .. L10_2 .. L11_2 L8_2(L9_2) end else L8_2 = print L9_2 = "No EMS tags to migrate" L8_2(L9_2) end L8_2 = MySQL L8_2 = L8_2.Sync L8_2 = L8_2.fetchAll L9_2 = "SELECT * FROM tk_mdt_ems_profiles" L8_2 = L8_2(L9_2) if L8_2 then L9_2 = #L8_2 if L9_2 > 0 then L9_2 = ipairs L10_2 = L8_2 L9_2, L10_2, L11_2, L12_2 = L9_2(L10_2) for L13_2, L14_2 in L9_2, L10_2, L11_2, L12_2 do L15_2 = MySQL L15_2 = L15_2.Sync L15_2 = L15_2.execute L16_2 = [[ INSERT INTO tk_mdt_profiles (identifier, image, notes, tags, linkedProfiles, photos, page) VALUES (?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE image = IF(image IS NULL, VALUES(image), image), notes = COALESCE(notes, VALUES(notes)), tags = COALESCE(tags, VALUES(tags)), linkedProfiles = COALESCE(linkedProfiles, VALUES(linkedProfiles)), photos = COALESCE(photos, VALUES(photos)), page = 'ambulance' ]] L17_2 = {} L18_2 = L14_2.identifier L19_2 = L14_2.image L20_2 = L14_2.notes L21_2 = L14_2.tags L22_2 = L14_2.linkedProfiles L23_2 = L14_2.photos L24_2 = "ambulance" L17_2[1] = L18_2 L17_2[2] = L19_2 L17_2[3] = L20_2 L17_2[4] = L21_2 L17_2[5] = L22_2 L17_2[6] = L23_2 L17_2[7] = L24_2 L15_2(L16_2, L17_2) end L9_2 = print L10_2 = "Migrated " L11_2 = #L8_2 L12_2 = " EMS profiles" L10_2 = L10_2 .. L11_2 .. L12_2 L9_2(L10_2) end else L9_2 = print L10_2 = "No EMS profiles to migrate" L9_2(L10_2) end L9_2 = MySQL L9_2 = L9_2.Sync L9_2 = L9_2.fetchAll L10_2 = "SELECT * FROM tk_mdt_ems_reports" L9_2 = L9_2(L10_2) if L9_2 then L10_2 = #L9_2 if L10_2 > 0 then L10_2 = ipairs L11_2 = L9_2 L10_2, L11_2, L12_2, L13_2 = L10_2(L11_2) for L14_2, L15_2 in L10_2, L11_2, L12_2, L13_2 do L16_2 = MySQL L16_2 = L16_2.Sync L16_2 = L16_2.insert L17_2 = [[ INSERT INTO tk_mdt_reports (title, creator, date, content, tags, employees, civilians, linkedReports, photos, page) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ]] L18_2 = {} L19_2 = L15_2.title L20_2 = L15_2.creator L21_2 = L15_2.date L22_2 = L15_2.content L23_2 = L15_2.tags L24_2 = L15_2.paramedics L25_2 = L15_2.patients L26_2 = L15_2.linkedReports L27_2 = L15_2.photos L28_2 = "ambulance" L18_2[1] = L19_2 L18_2[2] = L20_2 L18_2[3] = L21_2 L18_2[4] = L22_2 L18_2[5] = L23_2 L18_2[6] = L24_2 L18_2[7] = L25_2 L18_2[8] = L26_2 L18_2[9] = L27_2 L18_2[10] = L28_2 L16_2(L17_2, L18_2) end L10_2 = print L11_2 = "Migrated " L12_2 = #L9_2 L13_2 = " EMS reports" L11_2 = L11_2 .. L12_2 .. L13_2 L10_2(L11_2) end else L10_2 = print L11_2 = "No EMS reports to migrate" L10_2(L11_2) end L10_2 = MySQL L10_2 = L10_2.Sync L10_2 = L10_2.fetchAll L11_2 = "SELECT * FROM tk_mdt_ems_training_reports" L10_2 = L10_2(L11_2) if L10_2 then L11_2 = #L10_2 if L11_2 > 0 then L11_2 = ipairs L12_2 = L10_2 L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2) for L15_2, L16_2 in L11_2, L12_2, L13_2, L14_2 do L17_2 = MySQL L17_2 = L17_2.Sync L17_2 = L17_2.insert L18_2 = [[ INSERT INTO tk_mdt_training_reports (title, creator, trainee, date, content, driving, professionalism, generalKnowledge, reports, radio, page) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ]] L19_2 = {} L20_2 = L16_2.title L21_2 = L16_2.creator L22_2 = L16_2.trainee L23_2 = L16_2.date L24_2 = L16_2.content L25_2 = L16_2.driving L26_2 = L16_2.professionalism L27_2 = L16_2.generalKnowledge L28_2 = L16_2.reports L29_2 = L16_2.radio L30_2 = "ambulance" L19_2[1] = L20_2 L19_2[2] = L21_2 L19_2[3] = L22_2 L19_2[4] = L23_2 L19_2[5] = L24_2 L19_2[6] = L25_2 L19_2[7] = L26_2 L19_2[8] = L27_2 L19_2[9] = L28_2 L19_2[10] = L29_2 L19_2[11] = L30_2 L17_2(L18_2, L19_2) end L11_2 = print L12_2 = "Migrated " L13_2 = #L10_2 L14_2 = " EMS training reports" L12_2 = L12_2 .. L13_2 .. L14_2 L11_2(L12_2) end else L11_2 = print L12_2 = "No EMS training reports to migrate" L11_2(L12_2) end L11_2 = MySQL L11_2 = L11_2.Sync L11_2 = L11_2.fetchAll L12_2 = "SELECT * FROM tk_mdt_paramedics" L11_2 = L11_2(L12_2) if L11_2 then L12_2 = #L11_2 if L12_2 > 0 then L12_2 = ipairs L13_2 = L11_2 L12_2, L13_2, L14_2, L15_2 = L12_2(L13_2) for L16_2, L17_2 in L12_2, L13_2, L14_2, L15_2 do L18_2 = MySQL L18_2 = L18_2.Sync L18_2 = L18_2.execute L19_2 = [[ INSERT INTO tk_mdt_employees (identifier, image, callsign, notes, status, licenses, page) VALUES (?, ?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE image = COALESCE(VALUES(image), image), callsign = COALESCE(VALUES(callsign), callsign), notes = COALESCE(VALUES(notes), notes), status = COALESCE(VALUES(status), status), licenses = COALESCE(VALUES(licenses), licenses) ]] L20_2 = {} L21_2 = L17_2.identifier L22_2 = L17_2.image L23_2 = L17_2.callsign L24_2 = L17_2.notes L25_2 = L17_2.status L26_2 = L17_2.licenses L27_2 = "ambulance" L20_2[1] = L21_2 L20_2[2] = L22_2 L20_2[3] = L23_2 L20_2[4] = L24_2 L20_2[5] = L25_2 L20_2[6] = L26_2 L20_2[7] = L27_2 L18_2(L19_2, L20_2) end L12_2 = print L13_2 = "Migrated " L14_2 = #L11_2 L15_2 = " paramedics to officers table" L13_2 = L13_2 .. L14_2 .. L15_2 L12_2(L13_2) end else L12_2 = print L13_2 = "No paramedics to migrate" L12_2(L13_2) end L12_2 = print L13_2 = "Converted tables to new format" L12_2(L13_2) L12_2 = A1_2[1] if "dropoldtables" == L12_2 then L12_2 = {} L13_2 = "tk_mdt_ems_announcements" L14_2 = "tk_mdt_ems_tags" L15_2 = "tk_mdt_ems_profiles" L16_2 = "tk_mdt_ems_reports" L17_2 = "tk_mdt_ems_training_reports" L18_2 = "tk_mdt_paramedics" L19_2 = "tk_mdt_officers" L12_2[1] = L13_2 L12_2[2] = L14_2 L12_2[3] = L15_2 L12_2[4] = L16_2 L12_2[5] = L17_2 L12_2[6] = L18_2 L12_2[7] = L19_2 L13_2 = ipairs L14_2 = L12_2 L13_2, L14_2, L15_2, L16_2 = L13_2(L14_2) for L17_2, L18_2 in L13_2, L14_2, L15_2, L16_2 do L19_2 = MySQL L19_2 = L19_2.Sync L19_2 = L19_2.execute L20_2 = "DROP TABLE IF EXISTS ??" L21_2 = {} L22_2 = L18_2 L21_2[1] = L22_2 L19_2(L20_2, L21_2) L19_2 = print L20_2 = "Dropped old table: " L21_2 = L18_2 L20_2 = L20_2 .. L21_2 L19_2(L20_2) end L13_2 = print L14_2 = "Dropped old EMS tables" L13_2(L14_2) end L12_2 = HasColumn L13_2 = "tk_mdt_training_reports" L14_2 = "data" L12_2 = L12_2(L13_2, L14_2) if not L12_2 then L12_2 = MySQL L12_2 = L12_2.Sync L12_2 = L12_2.execute L13_2 = [[ ALTER TABLE tk_mdt_training_reports ADD COLUMN data LONGTEXT DEFAULT NULL ]] L12_2(L13_2) L12_2 = print L13_2 = "Added data column to tk_mdt_training_reports" L12_2(L13_2) else L12_2 = print L13_2 = "Data column already exists in tk_mdt_training_reports" L12_2(L13_2) end L12_2 = HasColumn L13_2 = "tk_mdt_training_reports" L14_2 = "driving" L12_2 = L12_2(L13_2, L14_2) if L12_2 then L12_2 = MySQL L12_2 = L12_2.Sync L12_2 = L12_2.fetchAll L13_2 = [[ SELECT id, driving, shooting, professionalism, generalKnowledge, reports, radio FROM tk_mdt_training_reports ]] L12_2 = L12_2(L13_2) L13_2 = ipairs L14_2 = L12_2 L13_2, L14_2, L15_2, L16_2 = L13_2(L14_2) for L17_2, L18_2 in L13_2, L14_2, L15_2, L16_2 do L19_2 = MySQL L19_2 = L19_2.Sync L19_2 = L19_2.execute L20_2 = [[ UPDATE tk_mdt_training_reports SET data = ? WHERE id = ? ]] L21_2 = {} L22_2 = json L22_2 = L22_2.encode L23_2 = {} L24_2 = L18_2.driving L23_2.driving = L24_2 L24_2 = L18_2.shooting L23_2.shooting = L24_2 L24_2 = L18_2.professionalism L23_2.professionalism = L24_2 L24_2 = L18_2.generalKnowledge L23_2.generalKnowledge = L24_2 L24_2 = L18_2.reports L23_2.reports = L24_2 L24_2 = L18_2.radio L23_2.radio = L24_2 L22_2 = L22_2(L23_2) L23_2 = L18_2.id L21_2[1] = L22_2 L21_2[2] = L23_2 L19_2(L20_2, L21_2) end L13_2 = MySQL L13_2 = L13_2.Sync L13_2 = L13_2.execute L14_2 = [[ ALTER TABLE tk_mdt_training_reports DROP COLUMN driving, DROP COLUMN shooting, DROP COLUMN professionalism, DROP COLUMN generalKnowledge, DROP COLUMN reports, DROP COLUMN radio ]] L13_2(L14_2) L13_2 = print L14_2 = "Converted training reports to new format" L13_2(L14_2) end L12_2 = HasColumn L13_2 = "tk_mdt_charges" L14_2 = "color" L12_2 = L12_2(L13_2, L14_2) if not L12_2 then L12_2 = MySQL L12_2 = L12_2.Sync L12_2 = L12_2.execute L13_2 = [[ ALTER TABLE tk_mdt_charges ADD COLUMN color VARCHAR(100) NULL ]] L12_2(L13_2) L12_2 = print L13_2 = "Added color column to tk_mdt_charges" L12_2(L13_2) else L12_2 = print L13_2 = "Color column already exists in tk_mdt_charges" L12_2(L13_2) end L12_2 = HasColumn L13_2 = "tk_mdt_reports" L14_2 = "report_type" L12_2 = L12_2(L13_2, L14_2) if not L12_2 then L12_2 = MySQL L12_2 = L12_2.Sync L12_2 = L12_2.execute L13_2 = [[ ALTER TABLE tk_mdt_reports ADD COLUMN report_type VARCHAR(100) NULL ]] L12_2(L13_2) L12_2 = print L13_2 = "Added report_type column to tk_mdt_reports" L12_2(L13_2) else L12_2 = print L13_2 = "Report_type column already exists in tk_mdt_reports" L12_2(L13_2) end L12_2 = print L13_2 = "Conversion completed" L12_2(L13_2) end L62_1 = true L59_1(L60_1, L61_1, L62_1) L59_1 = RegisterCommand L60_1 = "mdtcheckdatabase" function L61_1() local L0_2, L1_2 L0_2 = L34_1 L0_2() end L62_1 = true L59_1(L60_1, L61_1, L62_1) L59_1 = exports L60_1 = "addCall" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2 L1_2 = TriggerEvent L2_2 = "tk_mdt:createCall" L3_2 = {} L4_2 = A0_2.title L3_2.title = L4_2 L4_2 = A0_2.callsign L3_2.callsign = L4_2 L4_2 = A0_2.location L3_2.location = L4_2 L4_2 = A0_2.coords if L4_2 then L4_2 = {} L5_2 = A0_2.coords L5_2 = L5_2.x L6_2 = A0_2.coords L6_2 = L6_2.y L4_2[1] = L5_2 L4_2[2] = L6_2 end L3_2.coords = L4_2 L4_2 = A0_2.gender L3_2.gender = L4_2 L4_2 = A0_2.vehicle L3_2.vehicle = L4_2 L4_2 = A0_2.weapon L3_2.weapon = L4_2 L4_2 = A0_2.type L3_2.type = L4_2 L4_2 = A0_2.time L3_2.time = L4_2 L1_2(L2_2, L3_2) end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "registerWeapon" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2 L1_2 = type L2_2 = A0_2.owners L1_2 = L1_2(L2_2) if "table" == L1_2 then L1_2 = pairs L2_2 = A0_2.owners L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2) for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do L7_2 = A0_2.owners L8_2 = {} L8_2.identifier = L6_2 L9_2 = GetCharName L10_2 = L6_2 L9_2 = L9_2(L10_2) L8_2.name = L9_2 L7_2[L5_2] = L8_2 end end L1_2 = A0_2.page if not L1_2 then L1_2 = "police" end A0_2.page = L1_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.insert L2_2 = [[ INSERT INTO tk_mdt_weapons (creator, name, owners, serial, notes, image, page, date) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ]] L3_2 = {} L4_2 = A0_2.creator L5_2 = A0_2.name L6_2 = type L7_2 = A0_2.owners L6_2 = L6_2(L7_2) L6_2 = json L6_2 = L6_2.encode L7_2 = A0_2.owners L6_2 = "table" == L6_2 and L6_2 L7_2 = A0_2.serial L8_2 = A0_2.notes L9_2 = A0_2.image L10_2 = A0_2.page L11_2 = os L11_2 = L11_2.time L11_2 = L11_2() L3_2[1] = L4_2 L3_2[2] = L5_2 L3_2[3] = L6_2 L3_2[4] = L7_2 L3_2[5] = L8_2 L3_2[6] = L9_2 L3_2[7] = L10_2 L3_2[8] = L11_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = {} L2_2.id = L1_2 L3_2 = A0_2.name L2_2.name = L3_2 L3_2 = A0_2.creator L2_2.creator = L3_2 L3_2 = A0_2.owners L2_2.owners = L3_2 L3_2 = os L3_2 = L3_2.time L3_2 = L3_2() L2_2.date = L3_2 L3_2 = A0_2.serial L2_2.serial = L3_2 L3_2 = A0_2.notes L2_2.notes = L3_2 L3_2 = A0_2.image L2_2.image = L3_2 L3_2 = {} L4_2 = type L5_2 = A0_2.owners L4_2 = L4_2(L5_2) if "table" == L4_2 then L4_2 = A0_2.owners if L4_2 then goto lbl_87 end end L4_2 = {} ::lbl_87:: L3_2.owners = L4_2 L4_2 = {} L3_2.tags = L4_2 L4_2 = {} L3_2.linkedIncidents = L4_2 L4_2 = {} L3_2.linkedReports = L4_2 L2_2.sideBarData = L3_2 L4_2 = A0_2.page L3_2 = L12_1 L6_2 = A0_2.page L5_2 = L12_1 L5_2 = L5_2[L6_2] if not L5_2 then L5_2 = {} end L3_2[L4_2] = L5_2 L4_2 = A0_2.page L3_2 = L12_1 L3_2 = L3_2[L4_2] L5_2 = A0_2.page L4_2 = L12_1 L4_2 = L4_2[L5_2] L4_2 = #L4_2 L4_2 = L4_2 + 1 L3_2[L4_2] = L2_2 L3_2 = 1 L4_2 = jobPlayers L5_2 = A0_2.page L4_2 = L4_2[L5_2] L4_2 = #L4_2 L5_2 = 1 for L6_2 = L3_2, L4_2, L5_2 do L7_2 = TriggerClientEvent L8_2 = "tk_mdt:addWeapon" L9_2 = jobPlayers L10_2 = A0_2.page L9_2 = L9_2[L10_2] L9_2 = L9_2[L6_2] L10_2 = L2_2 L7_2(L8_2, L9_2, L10_2) end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "registerVehicle" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2 L1_2 = GetPlayerFromId L2_2 = A0_2.playerId L1_2 = L1_2(L2_2) if not L1_2 then return end L2_2 = GetIdentifier L3_2 = L1_2 L2_2 = L2_2(L3_2) L3_2 = GetCharName L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = type L5_2 = A0_2.model L4_2 = L4_2(L5_2) if "string" == L4_2 then L4_2 = joaat L5_2 = A0_2.model L4_2 = L4_2(L5_2) if L4_2 then goto lbl_24 end end L4_2 = A0_2.model ::lbl_24:: L5_2 = GetVehicleName L6_2 = A0_2.playerId L7_2 = L4_2 L5_2 = L5_2(L6_2, L7_2) L6_2 = {} L6_2.name = L5_2 L7_2 = A0_2.color if not L7_2 then L7_2 = _U L8_2 = "unknown" L7_2 = L7_2(L8_2) end L6_2.color = L7_2 L7_2 = A0_2.garage if not L7_2 then L7_2 = _U L8_2 = "unknown" L7_2 = L7_2(L8_2) end L6_2.garage = L7_2 L6_2.owner = L3_2 L6_2.model = L4_2 L7_2 = A0_2.plate L6_2.plate = L7_2 L7_2 = {} L8_2 = {} L7_2.bolos = L8_2 L8_2 = {} L7_2.tags = L8_2 L6_2.sideBarData = L7_2 L7_2 = {} L8_2 = _U L9_2 = "none" L8_2 = L8_2(L9_2) L7_2.identifier = L8_2 L8_2 = _U L9_2 = "automatically_registered" L8_2 = L8_2(L9_2) L7_2.name = L8_2 L6_2.logData = L7_2 L7_2 = L16_1.vehicles if not L7_2 then L7_2 = {} end L16_1.vehicles = L7_2 L7_2 = L16_1.vehicles L8_2 = L16_1.vehicles L8_2 = #L8_2 L8_2 = L8_2 + 1 L7_2[L8_2] = L6_2 L7_2 = L56_1 L8_2 = "vehicles" L7_2 = L7_2(L8_2) L8_2 = pairs L9_2 = L7_2 L8_2, L9_2, L10_2, L11_2 = L8_2(L9_2) for L12_2, L13_2 in L8_2, L9_2, L10_2, L11_2 do L14_2 = L32_1 L15_2 = {} L15_2.identifier = L2_2 L15_2.name = L3_2 L15_2.action = "create" L16_2 = L6_2.plate L15_2.value = L16_2 L15_2.page = "vehicles" L15_2.job = L13_2 L14_2(L15_2) L14_2 = type L15_2 = jobPlayers L15_2 = L15_2[L13_2] L14_2 = L14_2(L15_2) if "table" ~= L14_2 then L14_2 = jobPlayers L15_2 = {} L14_2[L13_2] = L15_2 end L14_2 = 1 L15_2 = jobPlayers L15_2 = L15_2[L13_2] L15_2 = #L15_2 L16_2 = 1 for L17_2 = L14_2, L15_2, L16_2 do L18_2 = TriggerClientEvent L19_2 = "tk_mdt:addVehicle" L20_2 = jobPlayers L20_2 = L20_2[L13_2] L20_2 = L20_2[L17_2] L21_2 = L6_2 L18_2(L19_2, L20_2, L21_2) end end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "registerProfile" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2 L1_2 = {} L2_2 = A0_2.identifier L1_2.identifier = L2_2 L2_2 = A0_2.name L1_2.name = L2_2 L2_2 = A0_2.gender L1_2.gender = L2_2 L2_2 = A0_2.dob L1_2.dob = L2_2 L2_2 = A0_2.phoneNumber L1_2.phoneNumber = L2_2 L2_2 = A0_2.fingerprint L1_2.fingerprint = L2_2 L2_2 = A0_2.image L1_2.image = L2_2 L2_2 = {} L3_2 = A0_2.warrants if not L3_2 then L3_2 = {} end L2_2.warrants = L3_2 L3_2 = A0_2.tags if not L3_2 then L3_2 = {} end L2_2.tags = L3_2 L3_2 = A0_2.vehicles if not L3_2 then L3_2 = {} end L2_2.vehicles = L3_2 L3_2 = A0_2.jobs if not L3_2 then L3_2 = {} end L2_2.jobs = L3_2 L3_2 = A0_2.properties if not L3_2 then L3_2 = {} end L2_2.properties = L3_2 L3_2 = A0_2.charges if not L3_2 then L3_2 = {} end L2_2.charges = L3_2 L3_2 = A0_2.licenses if not L3_2 then L3_2 = {} end L2_2.licenses = L3_2 L3_2 = A0_2.weapons if not L3_2 then L3_2 = {} end L2_2.weapons = L3_2 L3_2 = A0_2.photos if not L3_2 then L3_2 = {} end L2_2.photos = L3_2 L3_2 = A0_2.linkedReports if not L3_2 then L3_2 = {} end L2_2.linkedReports = L3_2 L3_2 = A0_2.linkedIncidents if not L3_2 then L3_2 = {} end L2_2.linkedIncidents = L3_2 L3_2 = A0_2.linkedProfiles if not L3_2 then L3_2 = {} end L2_2.linkedProfiles = L3_2 L1_2.sideBarData = L2_2 L2_2 = L16_1.profiles if not L2_2 then L2_2 = {} end L16_1.profiles = L2_2 L2_2 = L16_1.profiles L3_2 = L16_1.profiles L3_2 = #L3_2 L3_2 = L3_2 + 1 L2_2[L3_2] = L1_2 L2_2 = L56_1 L3_2 = "profiles" L2_2 = L2_2(L3_2) L3_2 = pairs L4_2 = L2_2 L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2) for L7_2, L8_2 in L3_2, L4_2, L5_2, L6_2 do L9_2 = type L10_2 = jobPlayers L10_2 = L10_2[L8_2] L9_2 = L9_2(L10_2) if "table" ~= L9_2 then L9_2 = jobPlayers L10_2 = {} L9_2[L8_2] = L10_2 end L9_2 = 1 L10_2 = jobPlayers L10_2 = L10_2[L8_2] L10_2 = #L10_2 L11_2 = 1 for L12_2 = L9_2, L10_2, L11_2 do L13_2 = TriggerClientEvent L14_2 = "tk_mdt:addProfile" L15_2 = jobPlayers L15_2 = L15_2[L8_2] L15_2 = L15_2[L12_2] L16_2 = L1_2 L13_2(L14_2, L15_2, L16_2) end end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "registerProperty" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L1_2 = {} L2_2 = A0_2.id L1_2.id = L2_2 L2_2 = A0_2.owner L1_2.owner = L2_2 L2_2 = A0_2.coords L1_2.coords = L2_2 L2_2 = A0_2.name L1_2.name = L2_2 L2_2 = A0_2.notes L1_2.notes = L2_2 L2_2 = A0_2.image L1_2.image = L2_2 L2_2 = {} L3_2 = {} L2_2.linkedProfiles = L3_2 L1_2.sideBarData = L2_2 L2_2 = L16_1.properties if not L2_2 then L2_2 = {} end L16_1.properties = L2_2 L2_2 = L16_1.properties L3_2 = L16_1.properties L3_2 = #L3_2 L3_2 = L3_2 + 1 L2_2[L3_2] = L1_2 L3_2 = A0_2.page L2_2 = L5_1 L5_2 = A0_2.page L4_2 = L5_1 L4_2 = L4_2[L5_2] if not L4_2 then L4_2 = {} end L2_2[L3_2] = L4_2 L3_2 = A0_2.page L2_2 = L5_1 L2_2 = L2_2[L3_2] L4_2 = A0_2.page L3_2 = L5_1 L3_2 = L3_2[L4_2] L3_2 = #L3_2 L3_2 = L3_2 + 1 L2_2[L3_2] = L1_2 L2_2 = 1 L3_2 = jobPlayers L4_2 = A0_2.page L3_2 = L3_2[L4_2] L3_2 = #L3_2 L4_2 = 1 for L5_2 = L2_2, L3_2, L4_2 do L6_2 = TriggerClientEvent L7_2 = "tk_mdt:addProperty" L8_2 = jobPlayers L9_2 = A0_2.page L8_2 = L8_2[L9_2] L8_2 = L8_2[L5_2] L9_2 = L1_2 L6_2(L7_2, L8_2, L9_2) end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "registerEvidence" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L1_2 = GetPlayerFromId L2_2 = A0_2.playerId L1_2 = L1_2(L2_2) if not L1_2 then return end L2_2 = GetIdentifier L3_2 = L1_2 L2_2 = L2_2(L3_2) L3_2 = GetCharName L4_2 = L2_2 L3_2 = L3_2(L4_2) L4_2 = {} L4_2.creator = L3_2 L5_2 = A0_2.name L4_2.name = L5_2 L5_2 = A0_2.image L4_2.image = L5_2 L5_2 = A0_2.notes L4_2.notes = L5_2 L5_2 = {} L6_2 = {} L5_2.tags = L6_2 L6_2 = {} L5_2.linkedIncidents = L6_2 L6_2 = {} L5_2.linkedReports = L6_2 L4_2.sidebarData = L5_2 L5_2 = MySQL L5_2 = L5_2.Sync L5_2 = L5_2.insert L6_2 = [[ INSERT INTO tk_mdt_evidence (creator, name, image, notes, page, date) VALUES (?, ?, ?, ?, ?, ?) ]] L7_2 = {} L8_2 = L4_2.creator L9_2 = L4_2.name L10_2 = L4_2.image L11_2 = L4_2.notes L12_2 = A0_2.page L13_2 = os L13_2 = L13_2.time L13_2 = L13_2() L7_2[1] = L8_2 L7_2[2] = L9_2 L7_2[3] = L10_2 L7_2[4] = L11_2 L7_2[5] = L12_2 L7_2[6] = L13_2 L5_2 = L5_2(L6_2, L7_2) L4_2.id = L5_2 L6_2 = os L6_2 = L6_2.time L6_2 = L6_2() L4_2.date = L6_2 L7_2 = A0_2.page L6_2 = L11_1 L9_2 = A0_2.page L8_2 = L11_1 L8_2 = L8_2[L9_2] if not L8_2 then L8_2 = {} end L6_2[L7_2] = L8_2 L7_2 = A0_2.page L6_2 = L11_1 L6_2 = L6_2[L7_2] L8_2 = A0_2.page L7_2 = L11_1 L7_2 = L7_2[L8_2] L7_2 = #L7_2 L7_2 = L7_2 + 1 L6_2[L7_2] = L4_2 L6_2 = 1 L7_2 = jobPlayers L8_2 = A0_2.page L7_2 = L7_2[L8_2] L7_2 = #L7_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:addEvidence" L12_2 = jobPlayers L13_2 = A0_2.page L12_2 = L12_2[L13_2] L12_2 = L12_2[L9_2] L13_2 = L4_2 L10_2(L11_2, L12_2, L13_2) end return L5_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "removeEvidence" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchScalar L2_2 = [[ SELECT page FROM tk_mdt_evidence WHERE id = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) if not L1_2 then return end L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchAll L3_2 = [[ DELETE FROM tk_mdt_evidence WHERE id = ? ]] L4_2 = {} L5_2 = A0_2 L4_2[1] = L5_2 L2_2(L3_2, L4_2) L2_2 = pairs L3_2 = L11_1 L3_2 = L3_2[L1_2] L2_2, L3_2, L4_2, L5_2 = L2_2(L3_2) for L6_2, L7_2 in L2_2, L3_2, L4_2, L5_2 do L8_2 = L7_2.id if L8_2 == A0_2 then L8_2 = table L8_2 = L8_2.remove L9_2 = L11_1 L9_2 = L9_2[L1_2] L10_2 = L6_2 L8_2(L9_2, L10_2) break end end L2_2 = 1 L3_2 = jobPlayers L3_2 = L3_2[L1_2] L3_2 = #L3_2 L4_2 = 1 for L5_2 = L2_2, L3_2, L4_2 do L6_2 = TriggerClientEvent L7_2 = "tk_mdt:removeEvidence" L8_2 = jobPlayers L8_2 = L8_2[L1_2] L8_2 = L8_2[L5_2] L9_2 = {} L9_2.id = A0_2 L6_2(L7_2, L8_2, L9_2) end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "getPlayerLicenses" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2 L1_2 = MySQL L1_2 = L1_2.Sync L1_2 = L1_2.fetchAll L2_2 = [[ SELECT licenses FROM tk_mdt_profiles WHERE identifier = ? ]] L3_2 = {} L4_2 = A0_2 L3_2[1] = L4_2 L1_2 = L1_2(L2_2, L3_2) L2_2 = L1_2[1] if L2_2 then L2_2 = json L2_2 = L2_2.decode L3_2 = L1_2[1] L3_2 = L3_2.licenses L2_2 = L2_2(L3_2) if L2_2 then goto lbl_22 end end L2_2 = {} ::lbl_22:: return L2_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "setProfileImage" function L61_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 L3_2 = MySQL L3_2 = L3_2.Sync L3_2 = L3_2.execute L4_2 = [[ INSERT INTO tk_mdt_profiles (identifier, image, page) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE image = VALUES(image) ]] L5_2 = {} L6_2 = A0_2 L7_2 = A1_2 L8_2 = A2_2 L5_2[1] = L6_2 L5_2[2] = L7_2 L5_2[3] = L8_2 L3_2 = L3_2(L4_2, L5_2) if not L3_2 then return end L4_2 = type L5_2 = profiles L5_2 = L5_2[A2_2] L4_2 = L4_2(L5_2) if "table" ~= L4_2 then return end L4_2 = pairs L5_2 = profiles L5_2 = L5_2[A2_2] L4_2, L5_2, L6_2, L7_2 = L4_2(L5_2) for L8_2, L9_2 in L4_2, L5_2, L6_2, L7_2 do L10_2 = L9_2.identifier if L10_2 == A0_2 then L9_2.image = A1_2 L10_2 = 1 L11_2 = jobPlayers L11_2 = L11_2[A2_2] L11_2 = #L11_2 L12_2 = 1 for L13_2 = L10_2, L11_2, L12_2 do L14_2 = TriggerClientEvent L15_2 = "tk_mdt:updateProfile" L16_2 = jobPlayers L16_2 = L16_2[A2_2] L16_2 = L16_2[L13_2] L17_2 = L9_2 L14_2(L15_2, L16_2, L17_2) end break end end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "setCallsign" function L61_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2 L3_2 = {} L3_2.identifier = A0_2 L3_2.callsign = A1_2 L4_2 = UpdateEmployeeCallsign L5_2 = L3_2 L6_2 = A2_2 L4_2 = L4_2(L5_2, L6_2) if not L4_2 then return end L5_2 = pairs L6_2 = employees L6_2 = L6_2[A2_2] L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.identifier L12_2 = L3_2.identifier if L11_2 == L12_2 then L11_2 = L3_2.callsign L10_2.callsign = L11_2 break end end L5_2 = jobPlayers L5_2 = L5_2[A2_2] if not L5_2 then L5_2 = {} end L6_2 = 1 L7_2 = #L5_2 L8_2 = 1 for L9_2 = L6_2, L7_2, L8_2 do L10_2 = TriggerClientEvent L11_2 = "tk_mdt:updateEmployeeCallsign" L12_2 = L5_2[L9_2] L13_2 = L3_2 L10_2(L11_2, L12_2, L13_2) end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "createPoliceReport" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 L1_2 = type L2_2 = A0_2 L1_2 = L1_2(L2_2) if "table" == L1_2 then L1_2 = A0_2.playerId if L1_2 then L1_2 = A0_2.title if L1_2 then L1_2 = A0_2.content if L1_2 then goto lbl_16 end end end end do return end ::lbl_16:: L1_2 = GetCharName L2_2 = GetIdentifier L3_2 = GetPlayerFromId L4_2 = A0_2.playerId L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L3_2(L4_2) L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) L1_2 = L1_2(L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) L2_2 = GetPhoneNumber L3_2 = GetIdentifier L4_2 = GetPlayerFromId L5_2 = A0_2.playerId L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L4_2(L5_2) L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2) L3_2 = A0_2.hideName L3_2 = L1_2 or L3_2 if L3_2 or not L1_2 then L3_2 = nil end A0_2.creator = L3_2 L3_2 = A0_2.hidePhoneNumber L3_2 = L2_2 or L3_2 if L3_2 or not L2_2 then L3_2 = nil end A0_2.phoneNumber = L3_2 L3_2 = CreatePoliceReport L4_2 = A0_2 L5_2 = A0_2.page L3_2 = L3_2(L4_2, L5_2) if not L3_2 then return end A0_2.id = L3_2 L4_2 = os L4_2 = L4_2.time L4_2 = L4_2() A0_2.date = L4_2 L4_2 = L10_1 L4_2 = #L4_2 L5_2 = L4_2 + 1 L4_2 = L10_1 L4_2[L5_2] = A0_2 L4_2 = 1 L5_2 = jobPlayers L6_2 = A0_2.page L5_2 = L5_2[L6_2] L5_2 = #L5_2 L6_2 = 1 for L7_2 = L4_2, L5_2, L6_2 do L8_2 = TriggerClientEvent L9_2 = "tk_mdt:addPoliceReport" L10_2 = jobPlayers L11_2 = A0_2.page L10_2 = L10_2[L11_2] L10_2 = L10_2[L7_2] L11_2 = {} L12_2 = A0_2.id L11_2.id = L12_2 L12_2 = A0_2.title L11_2.title = L12_2 L12_2 = A0_2.creator L11_2.creator = L12_2 L12_2 = A0_2.date L11_2.date = L12_2 L8_2(L9_2, L10_2, L11_2) end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "createIncident" function L61_1(A0_2) local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2 L1_2 = type L2_2 = A0_2 L1_2 = L1_2(L2_2) if "table" == L1_2 then L1_2 = A0_2.playerId if L1_2 then goto lbl_10 end end do return end ::lbl_10:: L1_2 = CreateIncident L2_2 = A0_2.playerId L3_2 = A0_2 L4_2 = A0_2.page L1_2 = L1_2(L2_2, L3_2, L4_2) if L1_2 then L3_2 = A0_2.page L2_2 = L7_1 L5_2 = A0_2.page L4_2 = L7_1 L4_2 = L4_2[L5_2] if not L4_2 then L4_2 = {} end L2_2[L3_2] = L4_2 L3_2 = A0_2.page L2_2 = L7_1 L2_2 = L2_2[L3_2] L4_2 = A0_2.page L3_2 = L7_1 L3_2 = L3_2[L4_2] L3_2 = #L3_2 L3_2 = L3_2 + 1 L2_2[L3_2] = L1_2 L2_2 = 1 L3_2 = jobPlayers L4_2 = A0_2.page L3_2 = L3_2[L4_2] L3_2 = #L3_2 L4_2 = 1 for L5_2 = L2_2, L3_2, L4_2 do L6_2 = TriggerClientEvent L7_2 = "tk_mdt:addIncident" L8_2 = jobPlayers L9_2 = A0_2.page L8_2 = L8_2[L9_2] L8_2 = L8_2[L5_2] L9_2 = L1_2 L6_2(L7_2, L8_2, L9_2) end end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "getVehicleBolos" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2 if not A1_2 then A1_2 = "police" end L2_2 = GetBOLOsByPlate L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) if not L2_2 then L2_2 = {} end return L2_2 end L59_1(L60_1, L61_1) function L59_1(A0_2, A1_2) local L2_2, L3_2, L4_2, L5_2, L6_2 if not A1_2 then A1_2 = "police" end L2_2 = MySQL L2_2 = L2_2.Sync L2_2 = L2_2.fetchScalar L3_2 = [[ SELECT callsign FROM tk_mdt_employees WHERE identifier = ? AND page = ? ]] L4_2 = {} L5_2 = A0_2 L6_2 = A1_2 L4_2[1] = L5_2 L4_2[2] = L6_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = L2_2 or L3_2 if not L2_2 then L3_2 = nil end return L3_2 end GetCallsignDatabase = L59_1 L59_1 = exports L60_1 = "getCallsign" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2 L2_2 = GetCallsignDatabase L3_2 = A0_2 L4_2 = A1_2 return L2_2(L3_2, L4_2) end L59_1(L60_1, L61_1) L59_1 = RegisterCallback L60_1 = "tk_mdt:getCallsign" function L61_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2 L3_2 = GetPlayerFromId L4_2 = A0_2 L3_2 = L3_2(L4_2) if not L3_2 then return end L4_2 = GetIdentifier L5_2 = L3_2 L4_2 = L4_2(L5_2) L5_2 = GetCallsignDatabase L6_2 = L4_2 L7_2 = A2_2 L5_2 = L5_2(L6_2, L7_2) L6_2 = A1_2 L7_2 = L5_2 L6_2(L7_2) end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "getPlayerWarrants" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2 if not A1_2 then A1_2 = "police" end L2_2 = GetWarrantsByIdentifier L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = L2_2 or L3_2 if not L2_2 then L3_2 = {} end return L3_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "getVehicleBOLOs" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2 if not A1_2 then A1_2 = "police" end L2_2 = GetBOLOsByPlate L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) L3_2 = L2_2 or L3_2 if not L2_2 then L3_2 = {} end return L3_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "doesPlayerHaveWarrant" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2 if not A1_2 then A1_2 = "police" end L2_2 = GetWarrantsByIdentifier L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) if L2_2 then L3_2 = #L2_2 if L3_2 > 0 then L3_2 = true if L3_2 then goto lbl_17 end end end L3_2 = false ::lbl_17:: return L3_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "doesVehicleHaveBOLO" function L61_1(A0_2, A1_2) local L2_2, L3_2, L4_2 if not A1_2 then A1_2 = "police" end L2_2 = GetBOLOsByPlate L3_2 = A0_2 L4_2 = A1_2 L2_2 = L2_2(L3_2, L4_2) if L2_2 then L3_2 = #L2_2 if L3_2 > 0 then L3_2 = true if L3_2 then goto lbl_17 end end end L3_2 = false ::lbl_17:: return L3_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "getCharges" function L61_1(A0_2) local L1_2 L1_2 = charges L1_2 = L1_2[A0_2] return L1_2 end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "updateProfile" function L61_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 L3_2 = type L4_2 = A0_2 L3_2 = L3_2(L4_2) if "string" ~= L3_2 then L3_2 = print L4_2 = "identifier is not a string" L5_2 = A0_2 L6_2 = type L7_2 = A0_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L3_2 = type L4_2 = A1_2 L3_2 = L3_2(L4_2) if "string" ~= L3_2 then L3_2 = print L4_2 = "page is not a string" L5_2 = A1_2 L6_2 = type L7_2 = A1_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L3_2 = type L4_2 = A2_2 L3_2 = L3_2(L4_2) if "table" ~= L3_2 then L3_2 = print L4_2 = "data is not a table" L5_2 = A2_2 L6_2 = type L7_2 = A2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L3_2 = profiles L3_2 = L3_2[A1_2] if not L3_2 then L4_2 = print L5_2 = "profilesPage is not a table" L6_2 = L3_2 L7_2 = type L8_2 = L3_2 L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L7_2(L8_2) L4_2(L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L4_2 = false L5_2 = pairs L6_2 = L3_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.identifier if L11_2 == A0_2 then L4_2 = true L11_2 = pairs L12_2 = A2_2 L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2) for L15_2, L16_2 in L11_2, L12_2, L13_2, L14_2 do L10_2[L15_2] = L16_2 end L11_2 = SaveProfile L12_2 = L10_2 L13_2 = A0_2 L14_2 = A1_2 L11_2(L12_2, L13_2, L14_2) L11_2 = jobPlayers L11_2 = L11_2[A1_2] if not L11_2 then L11_2 = {} end L12_2 = 1 L13_2 = #L11_2 L14_2 = 1 for L15_2 = L12_2, L13_2, L14_2 do L16_2 = TriggerClientEvent L17_2 = "tk_mdt:updateProfile" L18_2 = L11_2[L15_2] L19_2 = L10_2 L16_2(L17_2, L18_2, L19_2) end break end end if not L4_2 then L5_2 = print L6_2 = "profile not found" L7_2 = A0_2 L8_2 = A1_2 L5_2(L6_2, L7_2, L8_2) return end end L59_1(L60_1, L61_1) L59_1 = exports L60_1 = "updateVehicle" function L61_1(A0_2, A1_2, A2_2) local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 L3_2 = type L4_2 = A0_2 L3_2 = L3_2(L4_2) if "string" ~= L3_2 then L3_2 = print L4_2 = "vehicle plate needs to be a string" L5_2 = A0_2 L6_2 = type L7_2 = A0_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L3_2 = type L4_2 = A1_2 L3_2 = L3_2(L4_2) if "table" ~= L3_2 then L3_2 = print L4_2 = "vehicle data needs to be a table" L5_2 = A1_2 L6_2 = type L7_2 = A1_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L3_2 = type L4_2 = A2_2 L3_2 = L3_2(L4_2) if "string" ~= L3_2 then L3_2 = print L4_2 = "vehicle page needs to be a string" L5_2 = A2_2 L6_2 = type L7_2 = A2_2 L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2) L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) return end L3_2 = L4_1 L3_2 = L3_2[A2_2] if not L3_2 then L4_2 = print L5_2 = "vehicle page not found" L6_2 = A2_2 L4_2(L5_2, L6_2) return end L4_2 = false L5_2 = pairs L6_2 = L3_2 L5_2, L6_2, L7_2, L8_2 = L5_2(L6_2) for L9_2, L10_2 in L5_2, L6_2, L7_2, L8_2 do L11_2 = L10_2.plate if L11_2 == A0_2 then L4_2 = true L11_2 = pairs L12_2 = A1_2 L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2) for L15_2, L16_2 in L11_2, L12_2, L13_2, L14_2 do L10_2[L15_2] = L16_2 end L11_2 = SaveVehicle L12_2 = L10_2 L13_2 = A2_2 L11_2(L12_2, L13_2) L11_2 = jobPlayers L11_2 = L11_2[A2_2] if not L11_2 then L11_2 = {} end L12_2 = 1 L13_2 = #L11_2 L14_2 = 1 for L15_2 = L12_2, L13_2, L14_2 do L16_2 = TriggerClientEvent L17_2 = "tk_mdt:updateVehicle" L18_2 = L11_2[L15_2] L19_2 = L10_2 L16_2(L17_2, L18_2, L19_2) end break end end if not L4_2 then L5_2 = print L6_2 = "vehicle not found" L7_2 = A0_2 L8_2 = A2_2 L5_2(L6_2, L7_2, L8_2) return end L5_2 = Webhook L6_2 = _U L7_2 = "webhook_update" L8_2 = GetPlayerName L9_2 = source L8_2 = L8_2(L9_2) L9_2 = source L10_2 = GetIdentifier L11_2 = GetPlayerFromId L12_2 = source L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L11_2(L12_2) L10_2 = L10_2(L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) L11_2 = A2_2 L12_2 = "Vehicle" L13_2 = json L13_2 = L13_2.encode L14_2 = A1_2 L15_2 = {} L15_2.indent = true L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L13_2(L14_2, L15_2) L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2) end L59_1(L60_1, L61_1) L59_1 = type L60_1 = Config L60_1 = L60_1.MDTs L59_1 = L59_1(L60_1) if "table" ~= L59_1 then L59_1 = error L60_1 = "Config.MDTs is not a table, MDT will not work. If you have copied an old config, make sure to update it to the new format" L59_1(L60_1) end