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

2622 lines
62 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
L0_1 = false
L1_1 = false
L2_1 = -1
L3_1 = false
L4_1 = exports
L4_1 = L4_1.xsound
xSound = L4_1
L4_1 = {}
L5_1 = {}
L6_1 = false
L7_1 = nil
L8_1 = nil
L9_1 = {}
L10_1 = {}
Zones = L10_1
L10_1 = nil
L11_1 = nil
L12_1 = nil
L13_1 = false
L14_1 = nil
L15_1 = false
L16_1 = Citizen
L16_1 = L16_1.CreateThread
function L17_1()
local L0_2, L1_2, L2_2, L3_2
L0_2 = true
while true do
L1_2 = Wait
L2_2 = 500
L1_2(L2_2)
L1_2 = PlayerPedId
L1_2 = L1_2()
L10_1 = L1_2
L1_2 = GetVehiclePedIsIn
L2_2 = L10_1
L3_2 = false
L1_2 = L1_2(L2_2, L3_2)
L11_1 = L1_2
L1_2 = GetEntityCoords
L2_2 = L10_1
L1_2 = L1_2(L2_2)
L12_1 = L1_2
end
end
L16_1(L17_1)
L16_1 = Citizen
L16_1 = L16_1.CreateThread
function L17_1()
local L0_2, L1_2, L2_2, L3_2
L0_2 = false
while true do
L1_2 = L3_1
if L1_2 then
L1_2 = IsPedInAnyVehicle
L2_2 = PlayerPedId
L2_2 = L2_2()
L3_2 = false
L1_2 = L1_2(L2_2, L3_2)
if L1_2 then
L1_2 = IsEntityDead
L2_2 = PlayerPedId
L2_2, L3_2 = L2_2()
L1_2 = L1_2(L2_2, L3_2)
if L1_2 and false == L0_2 then
L1_2 = emergencyAlert
L1_2()
L0_2 = true
else
L1_2 = IsEntityDead
L2_2 = PlayerPedId
L2_2, L3_2 = L2_2()
L1_2 = L1_2(L2_2, L3_2)
if false == L1_2 then
L0_2 = false
end
end
end
end
L1_2 = Citizen
L1_2 = L1_2.Wait
L2_2 = 2000
L1_2(L2_2)
end
end
L16_1(L17_1)
L16_1 = Citizen
L16_1 = L16_1.CreateThread
function L17_1()
local L0_2, L1_2, L2_2, L3_2
while true do
L0_2 = L0_1
if not L0_2 then
break
end
L0_2 = Citizen
L0_2 = L0_2.Wait
L1_2 = 0
L0_2(L1_2)
L0_2 = DisableControlAction
L1_2 = 0
L2_2 = 1
L3_2 = L0_1
L0_2(L1_2, L2_2, L3_2)
L0_2 = DisableControlAction
L1_2 = 0
L2_2 = 2
L3_2 = L0_1
L0_2(L1_2, L2_2, L3_2)
L0_2 = DisableControlAction
L1_2 = 0
L2_2 = 142
L3_2 = L0_1
L0_2(L1_2, L2_2, L3_2)
L0_2 = DisableControlAction
L1_2 = 0
L2_2 = 18
L3_2 = L0_1
L0_2(L1_2, L2_2, L3_2)
L0_2 = DisableControlAction
L1_2 = 0
L2_2 = 322
L3_2 = L0_1
L0_2(L1_2, L2_2, L3_2)
L0_2 = DisableControlAction
L1_2 = 0
L2_2 = 106
L3_2 = L0_1
L0_2(L1_2, L2_2, L3_2)
end
end
L16_1(L17_1)
L16_1 = Citizen
L16_1 = L16_1.CreateThread
function L17_1()
local L0_2, L1_2, L2_2, L3_2
L0_2 = 1000
while true do
L1_2 = IsPedInAnyVehicle
L2_2 = PlayerPedId
L2_2 = L2_2()
L3_2 = false
L1_2 = L1_2(L2_2, L3_2)
if L1_2 then
L0_2 = 0
L1_2 = IsControlJustPressed
L2_2 = 0
L3_2 = Config
L3_2 = L3_2.openKey
L1_2 = L1_2(L2_2, L3_2)
if L1_2 then
activeUI = true
L1_2 = SetDisplay
L2_2 = L0_1
L2_2 = not L2_2
L1_2(L2_2)
end
end
L1_2 = Citizen
L1_2 = L1_2.Wait
L2_2 = L0_2
L1_2(L2_2)
end
end
L16_1(L17_1)
L16_1 = RegisterNetEvent
L17_1 = "bit-vehControl:open"
L16_1(L17_1)
L16_1 = AddEventHandler
L17_1 = "bit-vehControl:open"
function L18_1()
local L0_2, L1_2
activeUI = true
L0_2 = SetDisplay
L1_2 = L0_1
L1_2 = not L1_2
L0_2(L1_2)
end
L16_1(L17_1, L18_1)
L16_1 = Citizen
L16_1 = L16_1.CreateThread
function L17_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
L0_2 = 3000
activeUI = false
while true do
L1_2 = activeUI
if L1_2 then
L0_2 = 1000
L1_2 = GetClockHours
L1_2 = L1_2()
L2_2 = GetClockMinutes
L2_2 = L2_2()
if L1_2 >= 0 and L1_2 <= 9 then
L3_2 = "0"
L4_2 = tostring
L5_2 = L1_2
L4_2 = L4_2(L5_2)
L3_2 = L3_2 .. L4_2
L1_2 = L3_2
end
if L2_2 >= 0 and L2_2 <= 9 then
L3_2 = "0"
L4_2 = tostring
L5_2 = L2_2
L4_2 = L4_2(L5_2)
L3_2 = L3_2 .. L4_2
L2_2 = L3_2
end
L3_2 = IsPedSittingInAnyVehicle
L4_2 = PlayerPedId
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()
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)
if L3_2 then
L3_2 = GetVehiclePedIsIn
L4_2 = PlayerPedId
L4_2 = L4_2()
L5_2 = false
L3_2 = L3_2(L4_2, L5_2)
L4_2 = GetVehicleFuelLevel
L5_2 = L3_2
L4_2 = L4_2(L5_2)
L5_2 = 100
L4_2 = L5_2 - L4_2
L5_2 = math
L5_2 = L5_2.floor
L6_2 = GetVehicleEngineTemperature
L7_2 = L3_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)
L5_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)
L6_2 = GetEntityCoords
L7_2 = PlayerPedId
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()
L6_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)
L7_2 = GetBlipInfoIdCoord
L8_2 = GetFirstBlipInfoId
L9_2 = 8
L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_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)
L8_2 = nil
L9_2 = nil
L10_2 = nil
L11_2 = getWeather
L11_2 = L11_2()
L12_2 = L7_2.x
if 0 ~= L12_2 then
L12_2 = L7_2.y
if 0 ~= L12_2 then
L12_2 = GetStreetNameFromHashKey
L13_2 = GetStreetNameAtCoord
L14_2 = L7_2.x
L15_2 = L7_2.y
L16_2 = L7_2.z
L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L13_2(L14_2, L15_2, L16_2)
L12_2, L13_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2)
L10_2 = L13_2
L9_2 = L12_2
L12_2 = GetDistanceBetweenCoords
L13_2 = L6_2.x
L14_2 = L6_2.y
L15_2 = L6_2.z
L16_2 = L7_2.x
L17_2 = L7_2.y
L18_2 = L7_2.z
L19_2 = true
L12_2 = L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2)
L8_2 = L12_2
L12_2 = 1000
if L8_2 > L12_2 then
L12_2 = string
L12_2 = L12_2.format
L13_2 = "%.1f"
L14_2 = math
L14_2 = L14_2.floor
L15_2 = L8_2
L14_2 = L14_2(L15_2)
L14_2 = L14_2 / 1000
L12_2 = L12_2(L13_2, L14_2)
L8_2 = L12_2
L12_2 = tostring
L13_2 = L8_2
L12_2 = L12_2(L13_2)
L13_2 = "km"
L12_2 = L12_2 .. L13_2
L8_2 = L12_2
else
L12_2 = math
L12_2 = L12_2.floor
L13_2 = L8_2
L12_2 = L12_2(L13_2)
L8_2 = L12_2
L12_2 = tostring
L13_2 = L8_2
L12_2 = L12_2(L13_2)
L13_2 = "m"
L12_2 = L12_2 .. L13_2
L8_2 = L12_2
end
end
else
L8_2 = "-"
L12_2 = Lang
L9_2 = L12_2.noDest
end
L12_2 = SendNUIMessage
L13_2 = {}
L13_2.type = "updateFuel"
L13_2.fuel = L4_2
L13_2.enginetemp = L5_2
L13_2.distance = L8_2
L13_2.streetname = L9_2
L13_2.weather = L11_2
L13_2.hour = L1_2
L13_2.minutes = L2_2
L12_2(L13_2)
end
else
L0_2 = 3000
end
L1_2 = Citizen
L1_2 = L1_2.Wait
L2_2 = L0_2
L1_2(L2_2)
end
end
L16_1(L17_1)
function L16_1()
local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2
L0_2 = GetLocalTime
L0_2, L1_2, L2_2, L3_2, L4_2, L5_2 = L0_2()
end
time = L16_1
function L16_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = true
L6_1 = L1_2
L1_2 = {}
L1_2.volume = 0.5
L1_2.loop = false
L5_1 = L1_2
L1_2 = nil
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.soundExists
L4_2 = nome
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.getVolume
L4_2 = nome
L2_2 = L2_2(L3_2, L4_2)
L5_1.volume = L2_2
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.isLooped
L4_2 = nome
L2_2 = L2_2(L3_2, L4_2)
L5_1.loop = L2_2
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.isPlaying
L4_2 = nome
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.getLink
L4_2 = nome
L2_2 = L2_2(L3_2, L4_2)
L1_2 = L2_2
end
end
L2_2 = GetVehiclePedIsIn
L3_2 = PlayerPedId
L3_2 = L3_2()
L4_2 = false
L2_2 = L2_2(L3_2, L4_2)
vehicle = L2_2
L2_2 = IsPedSittingInAnyVehicle
L3_2 = PlayerPedId
L3_2, L4_2, L5_2 = L3_2()
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 then
L2_2 = DoesVehicleHaveDoor
L3_2 = vehicle
L4_2 = 2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = true
L1_1 = L2_2
else
L2_2 = false
L1_1 = L2_2
end
end
L0_1 = A0_2
L2_2 = focus
L3_2 = A0_2
L2_2(L3_2)
L2_2 = SendNUIMessage
L3_2 = {}
L3_2.type = "ui"
L3_2.status = A0_2
L4_2 = L1_1
L3_2.fourdoors = L4_2
L4_2 = Config
L4_2 = L4_2.viewWindows
L3_2.windows = L4_2
L2_2(L3_2)
while true do
L2_2 = L0_1
if not L2_2 then
break
end
L2_2 = DisableControlAction
L3_2 = 0
L4_2 = 1
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = DisableControlAction
L3_2 = 0
L4_2 = 2
L5_2 = L0_1
L2_2(L3_2, L4_2, L5_2)
L2_2 = Citizen
L2_2 = L2_2.Wait
L3_2 = 0
L2_2(L3_2)
end
end
SetDisplay = L16_1
function L16_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = GetPlayerPed
L2_2 = -1
L1_2 = L1_2(L2_2)
L2_2 = IsPedSittingInAnyVehicle
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if L2_2 then
L2_2 = GetVehiclePedIsIn
L3_2 = L1_2
L4_2 = false
L2_2 = L2_2(L3_2, L4_2)
L3_2 = GetVehicleDoorAngleRatio
L4_2 = L2_2
L5_2 = A0_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 > 0.0 then
L3_2 = SetVehicleDoorShut
L4_2 = L2_2
L5_2 = A0_2
L6_2 = false
L3_2(L4_2, L5_2, L6_2)
else
L3_2 = SetVehicleDoorOpen
L4_2 = L2_2
L5_2 = A0_2
L6_2 = false
L3_2(L4_2, L5_2, L6_2)
end
end
end
DoorControl = L16_1
function L16_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L2_2 = false
L3_2 = L5_1.volume
L4_2 = xSound
L5_2 = L4_2
L4_2 = L4_2.soundExists
L6_2 = A1_2
L4_2 = L4_2(L5_2, L6_2)
if L4_2 then
L4_2 = xSound
L5_2 = L4_2
L4_2 = L4_2.isPlaying
L6_2 = A1_2
L4_2 = L4_2(L5_2, L6_2)
if L4_2 then
L2_2 = true
L4_2 = xSound
L5_2 = L4_2
L4_2 = L4_2.getVolume
L6_2 = A1_2
L4_2 = L4_2(L5_2, L6_2)
L3_2 = L4_2
L5_1.volume = L3_2
end
end
L4_2 = L3_2 + A0_2
L5_2 = 1.01
if L4_2 <= L5_2 then
L5_2 = -0.001
if L4_2 >= L5_2 and L2_2 then
L5_2 = 0.005
if L4_2 < L5_2 then
L4_2 = 0.0
end
L5_1.volume = L4_2
L5_2 = "<b>Volume:</b> "
L6_2 = math
L6_2 = L6_2.floor
L7_2 = L4_2 * 100
L7_2 = L7_2 - 0.1
L7_2 = L7_2 + 1
L6_2 = L6_2(L7_2)
L7_2 = "%"
L5_2 = L5_2 .. L6_2 .. L7_2
L6_2 = SendNUIMessage
L7_2 = {}
L7_2.type = "changevolume"
L7_2.text = L5_2
L6_2(L7_2)
L6_2 = TriggerServerEvent
L7_2 = "bit-vehControl:ChangeVolume"
L8_2 = A0_2
L9_2 = A1_2
L6_2(L7_2, L8_2, L9_2)
end
end
end
ApplySound = L16_1
function L16_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
L1_2 = 1.2
L2_2 = 181
L3_2 = 0.5
L4_2 = 70.0
L5_2 = 1.0
L6_2 = A0_2.distance
if nil ~= L6_2 then
L6_2 = A0_2.distance
L1_2 = L1_2 + L6_2
end
L6_2 = A0_2.rotation
if nil ~= L6_2 then
L6_2 = A0_2.rotation
L2_2 = L2_2 + L6_2
end
L6_2 = A0_2.fovpoint
if nil ~= L6_2 then
L6_2 = A0_2.fovpoint
L3_2 = L3_2 + L6_2
end
L6_2 = L4_2 + L5_2
L6_2 = L6_2 * L3_2
L7_2 = nil
L8_2 = nil
L9_2 = nil
L10_2 = A0_2.use
if L10_2 then
L10_2 = table
L10_2 = L10_2.unpack
L11_2 = GetEntityCoords
L12_2 = A0_2.ped
L13_2 = true
L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2 = L11_2(L12_2, L13_2)
L10_2, L11_2, L12_2 = L10_2(L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2)
L13_2 = GetEntityForwardX
L14_2 = A0_2.ped
L13_2 = L13_2(L14_2)
L13_2 = L13_2 * L1_2
L13_2 = L10_2 + L13_2
L14_2 = GetEntityForwardY
L15_2 = A0_2.ped
L14_2 = L14_2(L15_2)
L14_2 = L14_2 * L1_2
L14_2 = L11_2 + L14_2
L9_2 = L12_2
L8_2 = L14_2
L7_2 = L13_2
L13_2 = GetEntityRotation
L14_2 = A0_2.ped
L15_2 = 2
L13_2 = L13_2(L14_2, L15_2)
rx = L13_2
L13_2 = rx
L14_2 = vector3
L15_2 = 0.0
L16_2 = 0.0
L17_2 = L2_2
L14_2 = L14_2(L15_2, L16_2, L17_2)
L13_2 = L13_2 + L14_2
camRotation = L13_2
else
L10_2 = A0_2.coords
L10_2 = L10_2.x
L11_2 = A0_2.coords
L11_2 = L11_2.y
L12_2 = A0_2.coords
L9_2 = L12_2.z
L8_2 = L11_2
L7_2 = L10_2
L10_2 = vector3
L11_2 = 0.0
L12_2 = 0.0
L13_2 = L2_2
L10_2 = L10_2(L11_2, L12_2, L13_2)
camRotation = L10_2
end
L10_2 = vector3
L11_2 = L7_2
L12_2 = L8_2
L13_2 = L9_2
L10_2 = L10_2(L11_2, L12_2, L13_2)
camCoords = L10_2
L10_2 = CreateCamWithParams
L11_2 = "DEFAULT_SCRIPTED_CAMERA"
L12_2 = camCoords
L13_2 = camRotation
L14_2 = GetGameplayCamFov
L14_2, L15_2, L16_2, L17_2 = L14_2()
L10_2 = L10_2(L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2)
L14_1 = L10_2
L10_2 = SetCamFov
L11_2 = L14_1
L12_2 = L6_2
L10_2(L11_2, L12_2)
L10_2 = SetCamActive
L11_2 = L14_1
L12_2 = true
L10_2(L11_2, L12_2)
L10_2 = RenderScriptCams
L11_2 = true
L12_2 = true
L13_2 = 1000
L14_2 = true
L15_2 = false
L10_2(L11_2, L12_2, L13_2, L14_2, L15_2)
end
Camera = L16_1
function L16_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 = A1_2
if A0_2 then
L3_2 = false
L4_2 = 1
L5_2 = Zones
L5_2 = #L5_2
L6_2 = 1
for L7_2 = L4_2, L5_2, L6_2 do
L8_2 = Zones
L8_2 = L8_2[L7_2]
L9_2 = L8_2.name
if L9_2 == L2_2 then
L3_2 = true
end
end
if L3_2 then
L4_2 = {}
L4_2.name = L2_2
L4_2.link = A0_2
L5_2 = L5_1.loop
L4_2.loop = L5_2
L5_2 = IsPedInAnyVehicle
L6_2 = PlayerPedId
L6_2 = L6_2()
L7_2 = false
L5_2 = L5_2(L6_2, L7_2)
if L5_2 then
L5_2 = NetworkGetNetworkIdFromEntity
L6_2 = GetVehiclePedIsIn
L7_2 = PlayerPedId
L7_2 = L7_2()
L8_2 = false
L6_2, L7_2, L8_2, L9_2, L10_2 = L6_2(L7_2, L8_2)
L5_2 = L5_2(L6_2, L7_2, L8_2, L9_2, L10_2)
L4_2.popo = L5_2
end
L5_2 = TriggerServerEvent
L6_2 = "bit-vehControl:ModifyURL"
L7_2 = L4_2
L5_2(L6_2, L7_2)
else
L4_2 = IsPedInAnyVehicle
L5_2 = PlayerPedId
L5_2 = L5_2()
L6_2 = false
L4_2 = L4_2(L5_2, L6_2)
if L4_2 then
L4_2 = GetVehiclePedIsIn
L5_2 = PlayerPedId
L5_2 = L5_2()
L6_2 = false
L4_2 = L4_2(L5_2, L6_2)
L5_2 = GetEntityCoords
L6_2 = L4_2
L5_2 = L5_2(L6_2)
L6_2 = NetworkGetNetworkIdFromEntity
L7_2 = L4_2
L6_2 = L6_2(L7_2)
L7_2 = {}
L7_2.plate = L2_2
L7_2.coords = L5_2
L7_2.link = A0_2
L7_2.popo = L6_2
L8_2 = L5_1.volume
L7_2.volume = L8_2
L8_2 = L5_1.loop
L7_2.loop = L8_2
L8_2 = TriggerServerEvent
L9_2 = "bit-vehControl:AddVehicle"
L10_2 = L7_2
L8_2(L9_2, L10_2)
else
end
end
end
L3_2 = SendNUIMessage
L4_2 = {}
L4_2.type = "time"
L3_2(L4_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = SendNUIMessage
L4_2 = {}
L4_2.type = "time"
L5_2 = xSound
L6_2 = L5_2
L5_2 = L5_2.getMaxDuration
L7_2 = L2_2
L5_2 = L5_2(L6_2, L7_2)
L4_2.total = L5_2
L5_2 = xSound
L6_2 = L5_2
L5_2 = L5_2.getTimeStamp
L7_2 = L2_2
L5_2 = L5_2(L6_2, L7_2)
L4_2.played = L5_2
L3_2(L4_2)
end
L3_2 = 0
while true do
L4_2 = L6_1
if not L4_2 then
break
end
L4_2 = Wait
L5_2 = 1000
L4_2(L5_2)
L4_2 = xSound
L5_2 = L4_2
L4_2 = L4_2.soundExists
L6_2 = L2_2
L4_2 = L4_2(L5_2, L6_2)
if L4_2 then
L4_2 = xSound
L5_2 = L4_2
L4_2 = L4_2.isPlaying
L6_2 = L2_2
L4_2 = L4_2(L5_2, L6_2)
if L4_2 then
L4_2 = SendNUIMessage
L5_2 = {}
L5_2.type = "time"
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.getMaxDuration
L8_2 = L2_2
L6_2 = L6_2(L7_2, L8_2)
L5_2.total = L6_2
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.getTimeStamp
L8_2 = L2_2
L6_2 = L6_2(L7_2, L8_2)
L5_2.played = L6_2
L4_2(L5_2)
else
L3_2 = L3_2 + 1
end
else
L3_2 = L3_2 + 1
end
if L3_2 >= 4 then
break
end
end
end
SetUrl = L16_1
L16_1 = RegisterNetEvent
L17_1 = "bit-vehControl:WindowControl"
L16_1(L17_1)
L16_1 = AddEventHandler
L17_1 = "bit-vehControl:WindowControl"
function L18_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = WindowControl
L3_2 = A0_2
L4_2 = A1_2
L2_2(L3_2, L4_2)
end
L16_1(L17_1, L18_1)
function L16_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
if nil == A1_2 or 0 == A1_2 then
L3_2 = GetPlayerPed
L4_2 = -1
L3_2 = L3_2(L4_2)
L4_2 = IsPedSittingInAnyVehicle
L5_2 = L3_2
L4_2 = L4_2(L5_2)
if L4_2 then
L4_2 = GetVehiclePedIsIn
L5_2 = L3_2
L6_2 = false
L4_2 = L4_2(L5_2, L6_2)
L5_2 = NetworkGetNetworkIdFromEntity
L6_2 = L4_2
L5_2 = L5_2(L6_2)
L6_2 = GetPlayerServerId
L7_2 = PlayerId
L7_2, L8_2, L9_2, L10_2, L11_2 = L7_2()
L6_2 = L6_2(L7_2, L8_2, L9_2, L10_2, L11_2)
if A2_2 ~= L6_2 then
L7_2 = TriggerServerEvent
L8_2 = "bit-vehControl:WindowControl"
L9_2 = L6_2
L10_2 = A0_2
L11_2 = L5_2
L7_2(L8_2, L9_2, L10_2, L11_2)
elseif 0 == A0_2 then
L7_2 = windowState1
if true == L7_2 then
L7_2 = RollDownWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState1 = false
else
L7_2 = RollUpWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState1 = true
end
elseif 1 == A0_2 then
L7_2 = windowState2
if true == L7_2 then
L7_2 = RollDownWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState2 = false
else
L7_2 = RollUpWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState2 = true
end
elseif 2 == A0_2 then
L7_2 = windowState3
if true == L7_2 then
L7_2 = RollDownWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState3 = false
else
L7_2 = RollUpWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState3 = true
end
elseif 3 == A0_2 then
L7_2 = windowState4
if true == L7_2 then
L7_2 = RollDownWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState4 = false
else
L7_2 = RollUpWindow
L8_2 = L4_2
L9_2 = A0_2
L7_2(L8_2, L9_2)
windowState4 = true
end
end
end
else
L3_2 = NetToVeh
L4_2 = A1_2
L3_2 = L3_2(L4_2)
if 0 == A0_2 then
L4_2 = windowState1
if true == L4_2 then
L4_2 = RollDownWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState1 = false
else
L4_2 = RollUpWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState1 = true
end
elseif 1 == A0_2 then
L4_2 = windowState2
if true == L4_2 then
L4_2 = RollDownWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState2 = false
else
L4_2 = RollUpWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState2 = true
end
elseif 2 == A0_2 then
L4_2 = windowState3
if true == L4_2 then
L4_2 = RollDownWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState3 = false
else
L4_2 = RollUpWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState3 = true
end
elseif 3 == A0_2 then
L4_2 = windowState4
if true == L4_2 then
L4_2 = RollDownWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState4 = false
else
L4_2 = RollUpWindow
L5_2 = L3_2
L6_2 = A0_2
L4_2(L5_2, L6_2)
windowState4 = true
end
end
end
end
WindowControl = L16_1
L16_1 = Citizen
L16_1 = L16_1.CreateThread
function L17_1()
local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L0_2 = 1000
while true do
L1_2 = activeUI
if L1_2 then
L1_2 = IsPedInAnyVehicle
L2_2 = PlayerPedId
L2_2 = L2_2()
L3_2 = false
L1_2 = L1_2(L2_2, L3_2)
if not L1_2 then
L1_2 = false
L13_1 = L1_2
activeUI = false
L1_2 = SetDisplay
L2_2 = false
L1_2(L2_2)
L1_2 = ClearFocus
L1_2()
L1_2 = RenderScriptCams
L2_2 = false
L3_2 = true
L4_2 = 1000
L5_2 = true
L6_2 = false
L1_2(L2_2, L3_2, L4_2, L5_2, L6_2)
L1_2 = DestroyCam
L2_2 = L14_1
L3_2 = false
L1_2(L2_2, L3_2)
L1_2 = nil
L14_1 = L1_2
L1_2 = focusOff
L1_2()
end
end
L1_2 = Citizen
L1_2 = L1_2.Wait
L2_2 = L0_2
L1_2(L2_2)
end
end
L16_1(L17_1)
L16_1 = RegisterNUICallback
L17_1 = "exit"
function L18_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = false
L13_1 = L1_2
activeUI = false
L1_2 = SetDisplay
L2_2 = false
L1_2(L2_2)
L1_2 = ClearFocus
L1_2()
L1_2 = RenderScriptCams
L2_2 = false
L3_2 = true
L4_2 = 1000
L5_2 = true
L6_2 = false
L1_2(L2_2, L3_2, L4_2, L5_2, L6_2)
L1_2 = DestroyCam
L2_2 = L14_1
L3_2 = false
L1_2(L2_2, L3_2)
L1_2 = nil
L14_1 = L1_2
L1_2 = focusOff
L1_2()
end
L16_1(L17_1, L18_1)
L16_1 = RegisterNUICallback
L17_1 = "door"
function L18_1(A0_2)
local L1_2, L2_2
L1_2 = A0_2.door
if "hood" == L1_2 then
L1_2 = DoorControl
L2_2 = 4
L1_2(L2_2)
else
L1_2 = A0_2.door
if "trunk" == L1_2 then
L1_2 = DoorControl
L2_2 = 5
L1_2(L2_2)
else
L1_2 = A0_2.door
if "lrdoor" == L1_2 then
L1_2 = DoorControl
L2_2 = 2
L1_2(L2_2)
else
L1_2 = A0_2.door
if "lfdoor" == L1_2 then
L1_2 = DoorControl
L2_2 = 0
L1_2(L2_2)
else
L1_2 = A0_2.door
if "rfdoor" == L1_2 then
L1_2 = DoorControl
L2_2 = 1
L1_2(L2_2)
else
L1_2 = A0_2.door
if "rrdoor" == L1_2 then
L1_2 = DoorControl
L2_2 = 3
L1_2(L2_2)
end
end
end
end
end
end
end
L16_1(L17_1, L18_1)
L16_1 = RegisterNUICallback
L17_1 = "engine"
function L18_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = GetVehiclePedIsIn
L2_2 = PlayerPedId
L2_2 = L2_2()
L3_2 = false
L1_2 = L1_2(L2_2, L3_2)
if nil ~= L1_2 and 0 ~= L1_2 then
L2_2 = GetPedInVehicleSeat
L3_2 = L1_2
L4_2 = 0
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = Config
L2_2 = L2_2.customEngineButton
if L2_2 then
L2_2 = engineButton
L3_2 = L1_2
L2_2(L3_2)
else
L2_2 = SetVehicleEngineOn
L3_2 = L1_2
L4_2 = GetIsVehicleEngineRunning
L5_2 = L1_2
L4_2 = L4_2(L5_2)
L4_2 = not L4_2
L5_2 = false
L6_2 = true
L2_2(L3_2, L4_2, L5_2, L6_2)
end
end
end
end
L16_1(L17_1, L18_1)
L16_1 = RegisterNUICallback
L17_1 = "light"
function L18_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2
L1_2 = GetPlayerPed
L2_2 = -1
L1_2 = L1_2(L2_2)
L2_2 = IsPedSittingInAnyVehicle
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if L2_2 then
L2_2 = GetVehiclePedIsIn
L3_2 = L1_2
L4_2 = false
L2_2 = L2_2(L3_2, L4_2)
L3_2 = IsVehicleInteriorLightOn
L4_2 = L2_2
L3_2 = L3_2(L4_2)
if L3_2 then
L3_2 = SetVehicleInteriorlight
L4_2 = L2_2
L5_2 = false
L3_2(L4_2, L5_2)
else
L3_2 = SetVehicleInteriorlight
L4_2 = L2_2
L5_2 = true
L3_2(L4_2, L5_2)
end
end
end
L16_1(L17_1, L18_1)
L16_1 = RegisterNUICallback
L17_1 = "seat"
function L18_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = GetPlayerPed
L2_2 = -1
L1_2 = L1_2(L2_2)
L2_2 = IsPedSittingInAnyVehicle
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if L2_2 then
L2_2 = GetVehiclePedIsIn
L3_2 = L1_2
L4_2 = false
L2_2 = L2_2(L3_2, L4_2)
L3_2 = L2_1
if -1 == L3_2 then
L3_2 = SetPedIntoVehicle
L4_2 = GetPlayerPed
L5_2 = -1
L4_2 = L4_2(L5_2)
L5_2 = L2_2
L6_2 = 0
L3_2(L4_2, L5_2, L6_2)
L3_2 = 0
L2_1 = L3_2
else
L3_2 = L2_1
if 0 == L3_2 then
L3_2 = SetPedIntoVehicle
L4_2 = GetPlayerPed
L5_2 = -1
L4_2 = L4_2(L5_2)
L5_2 = L2_2
L6_2 = 1
L3_2(L4_2, L5_2, L6_2)
L3_2 = 1
L2_1 = L3_2
else
L3_2 = L2_1
if 1 == L3_2 then
L3_2 = SetPedIntoVehicle
L4_2 = GetPlayerPed
L5_2 = -1
L4_2 = L4_2(L5_2)
L5_2 = L2_2
L6_2 = 2
L3_2(L4_2, L5_2, L6_2)
L3_2 = 2
L2_1 = L3_2
else
L3_2 = L2_1
if 2 == L3_2 then
L3_2 = SetPedIntoVehicle
L4_2 = GetPlayerPed
L5_2 = -1
L4_2 = L4_2(L5_2)
L5_2 = L2_2
L6_2 = -1
L3_2(L4_2, L5_2, L6_2)
L3_2 = -1
L2_1 = L3_2
end
end
end
end
end
end
L16_1(L17_1, L18_1)
L16_1 = RegisterNUICallback
L17_1 = "lock"
function L18_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = GetPlayerPed
L2_2 = -1
L1_2 = L1_2(L2_2)
L2_2 = IsPedSittingInAnyVehicle
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if L2_2 then
L2_2 = GetVehiclePedIsIn
L3_2 = L1_2
L4_2 = false
L2_2 = L2_2(L3_2, L4_2)
L3_2 = Config
L3_2 = L3_2.customLock
if L3_2 then
L3_2 = customLock
L4_2 = L2_2
L3_2(L4_2)
else
L3_2 = GetVehicleDoorLockStatus
L4_2 = L2_2
L3_2 = L3_2(L4_2)
if 0 ~= L3_2 then
L3_2 = GetVehicleDoorLockStatus
L4_2 = L2_2
L3_2 = L3_2(L4_2)
if 1 ~= L3_2 then
goto lbl_44
end
end
L3_2 = SetVehicleDoorsLocked
L4_2 = L2_2
L5_2 = 2
L3_2(L4_2, L5_2)
L3_2 = notifications
L4_2 = Noti
L4_2 = L4_2.check
L5_2 = Lang
L5_2 = L5_2.locked
L6_2 = Noti
L6_2 = L6_2.time
L3_2(L4_2, L5_2, L6_2)
goto lbl_61
::lbl_44::
L3_2 = GetVehicleDoorLockStatus
L4_2 = L2_2
L3_2 = L3_2(L4_2)
if 2 == L3_2 then
L3_2 = SetVehicleDoorsLocked
L4_2 = L2_2
L5_2 = 0
L3_2(L4_2, L5_2)
L3_2 = notifications
L4_2 = Noti
L4_2 = L4_2.check
L5_2 = Lang
L5_2 = L5_2.unlocked
L6_2 = Noti
L6_2 = L6_2.time
L3_2(L4_2, L5_2, L6_2)
end
end
end
::lbl_61::
end
L16_1(L17_1, L18_1)
L16_1 = false
L17_1 = RegisterNUICallback
L18_1 = "lights"
function L19_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L1_2 = GetPlayerPed
L2_2 = -1
L1_2 = L1_2(L2_2)
L2_2 = IsPedSittingInAnyVehicle
L3_2 = L1_2
L2_2 = L2_2(L3_2)
if L2_2 then
L2_2 = GetVehiclePedIsIn
L3_2 = L1_2
L4_2 = false
L2_2 = L2_2(L3_2, L4_2)
L3_2 = Config
L3_2 = L3_2.customLights
if L3_2 then
L3_2 = customLights
L4_2 = L2_2
L3_2(L4_2)
else
L3_2 = GetVehicleLightsState
L4_2 = L2_2
L3_2, L4_2, L5_2 = L3_2(L4_2)
if 1 == L4_2 and 0 == L5_2 then
L6_2 = SetVehicleLights
L7_2 = L2_2
L8_2 = 1
L6_2(L7_2, L8_2)
L6_2 = true
L16_1 = L6_2
elseif 1 == L4_2 and 1 == L5_2 or 0 == L4_2 and 1 == L5_2 then
L6_2 = SetVehicleLights
L7_2 = L2_2
L8_2 = 2
L6_2(L7_2, L8_2)
L6_2 = false
L16_1 = L6_2
else
L6_2 = L16_1
if L6_2 then
L6_2 = false
L16_1 = L6_2
L6_2 = SetVehicleLights
L7_2 = L2_2
L8_2 = 1
L6_2(L7_2, L8_2)
else
L6_2 = true
L16_1 = L6_2
L6_2 = SetVehicleLights
L7_2 = L2_2
L8_2 = 2
L6_2(L7_2, L8_2)
end
end
end
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNUICallback
L18_1 = "emergency"
function L19_1(A0_2)
local L1_2, L2_2, L3_2
L1_2 = L3_1
if L1_2 then
L1_2 = false
L3_1 = L1_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.type = "emergency"
L3_2 = L3_1
L2_2.emergencystatus = L3_2
L1_2(L2_2)
else
L1_2 = true
L3_1 = L1_2
L1_2 = SendNUIMessage
L2_2 = {}
L2_2.type = "emergency"
L3_2 = L3_1
L2_2.emergencystatus = L3_2
L1_2(L2_2)
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNUICallback
L18_1 = "camera"
function L19_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L1_2 = GetVehiclePedIsIn
L2_2 = PlayerPedId
L2_2 = L2_2()
L3_2 = false
L1_2 = L1_2(L2_2, L3_2)
L2_2 = {}
L2_2.use = true
L2_2.ped = L1_2
L2_2.coords = nil
L2_2.distance = -3.5
L2_2.rotation = 0.5
L2_2.fovpoint = 0.5
L3_2 = Camera
L4_2 = L2_2
L3_2(L4_2)
L3_2 = Citizen
L3_2 = L3_2.Wait
L4_2 = 1000
L3_2(L4_2)
L3_2 = SendNUIMessage
L4_2 = {}
L4_2.type = "rearcam"
L3_2(L4_2)
L3_2 = true
L13_1 = L3_2
while true do
L3_2 = L13_1
if not L3_2 then
break
end
L3_2 = AttachCamToEntity
L4_2 = L14_1
L5_2 = PlayerPedId
L5_2 = L5_2()
L6_2 = 0.0
L7_2 = -3.0
L8_2 = 0.0
L9_2 = true
L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
L3_2 = SetCamRot
L4_2 = L14_1
L5_2 = 0.0
L6_2 = 0.0
L7_2 = GetEntityHeading
L8_2 = L1_2
L7_2 = L7_2(L8_2)
L7_2 = L7_2 - 180.0
L3_2(L4_2, L5_2, L6_2, L7_2)
L3_2 = EnableControlAction
L4_2 = 0
L5_2 = 1
L6_2 = true
L3_2(L4_2, L5_2, L6_2)
L3_2 = EnableControlAction
L4_2 = 0
L5_2 = 2
L6_2 = true
L3_2(L4_2, L5_2, L6_2)
L3_2 = Citizen
L3_2 = L3_2.Wait
L4_2 = 0
L3_2(L4_2)
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNUICallback
L18_1 = "window"
function L19_1(A0_2)
local L1_2, L2_2
L1_2 = A0_2.window
if "lrdoor" == L1_2 then
L1_2 = WindowControl
L2_2 = 2
L1_2(L2_2)
else
L1_2 = A0_2.window
if "lfdoor" == L1_2 then
L1_2 = WindowControl
L2_2 = 0
L1_2(L2_2)
else
L1_2 = A0_2.window
if "rfdoor" == L1_2 then
L1_2 = WindowControl
L2_2 = 1
L1_2(L2_2)
else
L1_2 = A0_2.window
if "rrdoor" == L1_2 then
L1_2 = WindowControl
L2_2 = 3
L1_2(L2_2)
end
end
end
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNUICallback
L18_1 = "action"
function L19_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L1_2 = source
L2_2 = L8_1
L3_2 = IsPedInAnyVehicle
L4_2 = PlayerPedId
L4_2 = L4_2()
L5_2 = false
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = GetVehiclePedIsIn
L4_2 = PlayerPedId
L4_2 = L4_2()
L5_2 = false
L3_2 = L3_2(L4_2, L5_2)
L4_2 = GetVehicleNumberPlateText
L5_2 = L3_2
L4_2 = L4_2(L5_2)
L2_2 = L4_2
end
L3_2 = A0_2.action
if "seturl" == L3_2 then
L3_2 = SetUrl
L4_2 = A0_2.link
L5_2 = L2_2
L3_2(L4_2, L5_2)
else
L3_2 = A0_2.action
if "play" == L3_2 then
L3_2 = L15_1
if not L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.isPlaying
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = TriggerServerEvent
L4_2 = "bit-vehControl:ChangeState"
L5_2 = false
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
L3_2 = SendNUIMessage
L4_2 = {}
L4_2.type = "pause"
L3_2(L4_2)
end
end
L3_2 = true
L15_1 = L3_2
else
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.isPaused
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = TriggerServerEvent
L4_2 = "bit-vehControl:ChangeState"
L5_2 = true
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
L3_2 = 0
while true do
L4_2 = L6_1
if not L4_2 then
break
end
L4_2 = Wait
L5_2 = 1000
L4_2(L5_2)
L4_2 = xSound
L5_2 = L4_2
L4_2 = L4_2.isPlaying
L6_2 = L2_2
L4_2 = L4_2(L5_2, L6_2)
if L4_2 then
L4_2 = SendNUIMessage
L5_2 = {}
L5_2.type = "time"
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.getMaxDuration
L8_2 = L2_2
L6_2 = L6_2(L7_2, L8_2)
L5_2.total = L6_2
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.getTimeStamp
L8_2 = L2_2
L6_2 = L6_2(L7_2, L8_2)
L5_2.played = L6_2
L4_2(L5_2)
else
L3_2 = L3_2 + 1
end
if L3_2 >= 5 then
break
end
end
end
end
L3_2 = false
L15_1 = L3_2
end
else
L3_2 = A0_2.action
if "pause" == L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.isPlaying
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = TriggerServerEvent
L4_2 = "bit-vehControl:ChangeState"
L5_2 = false
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
end
end
else
L3_2 = A0_2.action
if "volumeup" == L3_2 then
L3_2 = ApplySound
L4_2 = 0.05
L5_2 = L2_2
L3_2(L4_2, L5_2)
else
L3_2 = A0_2.action
if "volumedown" == L3_2 then
L3_2 = ApplySound
L4_2 = -0.05
L5_2 = L2_2
L3_2(L4_2, L5_2)
else
L3_2 = A0_2.action
if "forward" == L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = TriggerServerEvent
L4_2 = "bit-vehControl:ChangePosition"
L5_2 = 10
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
end
else
L3_2 = A0_2.action
if "back" == L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = TriggerServerEvent
L4_2 = "bit-vehControl:ChangePosition"
L5_2 = -10
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
end
end
end
end
end
end
end
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterCommand
L18_1 = Config
L18_1 = L18_1.command
function L19_1(A0_2, A1_2)
local L2_2, L3_2
activeUI = true
L2_2 = SetDisplay
L3_2 = L0_1
L3_2 = not L3_2
L2_2(L3_2)
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNetEvent
L18_1 = "bit-vehControl:ChangeVolume"
L17_1(L18_1)
L17_1 = AddEventHandler
L18_1 = "bit-vehControl:ChangeVolume"
function L19_1(A0_2, A1_2, A2_2)
local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
L3_2 = nil
L4_2 = nil
L5_2 = 1
L6_2 = Zones
L6_2 = #L6_2
L7_2 = 1
for L8_2 = L5_2, L6_2, L7_2 do
L9_2 = Zones
L9_2 = L9_2[L8_2]
L10_2 = L9_2.name
if A2_2 == L10_2 then
L9_2.volume = A0_2
L9_2.range = A1_2
L3_2 = L9_2.popo
L4_2 = L9_2.coords
end
end
L5_2 = xSound
L6_2 = L5_2
L5_2 = L5_2.soundExists
L7_2 = A2_2
L5_2 = L5_2(L6_2, L7_2)
if L5_2 then
L5_2 = xSound
L6_2 = L5_2
L5_2 = L5_2.Distance
L7_2 = A2_2
L8_2 = A1_2
L5_2(L6_2, L7_2, L8_2)
if not L3_2 and L4_2 then
L5_2 = xSound
L6_2 = L5_2
L5_2 = L5_2.setVolumeMax
L7_2 = A2_2
L8_2 = A0_2
L5_2(L6_2, L7_2, L8_2)
end
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNetEvent
L18_1 = "bit-vehControl:ChangeState"
L17_1(L18_1)
L17_1 = AddEventHandler
L18_1 = "bit-vehControl:ChangeState"
function L19_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
if A0_2 then
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.soundExists
L4_2 = A1_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.Resume
L4_2 = A1_2
L2_2(L3_2, L4_2)
end
else
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.soundExists
L4_2 = A1_2
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.Pause
L4_2 = A1_2
L2_2(L3_2, L4_2)
end
end
L2_2 = nil
L3_2 = 1
L4_2 = Zones
L4_2 = #L4_2
L5_2 = 1
for L6_2 = L3_2, L4_2, L5_2 do
L7_2 = Zones
L7_2 = L7_2[L6_2]
L8_2 = L7_2.name
if L8_2 == A1_2 then
L8_2 = L7_2.popo
if L8_2 then
L2_2 = L6_2
end
L7_2.isplaying = A0_2
end
end
if A0_2 and L2_2 then
L3_2 = table
L3_2 = L3_2.insert
L4_2 = L9_1
L5_2 = L2_2
L3_2(L4_2, L5_2)
L3_2 = StartMusicLoop
L4_2 = L2_2
L3_2(L4_2)
elseif L2_2 then
L3_2 = 1
L4_2 = L9_1
L4_2 = #L4_2
L5_2 = 1
for L6_2 = L3_2, L4_2, L5_2 do
L7_2 = L9_1
L7_2 = L7_2[L6_2]
if L7_2 == L2_2 then
L8_2 = table
L8_2 = L8_2.remove
L9_2 = L9_1
L10_2 = L6_2
L8_2(L9_2, L10_2)
end
end
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNetEvent
L18_1 = "bit-vehControl:ChangePosition"
L17_1(L18_1)
L17_1 = AddEventHandler
L18_1 = "bit-vehControl:ChangePosition"
function L19_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L2_2 = nil
L3_2 = 1
L4_2 = Zones
L4_2 = #L4_2
L5_2 = 1
for L6_2 = L3_2, L4_2, L5_2 do
L7_2 = Zones
L7_2 = L7_2[L6_2]
L8_2 = L7_2.name
if L8_2 == A1_2 then
L8_2 = L7_2.deftime
L8_2 = L8_2 + A0_2
L7_2.deftime = L8_2
L8_2 = L7_2.deftime
if L8_2 < 0 then
L7_2.deftime = 0
end
L2_2 = L7_2.deftime
end
end
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = A1_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setTimeStamp
L5_2 = A1_2
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNetEvent
L18_1 = "bit-vehControl:ModifyURL"
L17_1(L18_1)
L17_1 = AddEventHandler
L18_1 = "bit-vehControl:ModifyURL"
function L19_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 = A0_2
L2_2 = L1_2.volume
L3_2 = Config
L3_2 = L3_2.EveryoneHears
if not L3_2 then
L3_2 = L1_2.popo
if L3_2 then
L2_2 = 0.0
L3_2 = GetVehiclePedIsIn
L4_2 = PlayerPedId
L4_2 = L4_2()
L5_2 = false
L3_2 = L3_2(L4_2, L5_2)
L4_2 = GetVehicleNumberPlateText
L5_2 = L3_2
L4_2 = L4_2(L5_2)
L5_2 = L1_2.name
if L4_2 == L5_2 then
L2_2 = L1_2.volume
end
end
end
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.soundExists
L5_2 = L1_2.name
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.isDynamic
L5_2 = L1_2.name
L3_2 = L3_2(L4_2, L5_2)
if not L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setSoundDynamic
L5_2 = L1_2.name
L6_2 = true
L3_2(L4_2, L5_2, L6_2)
end
L3_2 = Wait
L4_2 = 100
L3_2(L4_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setVolumeMax
L5_2 = L1_2.name
L6_2 = 0.0
L3_2(L4_2, L5_2, L6_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setSoundURL
L5_2 = L1_2.name
L6_2 = L1_2.deflink
L3_2(L4_2, L5_2, L6_2)
L3_2 = Wait
L4_2 = 100
L3_2(L4_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.Position
L5_2 = L1_2.name
L6_2 = L1_2.coords
L3_2(L4_2, L5_2, L6_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setSoundLoop
L5_2 = L1_2.name
L6_2 = L1_2.loop
L3_2(L4_2, L5_2, L6_2)
L3_2 = Wait
L4_2 = 200
L3_2(L4_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setTimeStamp
L5_2 = L1_2.name
L6_2 = 0
L3_2(L4_2, L5_2, L6_2)
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.setVolumeMax
L5_2 = L1_2.name
L6_2 = L2_2
L3_2(L4_2, L5_2, L6_2)
else
L3_2 = Config
L3_2 = L3_2.useHigh3DSound
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.Play3DEntity
L5_2 = NetworkGetNetworkIdFromEntity
L6_2 = popodentro
L5_2 = L5_2(L6_2)
L6_2 = Config
L6_2 = L6_2.VolumeDistance
L7_2 = L1_2.deflink
L8_2 = 1.0
L9_2 = true
L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
else
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.PlayUrlPos
L5_2 = L1_2.name
L6_2 = L1_2.deflink
L7_2 = L2_2
L8_2 = L1_2.coords
L9_2 = L1_2.loop
L10_2 = {}
function L11_2(A0_3)
local L1_3, L2_3, L3_3, L4_3
L1_3 = xSound
L2_3 = L1_3
L1_3 = L1_3.setTimeStamp
L3_3 = L1_2.name
L4_3 = L1_2.deftime
L1_3(L2_3, L3_3, L4_3)
L1_3 = xSound
L2_3 = L1_3
L1_3 = L1_3.Distance
L3_3 = L1_2.name
L4_3 = L1_2.range
L1_3(L2_3, L3_3, L4_3)
end
L10_2.onPlayStart = L11_2
L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2)
end
end
L3_2 = nil
L4_2 = 1
L5_2 = Zones
L5_2 = #L5_2
L6_2 = 1
for L7_2 = L4_2, L5_2, L6_2 do
L8_2 = Zones
L8_2 = L8_2[L7_2]
L9_2 = L1_2.name
L10_2 = L8_2.name
if L9_2 == L10_2 then
L9_2 = L8_2.popo
if L9_2 then
L3_2 = L7_2
end
L9_2 = L1_2.deflink
L8_2.deflink = L9_2
L8_2.deftime = 0
L9_2 = L1_2.isplaying
L8_2.isplaying = L9_2
L9_2 = L1_2.loop
L8_2.loop = L9_2
L9_2 = L1_2.popo
if L9_2 then
L9_2 = L1_2.popo
L8_2.popo = L9_2
end
end
end
L4_2 = false
L5_2 = 1
L6_2 = L9_1
L6_2 = #L6_2
L7_2 = 1
for L8_2 = L5_2, L6_2, L7_2 do
L9_2 = L9_1
L9_2 = L9_2[L8_2]
if L9_2 == L3_2 then
L4_2 = true
end
end
L5_2 = 0
while true do
L6_2 = L6_1
if not L6_2 then
break
end
L6_2 = Wait
L7_2 = 1000
L6_2(L7_2)
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.soundExists
L8_2 = L1_2.name
L6_2 = L6_2(L7_2, L8_2)
if L6_2 then
L6_2 = PlayerPedId
L6_2 = L6_2()
L7_2 = GetEntityCoords
L8_2 = L6_2
L7_2 = L7_2(L8_2)
L8_2 = xSound
L9_2 = L8_2
L8_2 = L8_2.getPosition
L10_2 = L1_2.name
L8_2 = L8_2(L9_2, L10_2)
L8_2 = L7_2 - L8_2
L8_2 = #L8_2
L9_2 = xSound
L10_2 = L9_2
L9_2 = L9_2.isPlaying
L11_2 = L1_2.name
L9_2 = L9_2(L10_2, L11_2)
if L9_2 then
if not (L8_2 <= 3) then
L9_2 = L1_2.popo
if L9_2 then
goto lbl_201
end
end
L9_2 = SendNUIMessage
L10_2 = {}
L10_2.type = "time"
L11_2 = xSound
L12_2 = L11_2
L11_2 = L11_2.getMaxDuration
L13_2 = L1_2.name
L11_2 = L11_2(L12_2, L13_2)
L10_2.total = L11_2
L11_2 = xSound
L12_2 = L11_2
L11_2 = L11_2.getTimeStamp
L13_2 = L1_2.name
L11_2 = L11_2(L12_2, L13_2)
L10_2.played = L11_2
L9_2(L10_2)
::lbl_201::
else
L5_2 = L5_2 + 1
end
else
L5_2 = L5_2 + 1
end
if L5_2 >= 4 then
break
end
end
if not L4_2 and L3_2 then
L6_2 = table
L6_2 = L6_2.insert
L7_2 = L9_1
L8_2 = L3_2
L6_2(L7_2, L8_2)
L6_2 = StartMusicLoop
L7_2 = L3_2
L6_2(L7_2)
end
end
L17_1(L18_1, L19_1)
L17_1 = RegisterNetEvent
L18_1 = "bit-vehControl:AddVehicle"
L17_1(L18_1)
L17_1 = AddEventHandler
L18_1 = "bit-vehControl:AddVehicle"
function L19_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 = table
L1_2 = L1_2.insert
L2_2 = Zones
L3_2 = A0_2
L1_2(L2_2, L3_2)
L1_2 = A0_2
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.soundExists
L4_2 = L1_2.name
L2_2 = L2_2(L3_2, L4_2)
if L2_2 then
L2_2 = xSound
L3_2 = L2_2
L2_2 = L2_2.Destroy
L4_2 = L1_2.name
L2_2(L3_2, L4_2)
end
L2_2 = L1_2.volume
L3_2 = Config
L3_2 = L3_2.EveryoneHears
if not L3_2 then
L3_2 = L1_2.popo
if L3_2 then
L2_2 = 0.0
L3_2 = GetVehiclePedIsIn
L4_2 = PlayerPedId
L4_2 = L4_2()
L5_2 = false
L3_2 = L3_2(L4_2, L5_2)
L4_2 = GetVehicleNumberPlateText
L5_2 = L3_2
L4_2 = L4_2(L5_2)
L5_2 = L1_2.name
if L4_2 == L5_2 then
L2_2 = L1_2.volume
end
end
end
L3_2 = Config
L3_2 = L3_2.useHigh3DSound
if L3_2 then
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.Play3DEntity
L5_2 = NetworkGetNetworkIdFromEntity
L6_2 = popodentro
L5_2 = L5_2(L6_2)
L6_2 = Config
L6_2 = L6_2.VolumeDistance
L7_2 = L1_2.deflink
L8_2 = 1.0
L9_2 = true
L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
else
L3_2 = xSound
L4_2 = L3_2
L3_2 = L3_2.PlayUrlPos
L5_2 = L1_2.name
L6_2 = L1_2.deflink
L7_2 = L2_2
L8_2 = L1_2.coords
L9_2 = L1_2.loop
L10_2 = {}
function L11_2(A0_3)
local L1_3, L2_3, L3_3, L4_3
L1_3 = xSound
L2_3 = L1_3
L1_3 = L1_3.setTimeStamp
L3_3 = L1_2.name
L4_3 = L1_2.deftime
L1_3(L2_3, L3_3, L4_3)
L1_3 = xSound
L2_3 = L1_3
L1_3 = L1_3.Distance
L3_3 = L1_2.name
L4_3 = L1_2.range
L1_3(L2_3, L3_3, L4_3)
end
L10_2.onPlayStart = L11_2
L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2)
end
L3_2 = table
L3_2 = L3_2.insert
L4_2 = L9_1
L5_2 = Zones
L5_2 = #L5_2
L3_2(L4_2, L5_2)
L3_2 = StartMusicLoop
L4_2 = Zones
L4_2 = #L4_2
L3_2(L4_2)
end
L17_1(L18_1, L19_1)
function L17_1(A0_2)
local L1_2, L2_2, L3_2
while true do
L1_2 = xSound
L2_2 = L1_2
L1_2 = L1_2.soundExists
L3_2 = Zones
L3_2 = L3_2[A0_2]
L3_2 = L3_2.name
L1_2 = L1_2(L2_2, L3_2)
if L1_2 then
break
end
L1_2 = Wait
L2_2 = 10
L1_2(L2_2)
end
L1_2 = Citizen
L1_2 = L1_2.CreateThread
function L2_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
L0_3 = true
while true do
L1_3 = 100
L2_3 = Zones
L3_3 = A0_2
L2_3 = L2_3[L3_3]
if nil == L2_3 then
return
end
L3_3 = L2_3.isplaying
if L3_3 then
L3_3 = xSound
L4_3 = L3_3
L3_3 = L3_3.soundExists
L5_3 = L2_3.name
L3_3 = L3_3(L4_3, L5_3)
if L3_3 then
L3_3 = false
L4_3 = NetworkDoesEntityExistWithNetworkId
L5_3 = L2_3.popo
L4_3 = L4_3(L5_3)
if L4_3 then
L4_3 = NetworkGetEntityFromNetworkId
L5_3 = L2_3.popo
L4_3 = L4_3(L5_3)
L5_3 = GetEntityType
L6_3 = L4_3
L5_3 = L5_3(L6_3)
if 2 == L5_3 then
L5_3 = GetVehicleNumberPlateText
L6_3 = L4_3
L5_3 = L5_3(L6_3)
L6_3 = L2_3.name
if L5_3 == L6_3 then
L3_3 = true
L5_3 = GetEntityCoords
L6_3 = L4_3
L5_3 = L5_3(L6_3)
L6_3 = L12_1
L6_3 = L5_3 - L6_3
L6_3 = #L6_3
L7_3 = L2_3.range
L7_3 = L7_3 + 50
if L6_3 <= L7_3 then
L7_3 = xSound
L8_3 = L7_3
L7_3 = L7_3.getVolume
L9_3 = L2_3.name
L7_3 = L7_3(L8_3, L9_3)
L8_3 = xSound
L9_3 = L8_3
L8_3 = L8_3.isDynamic
L10_3 = L2_3.name
L8_3 = L8_3(L9_3, L10_3)
L9_3 = L2_3.coords
L10_3 = L9_3 - L5_3
L10_3 = #L10_3
L11_3 = 0.001
if L7_3 <= L11_3 then
L1_3 = 1000
end
L11_3 = L11_1
if L11_3 == L4_3 then
if L8_3 then
L11_3 = xSound
L12_3 = L11_3
L11_3 = L11_3.setSoundDynamic
L13_3 = L2_3.name
L14_3 = false
L11_3(L12_3, L13_3, L14_3)
end
L11_3 = L2_3.volume
if L7_3 ~= L11_3 then
L11_3 = xSound
L12_3 = L11_3
L11_3 = L11_3.setVolume
L13_3 = L2_3.name
L14_3 = L2_3.volume
L11_3(L12_3, L13_3, L14_3)
end
if L10_3 >= 5.0 or L0_3 then
L0_3 = false
L2_3.coords = L5_3
L11_3 = xSound
L12_3 = L11_3
L11_3 = L11_3.Position
L13_3 = L2_3.name
L14_3 = L5_3
L11_3(L12_3, L13_3, L14_3)
else
L1_3 = L1_3 + 150
end
else
if not L8_3 then
L11_3 = xSound
L12_3 = L11_3
L11_3 = L11_3.setSoundDynamic
L13_3 = L2_3.name
L14_3 = true
L11_3(L12_3, L13_3, L14_3)
end
L11_3 = L2_3.volume
if L7_3 ~= L11_3 then
L11_3 = xSound
L12_3 = L11_3
L11_3 = L11_3.setVolumeMax
L13_3 = L2_3.name
L14_3 = L2_3.volume
L11_3(L12_3, L13_3, L14_3)
end
L11_3 = L2_3.range
L11_3 = L11_3 + 20
if L6_3 >= L11_3 then
L11_3 = L6_3 * 100
L1_3 = L11_3 / 3
end
L11_3 = 10000
if L1_3 <= L11_3 then
L11_3 = GetEntitySpeed
L12_3 = L4_3
L11_3 = L11_3(L12_3)
L11_3 = L11_3 * 3.6
if L11_3 <= 2.0 then
L1_3 = L1_3 + 2500
elseif L11_3 <= 5.0 then
L1_3 = L1_3 + 1000
elseif L11_3 <= 10.0 then
L1_3 = L1_3 + 100
end
end
if L10_3 >= 1.0 or L0_3 then
L0_3 = false
L2_3.coords = L5_3
L11_3 = xSound
L12_3 = L11_3
L11_3 = L11_3.Position
L13_3 = L2_3.name
L14_3 = L5_3
L11_3(L12_3, L13_3, L14_3)
else
L1_3 = L1_3 + 150
end
end
else
L7_3 = xSound
L8_3 = L7_3
L7_3 = L7_3.isDynamic
L9_3 = L2_3.name
L7_3 = L7_3(L8_3, L9_3)
if not L7_3 then
L7_3 = xSound
L8_3 = L7_3
L7_3 = L7_3.setSoundDynamic
L9_3 = L2_3.name
L10_3 = true
L7_3(L8_3, L9_3, L10_3)
end
L7_3 = xSound
L8_3 = L7_3
L7_3 = L7_3.setVolumeMax
L9_3 = L2_3.name
L10_3 = 0.0
L7_3(L8_3, L9_3, L10_3)
if not L0_3 then
L7_3 = xSound
L8_3 = L7_3
L7_3 = L7_3.Position
L9_3 = L2_3.name
L10_3 = vector3
L11_3 = 350.0
L12_3 = 0.0
L13_3 = -150.0
L10_3, L11_3, L12_3, L13_3, L14_3 = L10_3(L11_3, L12_3, L13_3)
L7_3(L8_3, L9_3, L10_3, L11_3, L12_3, L13_3, L14_3)
L0_3 = true
end
L7_3 = L6_3 * 100
L1_3 = L7_3 / 2
end
end
end
end
if not L3_3 then
L4_3 = xSound
L5_3 = L4_3
L4_3 = L4_3.isDynamic
L6_3 = L2_3.name
L4_3 = L4_3(L5_3, L6_3)
if not L4_3 then
L4_3 = xSound
L5_3 = L4_3
L4_3 = L4_3.setSoundDynamic
L6_3 = L2_3.name
L7_3 = true
L4_3(L5_3, L6_3, L7_3)
end
if not L0_3 then
L4_3 = xSound
L5_3 = L4_3
L4_3 = L4_3.Position
L6_3 = L2_3.name
L7_3 = vector3
L8_3 = 350.0
L9_3 = 0.0
L10_3 = -150.0
L7_3, L8_3, L9_3, L10_3, L11_3, L12_3, L13_3, L14_3 = L7_3(L8_3, L9_3, L10_3)
L4_3(L5_3, L6_3, L7_3, L8_3, L9_3, L10_3, L11_3, L12_3, L13_3, L14_3)
L0_3 = true
end
L4_3 = Wait
L5_3 = 5000
L4_3(L5_3)
end
end
else
L3_3 = xSound
L4_3 = L3_3
L3_3 = L3_3.soundExists
L5_3 = L2_3.name
L3_3 = L3_3(L4_3, L5_3)
if L3_3 then
L3_3 = xSound
L4_3 = L3_3
L3_3 = L3_3.isDynamic
L5_3 = L2_3.name
L3_3 = L3_3(L4_3, L5_3)
if not L3_3 then
L3_3 = xSound
L4_3 = L3_3
L3_3 = L3_3.setSoundDynamic
L5_3 = L2_3.name
L6_3 = true
L3_3(L4_3, L5_3, L6_3)
end
L3_3 = xSound
L4_3 = L3_3
L3_3 = L3_3.setVolumeMax
L5_3 = L2_3.name
L6_3 = 0.0
L3_3(L4_3, L5_3, L6_3)
if not L0_3 then
L3_3 = xSound
L4_3 = L3_3
L3_3 = L3_3.Position
L5_3 = L2_3.name
L6_3 = vector3
L7_3 = 350.0
L8_3 = 0.0
L9_3 = -150.0
L6_3, L7_3, L8_3, L9_3, L10_3, L11_3, L12_3, L13_3, L14_3 = L6_3(L7_3, L8_3, L9_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)
L0_3 = true
end
end
L2_3.isplaying = false
L3_3 = 1
L4_3 = L9_1
L4_3 = #L4_3
L5_3 = 1
for L6_3 = L3_3, L4_3, L5_3 do
L7_3 = L9_1
L7_3 = L7_3[L6_3]
L8_3 = A0_2
if L7_3 == L8_3 then
L8_3 = table
L8_3 = L8_3.remove
L9_3 = L9_1
L10_3 = L6_3
L8_3(L9_3, L10_3)
end
end
break
end
L3_3 = 10000
if L1_3 > L3_3 then
L1_3 = 10000
end
L3_3 = Wait
L4_3 = L1_3
L3_3(L4_3)
end
end
L1_2(L2_2)
end
StartMusicLoop = L17_1
L17_1 = RegisterNetEvent
L18_1 = "bit-vehControl:SendData"
L17_1(L18_1)
L17_1 = AddEventHandler
L18_1 = "bit-vehControl:SendData"
function L19_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
Zones = A0_2
L1_2 = 1
L2_2 = Zones
L2_2 = #L2_2
L3_2 = 1
for L4_2 = L1_2, L2_2, L3_2 do
L5_2 = Zones
L5_2 = L5_2[L4_2]
L6_2 = L5_2.isplaying
if L6_2 then
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.soundExists
L8_2 = L5_2.name
L6_2 = L6_2(L7_2, L8_2)
if L6_2 then
L6_2 = xSound
L7_2 = L6_2
L6_2 = L6_2.Destroy
L8_2 = L5_2.name
L6_2(L7_2, L8_2)
end
L6_2 = L5_2.volume
L7_2 = Config
L7_2 = L7_2.EveryoneHears
if not L7_2 then
L7_2 = L5_2.popo
if L7_2 then
L6_2 = 0.0
L7_2 = GetVehiclePedIsIn
L8_2 = PlayerPedId
L8_2 = L8_2()
L9_2 = false
L7_2 = L7_2(L8_2, L9_2)
L8_2 = GetVehicleNumberPlateText
L9_2 = L7_2
L8_2 = L8_2(L9_2)
L9_2 = L5_2.name
if L8_2 == L9_2 then
L6_2 = L5_2.volume
end
end
end
L7_2 = Config
L7_2 = L7_2.useHigh3DSound
if L7_2 then
L7_2 = xSound
L8_2 = L7_2
L7_2 = L7_2.Play3DEntity
L9_2 = NetworkGetNetworkIdFromEntity
L10_2 = popodentro
L9_2 = L9_2(L10_2)
L10_2 = Config
L10_2 = L10_2.VolumeDistance
L11_2 = L5_2.deflink
L12_2 = 1.0
L13_2 = true
L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2)
else
L7_2 = xSound
L8_2 = L7_2
L7_2 = L7_2.PlayUrlPos
L9_2 = L5_2.name
L10_2 = L5_2.deflink
L11_2 = L6_2
L12_2 = L5_2.coords
L13_2 = L5_2.loop
L14_2 = {}
function L15_2(A0_3)
local L1_3, L2_3, L3_3, L4_3
L1_3 = xSound
L2_3 = L1_3
L1_3 = L1_3.setTimeStamp
L3_3 = L5_2.name
L4_3 = L5_2.deftime
L1_3(L2_3, L3_3, L4_3)
L1_3 = xSound
L2_3 = L1_3
L1_3 = L1_3.Distance
L3_3 = L5_2.name
L4_3 = L5_2.range
L1_3(L2_3, L3_3, L4_3)
end
L14_2.onPlayStart = L15_2
L7_2(L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2)
end
L7_2 = L5_2.popo
if L7_2 then
L7_2 = table
L7_2 = L7_2.insert
L8_2 = L9_1
L9_2 = L4_2
L7_2(L8_2, L9_2)
L7_2 = StartMusicLoop
L8_2 = L4_2
L7_2(L8_2)
end
end
end
end
L17_1(L18_1, L19_1)