2026-04-14 17:41:39 +02:00

4126 lines
84 KiB
Lua

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
L0_1 = nil
L1_1 = nil
L2_1 = nil
L3_1 = nil
L4_1 = false
L5_1 = false
L6_1 = {}
L7_1 = {}
function L8_1(A0_2, A1_2)
local L2_2
L2_2 = L7_1
L2_2[A0_2] = A1_2
end
RegisterCallback = L8_1
L8_1 = RegisterNetEvent
L9_1 = "tk_mdt:triggerClientCallback"
function L10_1(A0_2, A1_2, ...)
local L2_2, L3_2, L4_2, L5_2
L2_2 = L7_1
L2_2 = L2_2[A0_2]
if not L2_2 then
L2_2 = print
L3_2 = "[^1ERROR^7] Client Callback not registered, name: ^5%s^7"
L4_2 = L3_2
L3_2 = L3_2.format
L5_2 = A0_2
L3_2, L4_2, L5_2 = L3_2(L4_2, L5_2)
return L2_2(L3_2, L4_2, L5_2)
end
L2_2 = L7_1
L2_2 = L2_2[A0_2]
function L3_2(...)
local L0_3, L1_3, L2_3, L3_3
L0_3 = TriggerServerEvent
L1_3 = "tk_mdt:clientCallback"
L2_3 = A1_2
L3_3 = ...
L0_3(L1_3, L2_3, L3_3)
end
L4_2, L5_2 = ...
L2_2(L3_2, L4_2, L5_2)
end
L8_1(L9_1, L10_1)
L8_1 = 0
L9_1 = {}
function L10_1(A0_2, A1_2, ...)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L3_2 = L8_1
L2_2 = L9_1
L2_2[L3_2] = A1_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:triggerServerCallback"
L4_2 = A0_2
L5_2 = L8_1
L6_2 = GetInvokingResource
L6_2 = L6_2()
if not L6_2 then
L6_2 = "unknown"
end
L7_2 = ...
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = L8_1
L2_2 = L2_2 + 1
L8_1 = L2_2
end
TriggerLatentCallback = L10_1
L10_1 = RegisterNetEvent
L11_1 = "tk_mdt:serverCallback"
function L12_1(A0_2, A1_2, ...)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = L9_1
L2_2 = L2_2[A0_2]
if not L2_2 then
L2_2 = error
L3_2 = "Server Callback with requestId %s called by %s does not exist"
L4_2 = L3_2
L3_2 = L3_2.format
L5_2 = A0_2
L6_2 = A1_2
L3_2, L4_2, L5_2, L6_2 = L3_2(L4_2, L5_2, L6_2)
return L2_2(L3_2, L4_2, L5_2, L6_2)
end
L2_2 = L9_1
L2_2 = L2_2[A0_2]
L3_2, L4_2, L5_2, L6_2 = ...
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = L9_1
L2_2[A0_2] = nil
end
L10_1(L11_1, L12_1)
function L10_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 = PlayerPedId
L0_2 = L0_2()
L1_2 = Config
L1_2 = L1_2.TabletAnim
L2_2 = type
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if "table" ~= L2_2 then
return
end
L2_2 = IsEntityPlayingAnim
L3_2 = L0_2
L4_2 = L1_2.dict
L5_2 = L1_2.name
L6_2 = 3
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if not L2_2 then
L2_2 = LoadDict
L3_2 = L1_2.dict
L2_2(L3_2)
L2_2 = TaskPlayAnim
L3_2 = L0_2
L4_2 = L1_2.dict
L5_2 = L1_2.name
L6_2 = 6.0
L7_2 = 3.0
L8_2 = -1
L9_2 = 49
L10_2 = 1.0
L11_2 = false
L12_2 = false
L13_2 = false
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2)
end
L2_2 = L3_1
if not L2_2 then
L2_2 = LoadModel
L3_2 = Config
L3_2 = L3_2.TabletAnim
L3_2 = L3_2.model
L2_2(L3_2)
L2_2 = GetEntityCoords
L3_2 = L0_2
L2_2 = L2_2(L3_2)
L3_2 = CreateObject
L4_2 = Config
L4_2 = L4_2.TabletAnim
L4_2 = L4_2.model
L5_2 = L2_2.x
L6_2 = L2_2.y
L7_2 = L2_2.z
L8_2 = true
L9_2 = true
L10_2 = true
L3_2 = L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2)
L3_1 = L3_2
L3_2 = AttachEntityToEntity
L4_2 = L3_1
L5_2 = L0_2
L6_2 = GetPedBoneIndex
L7_2 = L0_2
L8_2 = Config
L8_2 = L8_2.TabletAnim
L8_2 = L8_2.bone
L6_2 = L6_2(L7_2, L8_2)
L7_2 = Config
L7_2 = L7_2.TabletAnim
L7_2 = L7_2.pos
L8_2 = Config
L8_2 = L8_2.TabletAnim
L8_2 = L8_2.rot
L9_2 = true
L10_2 = true
L11_2 = false
L12_2 = true
L13_2 = 0
L14_2 = true
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
end
function L11_1()
local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L0_2 = PlayerPedId
L0_2 = L0_2()
L1_2 = Config
L1_2 = L1_2.TabletAnim
L2_2 = type
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if "table" ~= L2_2 then
return
end
L2_2 = IsEntityPlayingAnim
L3_2 = L0_2
L4_2 = L1_2.dict
L5_2 = L1_2.name
L6_2 = 3
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
if L2_2 then
L2_2 = ClearPedTasks
L3_2 = L0_2
L2_2(L3_2)
end
L2_2 = L3_1
if L2_2 then
L2_2 = DoesEntityExist
L3_2 = L3_1
L2_2 = L2_2(L3_2)
if L2_2 then
L2_2 = DeleteEntity
L3_2 = L3_1
L2_2(L3_2)
end
L2_2 = nil
L3_1 = L2_2
end
end
function L12_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 = A0_2.coords
if L1_2 then
L1_2 = next
L2_2 = A0_2.coords
L1_2 = L1_2(L2_2)
if L1_2 then
goto lbl_10
end
end
do return end
::lbl_10::
L1_2 = pairs
L2_2 = A0_2.coords
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.coords
if L7_2 then
L7_2 = L6_2.coords
L7_2 = L7_2.xyzw
if L7_2 then
goto lbl_29
end
L7_2 = L6_2.coords
L7_2 = L7_2.xyz
if L7_2 then
goto lbl_29
end
end
L7_2 = L6_2.xyzw
if not L7_2 then
L7_2 = L6_2.xyz
end
::lbl_29::
L8_2 = L6_2
L9_2 = type
L10_2 = L8_2
L9_2 = L9_2(L10_2)
if "table" == L9_2 then
L8_2.coords = L7_2
else
L9_2 = {}
L9_2.coords = L7_2
L8_2 = L9_2
end
L9_2 = L6_1
L9_2 = #L9_2
L10_2 = L9_2 + 1
L9_2 = L6_1
L11_2 = {}
L11_2.index = L5_2
L11_2.data = L8_2
L12_2 = L8_2
if L12_2 then
L12_2 = L12_2.dist
end
if not L12_2 then
L12_2 = A0_2.interactDist
end
L11_2.interactDist = L12_2
L12_2 = A0_2.label
L11_2.label = L12_2
L12_2 = A0_2.canInteract
L11_2.canInteract = L12_2
L12_2 = A0_2.onInteract
L11_2.onInteract = L12_2
L12_2 = L8_2.marker
L11_2.marker = L12_2
L9_2[L10_2] = L11_2
end
end
function L13_1()
local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L0_2 = L6_1
if L0_2 then
L0_2 = next
L1_2 = L6_1
L0_2 = L0_2(L1_2)
if L0_2 then
goto lbl_10
end
end
do return end
::lbl_10::
function L0_2(A0_3)
local L1_3, L2_3, L3_3, L4_3, L5_3
L1_3 = {}
L2_3 = A0_3.data
L2_3 = L2_3.coords
L2_3 = L2_3.xyz
L1_3.coords = L2_3
L2_3 = A0_3.data
L2_3 = L2_3.size
if not L2_3 then
L2_3 = vec3
L3_3 = 2
L4_3 = 2
L5_3 = 2
L2_3 = L2_3(L3_3, L4_3, L5_3)
end
L1_3.size = L2_3
L2_3 = A0_3.data
L2_3 = L2_3.coords
L2_3 = L2_3.w
if not L2_3 then
L2_3 = 0.0
end
L1_3.rotation = L2_3
L2_3 = {}
L3_3 = {}
L4_3 = A0_3.data
L4_3 = L4_3.icon
if not L4_3 then
L4_3 = "fa-solid fa-hand"
end
L3_3.icon = L4_3
L4_3 = A0_3.interactDist
L3_3.distance = L4_3
L4_3 = A0_3.label
L3_3.label = L4_3
function L4_3()
local L0_4, L1_4, L2_4
L0_4 = A0_3.canInteract
L2_4 = A0_3.index
L1_4 = L6_1
L1_4 = L1_4[L2_4]
L1_4 = L1_4.index
return L0_4(L1_4)
end
L3_3.canInteract = L4_3
function L4_3()
local L0_4, L1_4, L2_4
L0_4 = A0_3.onInteract
L2_4 = A0_3.index
L1_4 = L6_1
L1_4 = L1_4[L2_4]
L1_4 = L1_4.index
L2_4 = A0_3
L0_4(L1_4, L2_4)
end
L3_3.onSelect = L4_3
L2_3[1] = L3_3
L1_3.options = L2_3
L2_3 = OxAddBoxZone
L3_3 = L1_3
L2_3(L3_3)
end
L1_2 = Config
L1_2 = L1_2.UseOxTarget
if L1_2 then
L1_2 = pairs
L2_2 = L6_1
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.data
L7_2 = L7_2.ped
if not L7_2 then
L7_2 = L0_2
L8_2 = L6_2
L7_2(L8_2)
end
end
end
L1_2 = {}
function L2_2(A0_3, A1_3)
local L2_3, L3_3, L4_3, L5_3, L6_3, L7_3, L8_3, L9_3, L10_3, L11_3
L2_3 = LoadModel
L3_3 = A1_3.data
L3_3 = L3_3.ped
L2_3 = L2_3(L3_3)
if not L2_3 then
return
end
L2_3 = L1_2
L3_3 = CreatePed
L4_3 = 4
L5_3 = A1_3.data
L5_3 = L5_3.ped
L6_3 = A1_3.data
L6_3 = L6_3.coords
L6_3 = L6_3.x
L7_3 = A1_3.data
L7_3 = L7_3.coords
L7_3 = L7_3.y
L8_3 = A1_3.data
L8_3 = L8_3.coords
L8_3 = L8_3.z
L8_3 = L8_3 - 1.0
L9_3 = A1_3.data
L9_3 = L9_3.coords
L9_3 = L9_3.w
L10_3 = false
L11_3 = false
L3_3 = L3_3(L4_3, L5_3, L6_3, L7_3, L8_3, L9_3, L10_3, L11_3)
L2_3[A0_3] = L3_3
repeat
L2_3 = Wait
L3_3 = 10
L2_3(L3_3)
L2_3 = DoesEntityExist
L3_3 = L1_2
L3_3 = L3_3[A0_3]
L2_3 = L2_3(L3_3)
until L2_3
L2_3 = SetEntityAsMissionEntity
L3_3 = L1_2
L3_3 = L3_3[A0_3]
L4_3 = true
L5_3 = true
L2_3(L3_3, L4_3, L5_3)
L2_3 = FreezeEntityPosition
L3_3 = L1_2
L3_3 = L3_3[A0_3]
L4_3 = true
L2_3(L3_3, L4_3)
L2_3 = SetEntityInvincible
L3_3 = L1_2
L3_3 = L3_3[A0_3]
L4_3 = true
L2_3(L3_3, L4_3)
L2_3 = SetBlockingOfNonTemporaryEvents
L3_3 = L1_2
L3_3 = L3_3[A0_3]
L4_3 = true
L2_3(L3_3, L4_3)
L2_3 = A1_3.data
L2_3 = L2_3.scenario
if L2_3 then
L2_3 = TaskStartScenarioInPlace
L3_3 = L1_2
L3_3 = L3_3[A0_3]
L4_3 = A1_3.data
L4_3 = L4_3.scenario
L5_3 = 0
L6_3 = true
L2_3(L3_3, L4_3, L5_3, L6_3)
end
L2_3 = Config
L2_3 = L2_3.UseOxTarget
if not L2_3 then
return
end
L2_3 = {}
L3_3 = {}
L4_3 = A1_3.icon
if not L4_3 then
L4_3 = "fa-solid fa-hand"
end
L3_3.icon = L4_3
L4_3 = A1_3.interactDist
L3_3.distance = L4_3
L4_3 = A1_3.label
L3_3.label = L4_3
function L4_3()
local L0_4, L1_4, L2_4
L0_4 = A1_3.canInteract
L2_4 = A1_3.index
L1_4 = L6_1
L1_4 = L1_4[L2_4]
L1_4 = L1_4.index
return L0_4(L1_4)
end
L3_3.canInteract = L4_3
function L4_3()
local L0_4, L1_4, L2_4
L0_4 = A1_3.onInteract
L2_4 = A1_3.index
L1_4 = L6_1
L1_4 = L1_4[L2_4]
L1_4 = L1_4.index
L2_4 = A1_3
L0_4(L1_4, L2_4)
end
L3_3.onSelect = L4_3
L2_3[1] = L3_3
L3_3 = OxAddLocalEntity
L4_3 = L1_2
L4_3 = L4_3[A0_3]
L5_3 = L2_3
L3_3(L4_3, L5_3)
end
L3_2 = {}
L3_2.index = nil
L4_2 = math
L4_2 = L4_2.huge
L3_2.dist = L4_2
L4_2 = {}
L3_2.data = L4_2
L4_2 = CreateThread
function L5_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
while true do
L0_3 = PlayerPedId
L0_3 = L0_3()
L1_3 = GetEntityCoords
L2_3 = L0_3
L1_3 = L1_3(L2_3)
L2_3 = pairs
L3_3 = L6_1
L2_3, L3_3, L4_3, L5_3 = L2_3(L3_3)
for L6_3, L7_3 in L2_3, L3_3, L4_3, L5_3 do
L8_3 = L7_3.data
L8_3 = L8_3.coords
L8_3 = L8_3.xyz
L8_3 = L1_3 - L8_3
L8_3 = #L8_3
if L8_3 <= 100 then
L9_3 = L7_3.data
L9_3 = L9_3.ped
if L9_3 then
L9_3 = L1_2
L9_3 = L9_3[L6_3]
if not L9_3 then
L9_3 = L2_2
L10_3 = L6_3
L11_3 = L7_3
L9_3(L10_3, L11_3)
end
end
L9_3 = Config
L9_3 = L9_3.UseOxTarget
if L9_3 then
else
L9_3 = L7_3.data
L9_3 = L9_3.dist
if not L9_3 then
L9_3 = L7_3.data
L9_3 = L9_3.distance
if not L9_3 then
L9_3 = L7_3.interactDist
if not L9_3 then
L9_3 = 2
end
end
end
if L8_3 <= L9_3 then
L10_3 = L3_2.index
if L10_3 then
L10_3 = L3_2.dist
if not (L8_3 < L10_3) then
goto lbl_71
end
end
L10_3 = L7_3.canInteract
L11_3 = L6_1
L11_3 = L11_3[L6_3]
L11_3 = L11_3.index
L10_3 = L10_3(L11_3)
if L10_3 then
L10_3 = L3_2.index
if L6_3 == L10_3 then
else
L3_2.index = L6_3
L3_2.dist = L8_3
L10_3 = L7_3.data
L3_2.data = L10_3
end
end
::lbl_71::
else
L10_3 = L3_2.index
if L10_3 == L6_3 and L8_3 > L9_3 then
L3_2.index = nil
L10_3 = math
L10_3 = L10_3.huge
L3_2.dist = L10_3
L3_2.data = nil
end
end
end
else
L9_3 = L1_2
L9_3 = L9_3[L6_3]
if L9_3 then
L9_3 = Config
L9_3 = L9_3.UseOxTarget
if L9_3 then
L9_3 = OxRemoveLocalEntity
L10_3 = L1_2
L10_3 = L10_3[L6_3]
L9_3(L10_3)
end
L9_3 = DeleteEntity
L10_3 = L1_2
L10_3 = L10_3[L6_3]
L9_3(L10_3)
L9_3 = L1_2
L9_3[L6_3] = nil
end
end
end
L2_3 = L3_2.index
if L2_3 then
L3_3 = L3_2.index
L2_3 = L6_1
L2_3 = L2_3[L3_3]
L2_3 = L2_3.data
L2_3 = L2_3.coords
L2_3 = L2_3.xyz
L2_3 = L1_3 - L2_3
L2_3 = #L2_3
L3_2.dist = L2_3
end
L2_3 = Wait
L3_3 = 400
L2_3(L3_3)
end
end
L4_2(L5_2)
L4_2 = Config
L4_2 = L4_2.UseOxTarget
if L4_2 then
return
end
L4_2 = CreateThread
function L5_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, L14_3, L15_3, L16_3, L17_3, L18_3, L19_3, L20_3, L21_3
L0_3 = false
L1_3 = nil
while true do
L2_3 = 200
L3_3 = L3_2.index
if L3_3 then
L3_3 = L3_2.data
L3_3 = L3_3.canInteractAnywhere
if not L3_3 then
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.canInteract
L5_3 = L3_2.index
L4_3 = L6_1
L4_3 = L4_3[L5_3]
L4_3 = L4_3.index
L5_3 = L3_2
L3_3 = L3_3(L4_3, L5_3)
if not L3_3 then
goto lbl_162
end
end
L2_3 = 0
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.label
if L3_3 then
L3_3 = type
L5_3 = L3_2.index
L4_3 = L6_1
L4_3 = L4_3[L5_3]
L4_3 = L4_3.label
L3_3 = L3_3(L4_3)
if "function" == L3_3 then
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.label
L5_3 = L3_2.index
L4_3 = L6_1
L4_3 = L4_3[L5_3]
L4_3 = L4_3.index
L3_3 = L3_3(L4_3)
if L3_3 then
goto lbl_53
end
end
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.label
::lbl_53::
L4_3 = Config
L4_3 = L4_3.UseOxLib
if not L4_3 then
L4_3 = Config
L4_3 = L4_3.Framework
if "qb" == L4_3 then
L4_3 = Config
L4_3 = L4_3.HelpNotification
if not L4_3 then
goto lbl_69
end
end
L4_3 = Config
L4_3 = L4_3.Framework
::lbl_69::
if "qb" ~= L4_3 then
L4_3 = Config
L4_3 = L4_3.HelpNotification
if L4_3 then
L4_3 = DisplayHelpText
L5_3 = L3_3
L4_3(L5_3)
else
L4_3 = Draw3DText
L6_3 = L3_2.index
L5_3 = L6_1
L5_3 = L5_3[L6_3]
L5_3 = L5_3.data
L5_3 = L5_3.coords
L5_3 = L5_3.xyz
L6_3 = L3_3
L4_3(L5_3, L6_3)
end
end
elseif not L0_3 or L3_3 ~= L1_3 then
L0_3 = true
L1_3 = L3_3
L4_3 = ShowTextUI
L5_3 = L3_3
L4_3(L5_3)
end
end
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.marker
if L3_3 then
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.marker
L4_3 = DrawMarker
L5_3 = L3_3.type
L7_3 = L3_2.index
L6_3 = L6_1
L6_3 = L6_3[L7_3]
L6_3 = L6_3.data
L6_3 = L6_3.coords
L6_3 = L6_3.xyz
L7_3 = 0.0
L8_3 = 0.0
L9_3 = 0.0
L10_3 = 0.0
L11_3 = 0.0
L12_3 = 0.0
L13_3 = L3_3.scale
L13_3 = L13_3.x
L14_3 = L3_3.scale
L14_3 = L14_3.y
L15_3 = L3_3.scale
L15_3 = L15_3.z
L16_3 = L3_3.color
L16_3 = L16_3.x
L17_3 = L3_3.color
L17_3 = L17_3.y
L18_3 = L3_3.color
L18_3 = L18_3.z
L19_3 = L3_3.color
L19_3 = L19_3.w
L20_3 = L3_3.bob
L21_3 = L3_3.faceCamera
L4_3(L5_3, L6_3, L7_3, L8_3, L9_3, L10_3, L11_3, L12_3, L13_3, L14_3, L15_3, L16_3, L17_3, L18_3, L19_3, L20_3, L21_3)
end
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.onInteract
if L3_3 then
L3_3 = IsControlJustPressed
L4_3 = 0
L5_3 = Config
L5_3 = L5_3.Controls
L5_3 = L5_3.interact
L3_3 = L3_3(L4_3, L5_3)
if L3_3 then
L4_3 = L3_2.index
L3_3 = L6_1
L3_3 = L3_3[L4_3]
L3_3 = L3_3.onInteract
L5_3 = L3_2.index
L4_3 = L6_1
L4_3 = L4_3[L5_3]
L4_3 = L4_3.index
L5_3 = L3_2
L3_3(L4_3, L5_3)
end
end
::lbl_162::
elseif L0_3 then
L3_3 = HideTextUI
L3_3()
L0_3 = false
end
L3_3 = Wait
L4_3 = L2_3
L3_3(L4_3)
end
end
L4_2(L5_2)
end
frameworkLoaded = false
function L14_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerLatentCallback
L3_2 = "tk_mdt:getUIData"
function L4_2(A0_3)
local L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3, L8_3
L1_3 = type
L2_3 = A0_3.vehicles
L1_3 = L1_3(L2_3)
if "table" == L1_3 then
L1_3 = pairs
L2_3 = A0_3.vehicles
L1_3, L2_3, L3_3, L4_3 = L1_3(L2_3)
for L5_3, L6_3 in L1_3, L2_3, L3_3, L4_3 do
L7_3 = GetVehicleName
L8_3 = L6_3.model
L7_3 = L7_3(L8_3)
L6_3.name = L7_3
L6_3.model = nil
end
end
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L2_2(L3_2, L4_2, L5_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L15_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = SetNuiFocus
L3_2 = A0_2
L4_2 = A0_2
L2_2(L3_2, L4_2)
L2_2 = SendNUIMessage
L3_2 = {}
L3_2.action = "setVisible"
L4_2 = {}
L4_2.visible = A0_2
L4_2.page = A1_2
L3_2.data = L4_2
L2_2(L3_2)
end
function L16_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = type
L2_2 = A0_2
L1_2 = L1_2(L2_2)
if "table" ~= L1_2 then
L1_2 = true
return L1_2
end
L1_2 = Config
L1_2 = L1_2.DebugMode
if L1_2 then
L1_2 = print
L2_2 = "IsOnDuty"
L3_2 = IsOnDuty
L3_2, L4_2, L5_2, L6_2 = L3_2()
L1_2(L2_2, L3_2, L4_2, L5_2, L6_2)
end
L1_2 = IsOnDuty
L1_2 = L1_2()
if not L1_2 then
return
end
L1_2 = GetJobName
L1_2 = L1_2()
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "jobs"
L4_2 = L1_2
L5_2 = json
L5_2 = L5_2.encode
L6_2 = A0_2
L5_2, L6_2 = L5_2(L6_2)
L2_2(L3_2, L4_2, L5_2, L6_2)
end
L2_2 = A0_2[L1_2]
return L2_2
end
function L17_1(A0_2)
local L1_2, L2_2, L3_2, L4_2
if not A0_2 then
A0_2 = L0_1
end
L1_2 = Config
L1_2 = L1_2.DebugMode
if L1_2 then
L1_2 = print
L2_2 = "getting uiData"
L1_2(L2_2)
end
L1_2 = L14_1
L2_2 = A0_2
L1_2 = L1_2(L2_2)
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "got uiData"
L4_2 = L1_2
L2_2(L3_2, L4_2)
end
L1_2.loading = false
L1_2.page = A0_2
L2_2 = GetIdentifier
L2_2 = L2_2()
L1_2.identifier = L2_2
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "uiData"
L4_2 = L1_2
L2_2(L3_2, L4_2)
end
L2_2 = SendNUIMessage
L3_2 = {}
L3_2.action = "init"
L3_2.data = L1_2
L2_2(L3_2)
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "uiData sent"
L2_2(L3_2)
end
end
function L18_1(A0_2, A1_2, A2_2)
local L3_2, L4_2, L5_2, L6_2
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "initDone"
L5_2 = L4_1
L3_2(L4_2, L5_2)
end
repeat
L3_2 = Wait
L4_2 = 100
L3_2(L4_2)
L3_2 = L4_1
until L3_2
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "OpenUI"
L5_2 = A0_2
L3_2(L4_2, L5_2)
end
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "HasJob"
L5_2 = L16_1
L6_2 = Config
L6_2 = L6_2.MDTs
L6_2 = L6_2[A0_2]
L6_2 = L6_2.jobs
L5_2 = "report" ~= A0_2 and L5_2
L3_2(L4_2, L5_2)
end
if "report" ~= A0_2 then
L3_2 = L16_1
L4_2 = Config
L4_2 = L4_2.MDTs
L4_2 = L4_2[A0_2]
L4_2 = L4_2.jobs
L3_2 = L3_2(L4_2)
if not L3_2 then
return
end
end
L3_2 = L5_1
if L3_2 then
return
end
if "report" == A0_2 and not A2_2 then
A2_2 = "police"
end
L3_2 = A2_2 or L3_2
if not A2_2 then
L3_2 = A0_2
end
L0_1 = L3_2
if "report" ~= A0_2 and not A1_2 then
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "tablet anim"
L3_2(L4_2)
end
L3_2 = L10_1
L3_2()
end
if "report" == A0_2 then
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "report page"
L3_2(L4_2)
end
L3_2 = SendNUIMessage
L4_2 = {}
L4_2.action = "init"
L5_2 = {}
L6_2 = GetCharName
L6_2 = L6_2()
L5_2.name = L6_2
L6_2 = GetPhoneNumber
L6_2 = L6_2()
L5_2.phoneNumber = L6_2
L4_2.data = L5_2
L3_2(L4_2)
end
L3_2 = true
L5_1 = L3_2
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "SetNuiVisible"
L3_2(L4_2)
end
L3_2 = L15_1
L4_2 = true
L5_2 = A0_2
L3_2(L4_2, L5_2)
L3_2 = Config
L3_2 = L3_2.DebugMode
if L3_2 then
L3_2 = print
L4_2 = "GetUIData"
L5_2 = A0_2
L6_2 = L1_1
L3_2(L4_2, L5_2, L6_2)
end
if "report" ~= A0_2 then
L3_2 = L1_1
if L3_2 then
L3_2 = L1_1
if L3_2 == A0_2 then
goto lbl_133
end
end
L3_2 = L17_1
L3_2()
end
::lbl_133::
L1_1 = A0_2
end
function L19_1()
local L0_2, L1_2
L0_2 = L5_1
if not L0_2 then
return
end
L0_2 = L0_1
if "report" ~= L0_2 then
L0_2 = L11_1
L0_2()
end
L0_2 = false
L5_1 = L0_2
L0_2 = L15_1
L1_2 = false
L0_2(L1_2)
end
function L20_1()
local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_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 = L5_2.command
if L6_2 then
L6_2 = RegisterCommand
L7_2 = L5_2.command
function L8_2()
local L0_3, L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3, L8_3
L0_3 = Config
L0_3 = L0_3.NeedItemCommand
if L0_3 then
L0_3 = L5_2.items
L1_3 = pairs
L2_3 = L0_3
L1_3, L2_3, L3_3, L4_3 = L1_3(L2_3)
for L5_3, L6_3 in L1_3, L2_3, L3_3, L4_3 do
L7_3 = GetItemAmount
L8_3 = L6_3
L7_3 = L7_3(L8_3)
if L7_3 > 0 then
L7_3 = L18_1
L8_3 = L4_2
L7_3(L8_3)
return
end
end
return
end
L0_3 = L18_1
L1_3 = L4_2
L0_3(L1_3)
end
L9_2 = false
L6_2(L7_2, L8_2, L9_2)
end
end
end
function L21_1()
local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L0_2 = GetJobName
L0_2 = L0_2()
L1_2 = GetGradeId
L1_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 = type
L9_2 = L7_2.jobs
L8_2 = L8_2(L9_2)
if "table" == L8_2 then
L8_2 = L7_2.jobs
L8_2 = L8_2[L0_2]
if L8_2 then
L8_2 = L7_2.jobs
L8_2 = L8_2[L0_2]
if L1_2 >= L8_2 then
return L6_2
end
end
else
L8_2 = L7_2.jobs
if L8_2 then
L8_2 = next
L9_2 = L7_2.jobs
L8_2 = L8_2(L9_2)
if L8_2 then
goto lbl_34
end
end
return L6_2
end
::lbl_34::
end
return
end
function L22_1(A0_2)
local L1_2, L2_2, L3_2
function L1_2(A0_3)
local 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, L14_3, L15_3, L16_3, L17_3
L1_3 = type
L2_3 = A0_3
L1_3 = L1_3(L2_3)
if "number" == L1_3 or "boolean" == L1_3 then
L2_3 = tostring
L3_3 = A0_3
return L2_3(L3_3)
elseif "string" == L1_3 then
L2_3 = string
L2_3 = L2_3.format
L3_3 = "%q"
L4_3 = A0_3
return L2_3(L3_3, L4_3)
elseif "function" == L1_3 then
L2_3 = string
L2_3 = L2_3.format
L3_3 = "%q"
L4_3 = "function: "
L5_3 = tostring
L6_3 = A0_3
L5_3 = L5_3(L6_3)
L4_3 = L4_3 .. L5_3
return L2_3(L3_3, L4_3)
elseif "table" == L1_3 then
L2_3 = true
L3_3 = 1
L4_3 = pairs
L5_3 = A0_3
L4_3, L5_3, L6_3, L7_3 = L4_3(L5_3)
for L8_3 in L4_3, L5_3, L6_3, L7_3 do
if L8_3 ~= L3_3 then
L2_3 = false
break
end
L3_3 = L3_3 + 1
end
L4_3 = {}
if L2_3 then
L5_3 = ipairs
L6_3 = A0_3
L5_3, L6_3, L7_3, L8_3 = L5_3(L6_3)
for L9_3, L10_3 in L5_3, L6_3, L7_3, L8_3 do
L11_3 = table
L11_3 = L11_3.insert
L12_3 = L4_3
L13_3 = L1_2
L14_3 = L10_3
L13_3, L14_3, L15_3, L16_3, L17_3 = L13_3(L14_3)
L11_3(L12_3, L13_3, L14_3, L15_3, L16_3, L17_3)
end
L5_3 = "["
L6_3 = table
L6_3 = L6_3.concat
L7_3 = L4_3
L8_3 = ","
L6_3 = L6_3(L7_3, L8_3)
L7_3 = "]"
L5_3 = L5_3 .. L6_3 .. L7_3
return L5_3
else
L5_3 = pairs
L6_3 = A0_3
L5_3, L6_3, L7_3, L8_3 = L5_3(L6_3)
for L9_3, L10_3 in L5_3, L6_3, L7_3, L8_3 do
L11_3 = table
L11_3 = L11_3.insert
L12_3 = L4_3
L13_3 = string
L13_3 = L13_3.format
L14_3 = "%q:%s"
L15_3 = L9_3
L16_3 = L1_2
L17_3 = L10_3
L16_3, L17_3 = L16_3(L17_3)
L13_3, L14_3, L15_3, L16_3, L17_3 = L13_3(L14_3, L15_3, L16_3, L17_3)
L11_3(L12_3, L13_3, L14_3, L15_3, L16_3, L17_3)
end
L5_3 = "{"
L6_3 = table
L6_3 = L6_3.concat
L7_3 = L4_3
L8_3 = ","
L6_3 = L6_3(L7_3, L8_3)
L7_3 = "}"
L5_3 = L5_3 .. L6_3 .. L7_3
return L5_3
end
else
L2_3 = "null"
return L2_3
end
end
L2_2 = L1_2
L3_2 = A0_2
return L2_2(L3_2)
end
function L23_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
L0_2 = type
L1_2 = Config
L1_2 = L1_2.PoliceReportLocations
L0_2 = L0_2(L1_2)
if "table" == L0_2 then
L0_2 = Config
L0_2 = L0_2.DebugMode
if L0_2 then
L0_2 = print
L1_2 = "adding police report locations"
L2_2 = Config
L2_2 = L2_2.PoliceReportLocations
L0_2(L1_2, L2_2)
end
L0_2 = L12_1
L1_2 = {}
L2_2 = Config
L2_2 = L2_2.PoliceReportLocations
L1_2.coords = L2_2
L2_2 = Config
L2_2 = L2_2.UseOxTarget
if L2_2 then
L2_2 = _U
L3_2 = "make_report"
L2_2 = L2_2(L3_2)
if L2_2 then
goto lbl_38
end
end
L2_2 = _U
L3_2 = "interact_button"
L2_2 = L2_2(L3_2)
L3_2 = _U
L4_2 = "make_report"
L3_2 = L3_2(L4_2)
L2_2 = L2_2 .. L3_2
::lbl_38::
L1_2.label = L2_2
function L2_2()
local L0_3, L1_3
L0_3 = L5_1
L0_3 = not L0_3
return L0_3
end
L1_2.canInteract = L2_2
function L2_2(A0_3, A1_3)
local L2_3, L3_3, L4_3, L5_3, L6_3, L7_3
L2_3 = Config
L2_3 = L2_3.DebugMode
if L2_3 then
L2_3 = print
L3_3 = "onInteract"
L4_3 = A0_3
L5_3 = A1_3
L6_3 = type
L7_3 = A1_3
L6_3, L7_3 = L6_3(L7_3)
L2_3(L3_3, L4_3, L5_3, L6_3, L7_3)
L2_3 = type
L3_3 = A1_3
L2_3 = L2_3(L3_3)
if "table" == L2_3 then
L2_3 = print
L3_3 = "zone"
L4_3 = L22_1
L5_3 = A1_3
L4_3, L5_3, L6_3, L7_3 = L4_3(L5_3)
L2_3(L3_3, L4_3, L5_3, L6_3, L7_3)
end
end
L2_3 = A1_3
if L2_3 then
L2_3 = L2_3.data
end
if L2_3 then
L2_3 = L2_3.page
end
L3_3 = Config
L3_3 = L3_3.DebugMode
if L3_3 then
L3_3 = print
L4_3 = "page"
L5_3 = L2_3
L3_3(L4_3, L5_3)
end
L3_3 = type
L4_3 = L2_3
L3_3 = L3_3(L4_3)
if "string" ~= L3_3 or not L2_3 then
L2_3 = "police"
end
L3_3 = Config
L3_3 = L3_3.DebugMode
if L3_3 then
L3_3 = print
L4_3 = "page2"
L5_3 = L2_3
L3_3(L4_3, L5_3)
end
L3_3 = L18_1
L4_3 = "report"
L5_3 = nil
L6_3 = L2_3
L3_3(L4_3, L5_3, L6_3)
end
L1_2.onInteract = L2_2
L0_2(L1_2)
end
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 = type
L8_2 = L6_2.locations
L7_2 = L7_2(L8_2)
if "table" == L7_2 then
L7_2 = pairs
L8_2 = L6_2.locations
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
L13_2 = L13_2 + 1
L0_2[L13_2] = L12_2
end
end
end
L1_2 = type
L2_2 = L0_2
L1_2 = L1_2(L2_2)
if "table" == L1_2 then
L1_2 = L12_1
L2_2 = {}
L2_2.coords = L0_2
L3_2 = Config
L3_2 = L3_2.UseOxTarget
if L3_2 then
L3_2 = _U
L4_2 = "open_mdt"
L3_2 = L3_2(L4_2)
if L3_2 then
goto lbl_95
end
end
L3_2 = _U
L4_2 = "interact_button"
L3_2 = L3_2(L4_2)
L4_2 = _U
L5_2 = "open_mdt"
L4_2 = L4_2(L5_2)
L3_2 = L3_2 .. L4_2
::lbl_95::
L2_2.label = L3_2
function L3_2()
local L0_3, L1_3
L0_3 = L5_1
L0_3 = not L0_3
return L0_3
end
L2_2.canInteract = L3_2
function L3_2()
local L0_3, L1_3, L2_3, L3_3, L4_3
L0_3 = L21_1
L0_3 = L0_3()
if L0_3 then
L1_3 = L18_1
L2_3 = L0_3
L1_3(L2_3)
else
L1_3 = print
L2_3 = "No MDT page found for job"
L3_3 = GetJobName
L3_3 = L3_3()
L4_3 = GetGradeId
L4_3 = L4_3()
L1_3(L2_3, L3_3, L4_3)
end
end
L2_2.onInteract = L3_2
L1_2(L2_2)
end
end
function L24_1()
local L0_2, L1_2, L2_2, L3_2
L0_2 = promise
L0_2 = L0_2.new
L0_2 = L0_2()
L1_2 = TriggerCallback
L2_2 = "tk_mdt:getFivemanageToken"
function L3_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L0_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L1_2(L2_2, L3_2)
L1_2 = Citizen
L1_2 = L1_2.Await
L2_2 = L0_2
return L1_2(L2_2)
end
function L25_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
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 "table" == L8_2 then
L8_2 = L25_1
L9_2 = L7_2
L8_2 = L8_2(L9_2)
L1_2[L6_2] = L8_2
else
L8_2 = type
L9_2 = L7_2
L8_2 = L8_2(L9_2)
if "function" ~= L8_2 then
L1_2[L6_2] = L7_2
else
L1_2[L6_2] = true
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
L0_2 = Wait
L1_2 = 2000
L0_2(L1_2)
L0_2 = Config
L0_2 = L0_2.DebugMode
if L0_2 then
L0_2 = print
L1_2 = "starting init"
L0_2(L1_2)
end
L0_2 = L24_1
L0_2 = L0_2()
L2_1 = L0_2
L0_2 = Config
L0_2 = L0_2.DebugMode
if L0_2 then
L0_2 = print
L1_2 = "fivemanageToken fetched"
L0_2(L1_2)
end
L0_2 = L23_1
L0_2()
L0_2 = Config
L0_2 = L0_2.DebugMode
if L0_2 then
L0_2 = print
L1_2 = "dist checks done"
L0_2(L1_2)
end
L0_2 = L13_1
L0_2()
L0_2 = Config
L0_2 = L0_2.DebugMode
if L0_2 then
L0_2 = print
L1_2 = "dist checks looping"
L0_2(L1_2)
end
L0_2 = L20_1
L0_2()
L0_2 = Config
L0_2 = L0_2.DebugMode
if L0_2 then
L0_2 = print
L1_2 = "commands registered"
L0_2(L1_2)
end
L0_2 = GetCharName
L0_2 = L0_2()
L1_2 = Config
L1_2 = L1_2.DebugMode
if L1_2 then
L1_2 = print
L2_2 = "char name"
L3_2 = L0_2
L1_2(L2_2, L3_2)
end
L1_2 = GetPhoneNumber
L1_2 = L1_2()
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "phoneNumber"
L4_2 = L1_2
L2_2(L3_2, L4_2)
end
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "locales"
L4_2 = Locales
L5_2 = Config
L5_2 = L5_2.Locale
L4_2 = L4_2[L5_2]
L2_2(L3_2, L4_2)
end
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "Config.Locale"
L4_2 = Config
L4_2 = L4_2.Locale
L2_2(L3_2, L4_2)
end
L2_2 = L25_1
L3_2 = Config
L2_2 = L2_2(L3_2)
L3_2 = SendNUIMessage
L4_2 = {}
L4_2.action = "init"
L5_2 = {}
L6_2 = Locales
L7_2 = Config
L7_2 = L7_2.Locale
L6_2 = L6_2[L7_2]
L5_2.locales = L6_2
L5_2.config = L2_2
L5_2.name = L0_2
L5_2.phoneNumber = L1_2
L4_2.data = L5_2
L3_2(L4_2)
L3_2 = Wait
L4_2 = 2000
L3_2(L4_2)
L3_2 = true
L4_1 = L3_2
end
function L27_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:addTag"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L28_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getProfile"
function L4_2(A0_3)
local L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3, L8_3, L9_3
L1_3 = type
L2_3 = A0_3.sideBarData
L2_3 = L2_3.vehicles
L1_3 = L1_3(L2_3)
if "table" == L1_3 then
L1_3 = pairs
L2_3 = A0_3.sideBarData
L2_3 = L2_3.vehicles
L1_3, L2_3, L3_3, L4_3 = L1_3(L2_3)
for L5_3, L6_3 in L1_3, L2_3, L3_3, L4_3 do
L7_3 = A0_3.sideBarData
L7_3 = L7_3.vehicles
L7_3 = L7_3[L5_3]
L8_3 = GetVehicleName
L9_3 = L6_3.model
L8_3 = L8_3(L9_3)
L7_3.name = L8_3
L7_3 = A0_3.sideBarData
L7_3 = L7_3.vehicles
L7_3 = L7_3[L5_3]
L7_3.model = nil
end
end
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L29_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getLaw"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L30_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getVehicle"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L31_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getProperty"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L32_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getBusiness"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L33_1()
local L0_2, L1_2, L2_2, L3_2, L4_2
L0_2 = promise
L0_2 = L0_2.new
L0_2 = L0_2()
L1_2 = TriggerCallback
L2_2 = "tk_mdt:createIncident"
function L3_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L0_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L4_2 = L0_1
L1_2(L2_2, L3_2, L4_2)
L1_2 = Citizen
L1_2 = L1_2.Await
L2_2 = L0_2
return L1_2(L2_2)
end
function L34_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getIncident"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L35_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:createReport"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = L0_1
L6_2 = A0_2
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L36_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getReport"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L37_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:createTrainingReport"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L38_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getTrainingReport"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L39_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getPoliceReport"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L40_1()
local L0_2, L1_2, L2_2, L3_2, L4_2
L0_2 = promise
L0_2 = L0_2.new
L0_2 = L0_2()
L1_2 = TriggerCallback
L2_2 = "tk_mdt:createEvidence"
function L3_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L0_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L4_2 = L0_1
L1_2(L2_2, L3_2, L4_2)
L1_2 = Citizen
L1_2 = L1_2.Await
L2_2 = L0_2
return L1_2(L2_2)
end
function L41_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getEvidenceItem"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L42_1()
local L0_2, L1_2, L2_2, L3_2, L4_2
L0_2 = promise
L0_2 = L0_2.new
L0_2 = L0_2()
L1_2 = TriggerCallback
L2_2 = "tk_mdt:createWeapon"
function L3_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L0_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L4_2 = L0_1
L1_2(L2_2, L3_2, L4_2)
L1_2 = Citizen
L1_2 = L1_2.Await
L2_2 = L0_2
return L1_2(L2_2)
end
function L43_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getWeapon"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L6_2 = L0_1
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
function L44_1()
local L0_2, L1_2, L2_2, L3_2, L4_2
L0_2 = promise
L0_2 = L0_2.new
L0_2 = L0_2()
L1_2 = TriggerCallback
L2_2 = "tk_mdt:getActiveUnits"
function L3_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L0_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L4_2 = L0_1
L1_2(L2_2, L3_2, L4_2)
L1_2 = Citizen
L1_2 = L1_2.Await
L2_2 = L0_2
return L1_2(L2_2)
end
function L45_1()
local L0_2, L1_2
L0_2 = HideHelpTextThisFrame
L0_2()
L0_2 = HideHudAndRadarThisFrame
L0_2()
L0_2 = HideHudComponentThisFrame
L1_2 = 1
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 2
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 3
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 4
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 6
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 7
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 8
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 9
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 13
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 11
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 12
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 15
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 18
L0_2(L1_2)
L0_2 = HideHudComponentThisFrame
L1_2 = 19
L0_2(L1_2)
end
function L46_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 = -1286783315
L1_2 = {}
L1_2.dict = "amb@world_human_paparazzi@male@base"
L1_2.name = "base"
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "LoadDict"
L2_2(L3_2)
end
L2_2 = LoadDict
L3_2 = L1_2.dict
L2_2 = L2_2(L3_2)
if not L2_2 then
return
end
L2_2 = Config
L2_2 = L2_2.DebugMode
if L2_2 then
L2_2 = print
L3_2 = "LoadModel"
L2_2(L3_2)
end
L2_2 = LoadModel
L3_2 = L0_2
L2_2 = L2_2(L3_2)
if not L2_2 then
return
end
L2_2 = PlayerPedId
L2_2 = L2_2()
L3_2 = GetEntityCoords
L4_2 = L2_2
L3_2 = L3_2(L4_2)
L4_2 = nil
L5_2 = Config
L5_2 = L5_2.DebugMode
if L5_2 then
L5_2 = print
L6_2 = "TaskPlayAnim"
L5_2(L6_2)
end
L5_2 = TaskPlayAnim
L6_2 = L2_2
L7_2 = L1_2.dict
L8_2 = L1_2.name
L9_2 = 2.0
L10_2 = 2.0
L11_2 = -1
L12_2 = 49
L13_2 = 0
L14_2 = false
L15_2 = false
L16_2 = false
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 = CreateObject
L6_2 = L0_2
L7_2 = L3_2.x
L8_2 = L3_2.y
L9_2 = L3_2.z
L9_2 = L9_2 + 0.2
L10_2 = true
L11_2 = true
L12_2 = true
L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2)
L4_2 = L5_2
L5_2 = Config
L5_2 = L5_2.DebugMode
if L5_2 then
L5_2 = print
L6_2 = "camera"
L5_2(L6_2)
end
L5_2 = AttachEntityToEntity
L6_2 = L4_2
L7_2 = L2_2
L8_2 = GetPedBoneIndex
L9_2 = L2_2
L10_2 = 28422
L8_2 = L8_2(L9_2, L10_2)
L9_2 = 0.0
L10_2 = 0.0
L11_2 = 0.0
L12_2 = 0.0
L13_2 = 0.0
L14_2 = 0.0
L15_2 = true
L16_2 = true
L17_2 = false
L18_2 = true
L19_2 = 1
L20_2 = true
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)
L5_2 = SetModelAsNoLongerNeeded
L6_2 = L0_2
L5_2(L6_2)
L5_2 = Wait
L6_2 = 1000
L5_2(L6_2)
L5_2 = DeleteEntity
L6_2 = L4_2
L5_2(L6_2)
L5_2 = ClearPedTasks
L6_2 = L2_2
L5_2(L6_2)
L5_2 = Config
L5_2 = L5_2.DebugMode
if L5_2 then
L5_2 = print
L6_2 = "done"
L5_2(L6_2)
end
end
function L47_1(A0_2)
local L1_2, L2_2, L3_2, L4_2
L1_2 = Config
L1_2 = L1_2.DebugMode
if L1_2 then
L1_2 = print
L2_2 = "taking photo"
L3_2 = L2_1
L3_2 = not L3_2
L4_2 = L2_1
L4_2 = "" == L4_2
L1_2(L2_2, L3_2, L4_2)
end
L1_2 = L2_1
if L1_2 then
L1_2 = L2_1
if "" ~= L1_2 then
goto lbl_25
end
end
L1_2 = error
L2_2 = "No token set for fivemanage, can't take photo. If you are the server owner, refer to tk_mdt documentation."
do return L1_2(L2_2) end
::lbl_25::
L1_2 = CreateThread
function L2_2()
local L0_3, L1_3, L2_3, L3_3, L4_3, L5_3, L6_3, L7_3
L0_3 = GetFollowPedCamViewMode
L0_3 = L0_3()
L1_3 = Config
L1_3 = L1_3.DebugMode
if L1_3 then
L1_3 = print
L2_3 = "camMode"
L3_3 = L0_3
L1_3(L2_3, L3_3)
end
L1_3 = true
L2_3 = false
L3_3 = TogglePhotoMode
L4_3 = true
L3_3(L4_3)
while L1_3 do
L3_3 = GetFollowPedCamViewMode
L3_3 = L3_3()
if 4 ~= L3_3 then
L3_3 = SetFollowPedCamViewMode
L4_3 = 4
L3_3(L4_3)
end
L3_3 = DisableControlAction
L4_3 = 0
L5_3 = 0
L6_3 = true
L3_3(L4_3, L5_3, L6_3)
L3_3 = IsRadarHidden
L3_3 = L3_3()
if not L3_3 then
L3_3 = DisplayRadar
L4_3 = false
L3_3(L4_3)
end
L3_3 = L45_1
L3_3()
L3_3 = IsControlJustPressed
L4_3 = 0
L5_3 = Config
L5_3 = L5_3.Controls
L5_3 = L5_3.takePhoto
L3_3 = L3_3(L4_3, L5_3)
if L3_3 and not L2_3 then
L2_3 = true
L3_3 = Config
L3_3 = L3_3.DebugMode
if L3_3 then
L3_3 = print
L4_3 = "IsControlJustPressed"
L5_3 = GetResourceState
L6_3 = "screenshot-basic"
L5_3, L6_3, L7_3 = L5_3(L6_3)
L3_3(L4_3, L5_3, L6_3, L7_3)
end
L3_3 = TakeScreenshot
L4_3 = L2_1
L3_3 = L3_3(L4_3)
L4_3 = Config
L4_3 = L4_3.DebugMode
if L4_3 then
L4_3 = print
L5_3 = "url"
L6_3 = L3_3
L4_3(L5_3, L6_3)
end
L4_3 = L18_1
L5_3 = L0_1
L4_3(L5_3)
L4_3 = Config
L4_3 = L4_3.DebugMode
if L4_3 then
L4_3 = print
L5_3 = "waiting"
L4_3(L5_3)
end
L4_3 = Wait
L5_3 = 1000
L4_3(L5_3)
L4_3 = L46_1
L4_3()
L4_3 = SendNUIMessage
L5_3 = {}
L5_3.action = "photoTaken"
L6_3 = {}
L6_3.url = L3_3
L7_3 = A0_2
L6_3.page = L7_3
L5_3.data = L6_3
L4_3(L5_3)
L1_3 = false
end
L3_3 = IsControlJustPressed
L4_3 = 0
L5_3 = Config
L5_3 = L5_3.Controls
L5_3 = L5_3.cancelPhoto
L3_3 = L3_3(L4_3, L5_3)
if L3_3 then
L1_3 = false
end
L3_3 = Wait
L4_3 = 0
L3_3(L4_3)
end
L3_3 = TogglePhotoMode
L4_3 = false
L3_3(L4_3)
L3_3 = SetFollowPedCamViewMode
L4_3 = L0_3
L3_3(L4_3)
L3_3 = DisplayRadar
L4_3 = true
L3_3(L4_3)
end
L1_2(L2_2)
end
function L48_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = HasAnimDictLoaded
L2_2 = A0_2
L1_2 = L1_2(L2_2)
if L1_2 then
L1_2 = true
return L1_2
end
L1_2 = RequestAnimDict
L2_2 = A0_2
L1_2(L2_2)
L1_2 = GetGameTimer
L1_2 = L1_2()
L1_2 = L1_2 + 5000
while true do
L2_2 = HasAnimDictLoaded
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if L2_2 then
break
end
L2_2 = GetGameTimer
L2_2 = L2_2()
if not (L1_2 > L2_2) then
break
end
L2_2 = Wait
L3_2 = 10
L2_2(L3_2)
end
L2_2 = HasAnimDictLoaded
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if not L2_2 then
L2_2 = error
L3_2 = "Failed to load anim dict \"%s\""
L4_2 = L3_2
L3_2 = L3_2.format
L5_2 = A0_2
L3_2, L4_2, L5_2 = L3_2(L4_2, L5_2)
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = HasAnimDictLoaded
L3_2 = A0_2
return L2_2(L3_2)
end
LoadDict = L48_1
function L48_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = HasModelLoaded
L2_2 = A0_2
L1_2 = L1_2(L2_2)
if L1_2 then
L1_2 = true
return L1_2
end
L1_2 = RequestModel
L2_2 = A0_2
L1_2(L2_2)
L1_2 = GetGameTimer
L1_2 = L1_2()
L1_2 = L1_2 + 5000
while true do
L2_2 = HasModelLoaded
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if L2_2 then
break
end
L2_2 = GetGameTimer
L2_2 = L2_2()
if not (L1_2 > L2_2) then
break
end
L2_2 = Wait
L3_2 = 10
L2_2(L3_2)
end
L2_2 = HasModelLoaded
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if not L2_2 then
L2_2 = error
L3_2 = "Failed to load model \"%s\""
L4_2 = L3_2
L3_2 = L3_2.format
L5_2 = A0_2
L3_2, L4_2, L5_2 = L3_2(L4_2, L5_2)
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = HasModelLoaded
L3_2 = A0_2
return L2_2(L3_2)
end
LoadModel = L48_1
function L48_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = HasNamedPtfxAssetLoaded
L2_2 = A0_2
L1_2 = L1_2(L2_2)
if L1_2 then
L1_2 = true
return L1_2
end
L1_2 = RequestNamedPtfxAsset
L2_2 = A0_2
L1_2(L2_2)
L1_2 = GetGameTimer
L1_2 = L1_2()
L1_2 = L1_2 + 5000
while true do
L2_2 = HasNamedPtfxAssetLoaded
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if L2_2 then
break
end
L2_2 = GetGameTimer
L2_2 = L2_2()
if not (L1_2 > L2_2) then
break
end
L2_2 = Wait
L3_2 = 10
L2_2(L3_2)
end
L2_2 = HasNamedPtfxAssetLoaded
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if not L2_2 then
L2_2 = error
L3_2 = "Failed to load ptfx \"%s\""
L4_2 = L3_2
L3_2 = L3_2.format
L5_2 = A0_2
L3_2, L4_2, L5_2 = L3_2(L4_2, L5_2)
L2_2(L3_2, L4_2, L5_2)
end
L2_2 = HasNamedPtfxAssetLoaded
L3_2 = A0_2
return L2_2(L3_2)
end
LoadPtfx = L48_1
function L48_1()
local L0_2, L1_2
L0_2 = TriggerServerEvent
L1_2 = "tk_mdt:jobUpdated"
L0_2(L1_2)
end
JobUpdated = L48_1
function L48_1()
local L0_2, L1_2
L0_2 = TriggerServerEvent
L1_2 = "tk_mdt:playerLoaded"
L0_2(L1_2)
end
PlayerLoaded = L48_1
L48_1 = RegisterNUICallback
L49_1 = "hideUI"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = L19_1
L2_2()
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getLocales"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = Locales
L3_2 = Config
L3_2 = L3_2.Locale
L2_2 = L2_2[L3_2]
if not L2_2 then
L2_2 = error
L3_2 = "Locale \"%s\" not found"
L4_2 = L3_2
L3_2 = L3_2.format
L5_2 = Config
L5_2 = L5_2.Locale
L3_2, L4_2, L5_2 = L3_2(L4_2, L5_2)
return L2_2(L3_2, L4_2, L5_2)
end
L2_2 = A1_2
L3_2 = Locales
L4_2 = Config
L4_2 = L4_2.Locale
L3_2 = L3_2[L4_2]
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getJobData"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = {}
L4_2 = GetJobName
L4_2 = L4_2()
L3_2.job = L4_2
L4_2 = GetGradeId
L4_2 = L4_2()
L3_2.grade = L4_2
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "addTag"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L27_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getProfile"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L28_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getLaw"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L29_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveProfile"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveProfile"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getVehicle"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L30_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveVehicle"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveVehicle"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getProperty"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L31_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "setMarker"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = SetNewWaypoint
L3_2 = A0_2.x
L4_2 = A0_2.y
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveProperty"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveProperty"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getBusiness"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L32_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveBusiness"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveBusiness"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createIncident"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = L33_1
L3_2 = L3_2()
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getIncident"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L34_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveIncident"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveIncident"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L35_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L36_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createTrainingReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L37_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getTrainingReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L38_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveTrainingReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveTrainingReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "savePoliceReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:savePoliceReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createEvidence"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = L40_1
L3_2 = L3_2()
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getEvidence"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L41_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveEvidence"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveEvidence"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createWeapon"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = L42_1
L3_2 = L3_2()
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getWeapon"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L43_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "saveWeapon"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:saveWeapon"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getPoliceReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A1_2
L3_2 = L39_1
L4_2 = A0_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createCharge"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:createCharge"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateCharge"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateCharge"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeCharge"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeCharge"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeLaw"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeLaw"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createLaw"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:createLaw"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateLaw"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateLaw"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createAnnouncement"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:createAnnouncement"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "toggleAnnouncementPin"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:toggleAnnouncementPin"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeAnnouncement"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeAnnouncement"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "addChatMessage"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:addChatMessage"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateEmployeeImage"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateEmployeeImage"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateEmployeeCallsign"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateEmployeeCallsign"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateEmployeeStatus"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateEmployeeStatus"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateEmployeeNotes"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateEmployeeNotes"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "updateEmployeeLicenses"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateEmployeeLicenses"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "getActiveUnits"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = L44_1
L3_2 = L3_2()
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "finePlayer"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
L2_2 = FinePlayer
L3_2 = A0_2
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "jailPlayer"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
L2_2 = JailPlayer
L3_2 = A0_2
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "takePhoto"
function L50_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
L2_2 = L47_1
L3_2 = A0_2
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "createPoliceReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:createPoliceReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeEvidence"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeEvidence"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeWeapon"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeWeapon"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeIncident"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeIncident"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removeTrainingReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeTrainingReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNUICallback
L49_1 = "removePoliceReport"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removePoliceReport"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addProfile"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addProfile"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addVehicle"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addVehicle"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addProperty"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addProperty"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeEvidence"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeEvidence"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeWeapon"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeWeapon"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeIncident"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeIncident"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeTrainingReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeTrainingReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removePoliceReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removePoliceReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:openMDT"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = L18_1
L2_2 = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addTag"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addTag"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateEmployeeImage"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateEmployeeImage"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateEmployeeCallsign"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateEmployeeCallsign"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateEmployeeStatus"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateEmployeeStatus"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateEmployeeLicenses"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateEmployeeLicenses"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateEmployeeNotes"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateEmployeeNotes"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addIncident"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addIncident"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addTrainingReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addTrainingReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addPoliceReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addPoliceReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addEvidence"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addEvidence"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addEmployee"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addEmployee"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeEmployee"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeEmployee"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addWeapon"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addWeapon"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addCharge"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addCharge"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateCharge"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateCharge"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeCharge"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeCharge"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeLaw"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeLaw"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addLaw"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addLaw"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateLaw"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateLaw"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addChatMessage"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addChatMessage"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addAnnouncement"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addAnnouncement"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:toggleAnnouncementPin"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "toggleAnnouncementPin"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeAnnouncement"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeAnnouncement"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:addCall"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "addCall"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:removeCall"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeCall"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateIncident"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateIncident"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateVehicle"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateVehicle"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateProfile"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateProfile"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateTrainingReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateTrainingReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updatePoliceReport"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updatePoliceReport"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateEvidence"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateEvidence"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterNetEvent
L49_1 = "tk_mdt:updateWeapon"
function L50_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateWeapon"
L2_2.data = A0_2
L1_2(L2_2)
end
L48_1(L49_1, L50_1)
L48_1 = RegisterCallback
L49_1 = "tk_mdt:getVehicleName"
function L50_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = A0_2
L3_2 = GetVehicleName
L4_2 = A1_2
L3_2, L4_2 = L3_2(L4_2)
L2_2(L3_2, L4_2)
end
L48_1(L49_1, L50_1)
L48_1 = exports
L49_1 = "addCall"
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, L12_2, L13_2, L14_2
L1_2 = PlayerPedId
L1_2 = L1_2()
L2_2 = GetEntityCoords
L3_2 = L1_2
L2_2 = L2_2(L3_2)
L3_2 = GetVehiclePedIsIn
L4_2 = L1_2
L5_2 = false
L3_2 = L3_2(L4_2, L5_2)
L4_2 = DoesEntityExist
L5_2 = L3_2
L4_2 = L4_2(L5_2)
if L4_2 then
L4_2 = {}
L5_2 = GetVehicleNumberPlateText
L6_2 = L3_2
L5_2 = L5_2(L6_2)
L4_2.plate = L5_2
L5_2 = GetVehicleName
L6_2 = GetEntityModel
L7_2 = L3_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.model = L5_2
L5_2 = Config
L5_2 = L5_2.Colors
L6_2 = GetVehicleColours
L7_2 = L3_2
L6_2 = L6_2(L7_2)
L5_2 = L5_2[L6_2]
L4_2.color = L5_2
end
L5_2 = GetSelectedPedWeapon
L6_2 = L1_2
L5_2 = L5_2(L6_2)
L6_2 = Config
L6_2 = L6_2.Weapons
L6_2 = L6_2[L5_2]
L7_2 = TriggerServerEvent
L8_2 = "tk_mdt:createCall"
L9_2 = {}
L10_2 = A0_2.title
L9_2.title = L10_2
L10_2 = A0_2.callsign
L9_2.callsign = L10_2
L10_2 = GetStreetNameFromHashKey
L11_2 = GetStreetNameAtCoord
L12_2 = L2_2.x
L13_2 = L2_2.y
L14_2 = L2_2.z
L11_2, L12_2, L13_2, L14_2 = L11_2(L12_2, L13_2, L14_2)
L10_2 = L10_2(L11_2, L12_2, L13_2, L14_2)
L9_2.location = L10_2
L10_2 = {}
L11_2 = L2_2.x
L12_2 = L2_2.y
L10_2[1] = L11_2
L10_2[2] = L12_2
L9_2.coords = L10_2
L10_2 = A0_2.gender
if L10_2 then
L10_2 = GetEntityModel
L11_2 = PlayerPedId
L11_2, L12_2, L13_2, L14_2 = L11_2()
L10_2 = L10_2(L11_2, L12_2, L13_2, L14_2)
if -1667301416 == L10_2 then
L10_2 = "Female"
if L10_2 then
goto lbl_75
end
end
end
L10_2 = "Male"
::lbl_75::
L9_2.gender = L10_2
L10_2 = A0_2.vehicle
if L10_2 then
L10_2 = L4_2
end
L9_2.vehicle = L10_2
L10_2 = A0_2.weapon
L10_2 = L6_2 or L10_2
if L10_2 and L6_2 then
L10_2 = GetItemLabel
L11_2 = L6_2
L10_2 = L10_2(L11_2)
end
L9_2.weapon = L10_2
L10_2 = A0_2.type
L9_2.type = L10_2
L10_2 = A0_2.time
L9_2.time = L10_2
L7_2(L8_2, L9_2)
end
L48_1(L49_1, L50_1)
function L48_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = type
L3_2 = A0_2
L2_2 = L2_2(L3_2)
if "string" ~= L2_2 then
L2_2 = L21_1
L2_2 = L2_2()
A0_2 = L2_2
end
L2_2 = assert
L3_2 = A0_2 or L3_2
if A0_2 then
L3_2 = type
L4_2 = Config
L4_2 = L4_2.MDTs
L4_2 = L4_2[A0_2]
L3_2 = L3_2(L4_2)
L3_2 = "table" == L3_2 or "report" == A0_2
end
L4_2 = "MDT page \"%s\" not found"
L5_2 = L4_2
L4_2 = L4_2.format
L6_2 = A0_2
L4_2, L5_2, L6_2 = L4_2(L5_2, L6_2)
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = L18_1
L3_2 = A0_2
L4_2 = A1_2
L2_2(L3_2, L4_2)
end
L49_1 = exports
L50_1 = "openMDT"
L51_1 = L48_1
L49_1(L50_1, L51_1)
L49_1 = exports
L50_1 = "openUI"
L51_1 = L48_1
L49_1(L50_1, L51_1)
L49_1 = CreateThread
function L50_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 = L26_1
L0_2()
end
L49_1(L50_1)
L49_1 = exports
L50_1 = "createPoliceReport"
function L51_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:createPoliceReport"
L4_2 = A0_2
L5_2 = A1_2
L2_2(L3_2, L4_2, L5_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNUICallback
L50_1 = "removeJobPermission"
function L51_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeJobPermission"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNUICallback
L50_1 = "updatePermission"
function L51_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updatePermission"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNetEvent
L50_1 = "tk_mdt:updatePermissions"
function L51_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updatePermissions"
L2_2.data = A0_2
L1_2(L2_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNUICallback
L50_1 = "updateTag"
function L51_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:updateTag"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNetEvent
L50_1 = "tk_mdt:updateTag"
function L51_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "updateTag"
L2_2.data = A0_2
L1_2(L2_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNUICallback
L50_1 = "removeTag"
function L51_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:removeTag"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNetEvent
L50_1 = "tk_mdt:removeTag"
function L51_1(A0_2)
local L1_2, L2_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.action = "removeTag"
L2_2.data = A0_2
L1_2(L2_2)
end
L49_1(L50_1, L51_1)
L49_1 = RegisterNUICallback
L50_1 = "hireEmployee"
function L51_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = TriggerServerEvent
L3_2 = "tk_mdt:hireEmployee"
L4_2 = A0_2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
end
L49_1(L50_1, L51_1)
function L49_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L1_2 = L0_1
if L1_2 then
L1_2 = type
L2_2 = Config
L2_2 = L2_2.MDTs
L3_2 = L0_1
L2_2 = L2_2[L3_2]
L1_2 = L1_2(L2_2)
if "table" == L1_2 then
goto lbl_13
end
end
do return end
::lbl_13::
L1_2 = pairs
L2_2 = Config
L2_2 = L2_2.MDTs
L3_2 = L0_1
L2_2 = L2_2[L3_2]
L2_2 = L2_2.pages
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.name
if L7_2 == A0_2 then
return L6_2
end
end
L1_2 = nil
return L1_2
end
L50_1 = RegisterNUICallback
L51_1 = "handleOnClick"
function L52_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L2_2 = A1_2
L3_2 = 1
L2_2(L3_2)
L2_2 = L49_1
L3_2 = A0_2.page
L2_2 = L2_2(L3_2)
if L2_2 then
L3_2 = type
L4_2 = L2_2.onClick
L3_2 = L3_2(L4_2)
if "function" == L3_2 then
goto lbl_15
end
end
do return end
::lbl_15::
L3_2 = pcall
L4_2 = L2_2.onClick
L5_2 = A0_2
L3_2, L4_2 = L3_2(L4_2, L5_2)
if not L3_2 then
L5_2 = print
L6_2 = "Error in MDT page \"%s\" onClick function: %s"
L7_2 = L6_2
L6_2 = L6_2.format
L8_2 = L0_1
L9_2 = L4_2
L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2, L8_2, L9_2)
L5_2(L6_2, L7_2, L8_2, L9_2)
end
end
L50_1(L51_1, L52_1)
L50_1 = exports
L51_1 = "getCallsign"
function L52_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = promise
L1_2 = L1_2.new
L1_2 = L1_2()
L2_2 = TriggerCallback
L3_2 = "tk_mdt:getCallsign"
function L4_2(A0_3)
local L1_3, L2_3, L3_3
L1_3 = L1_2
L2_3 = L1_3
L1_3 = L1_3.resolve
L3_3 = A0_3
L1_3(L2_3, L3_3)
end
L5_2 = A0_2
L2_2(L3_2, L4_2, L5_2)
L2_2 = Citizen
L2_2 = L2_2.Await
L3_2 = L1_2
return L2_2(L3_2)
end
L50_1(L51_1, L52_1)
L50_1 = exports
L51_1 = "closeUI"
function L52_1()
local L0_2, L1_2
L0_2 = L19_1
L0_2()
end
L50_1(L51_1, L52_1)
L50_1 = type
L51_1 = Config
L51_1 = L51_1.MDTs
L50_1 = L50_1(L51_1)
if "table" ~= L50_1 then
L50_1 = error
L51_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"
L50_1(L51_1)
end