refactor: comment out more debug messages

This commit is contained in:
Dan
2021-03-13 14:07:35 +00:00
parent 6ec766eb82
commit 699bca2ee4
2 changed files with 6 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ end )
Citizen.CreateThread( function() Citizen.CreateThread( function()
while ( true ) do while ( true ) do
if ( IsPedGettingIntoAVehicle( PLY.ped ) ) then if ( IsPedGettingIntoAVehicle( PLY.ped ) ) then
UTIL:Notify( "DEBUG: Player getting in vehicle" ) -- UTIL:Notify( "DEBUG: Player getting in vehicle" )
local vehEntering = GetVehiclePedIsEntering( PLY.ped ) local vehEntering = GetVehiclePedIsEntering( PLY.ped )
Citizen.Wait( 2000 ) Citizen.Wait( 2000 )
@@ -116,7 +116,7 @@ Citizen.CreateThread( function()
local veh = GetVehiclePedIsIn( PLY.ped, false ) local veh = GetVehiclePedIsIn( PLY.ped, false )
if ( veh == vehEntering ) then if ( veh == vehEntering ) then
UTIL:Notify( "DEBUG: Trigger sync" ) -- UTIL:Notify( "DEBUG: Trigger sync" )
SYNC:SyncDataOnEnter() SYNC:SyncDataOnEnter()
end end
end end

View File

@@ -444,10 +444,10 @@ function RADAR:RestoreFromBackup()
-- Restore the antenna data -- Restore the antenna data
if ( antData ~= nil ) then if ( antData ~= nil ) then
UTIL:Notify( "Restoring backup " .. ant .. " antenna data" ) -- UTIL:Notify( "Restoring backup " .. ant .. " antenna data" )
self:SetAntennaTableData( ant, antData ) self:SetAntennaTableData( ant, antData )
UTIL:Log( "Backup " .. ant .. " antenna, data: (xmit: " .. tostring( antData.xmit ) .. ") (mode: " .. tostring( antData.mode ) .. ") (speedLocked: " .. tostring( antData.speedLocked ) .. ") (fast: " .. tostring( antData.fast ) .. ")" ) -- UTIL:Log( "Backup " .. ant .. " antenna, data: (xmit: " .. tostring( antData.xmit ) .. ") (mode: " .. tostring( antData.mode ) .. ") (speedLocked: " .. tostring( antData.speedLocked ) .. ") (fast: " .. tostring( antData.fast ) .. ")" )
-- Clear the backup -- Clear the backup
self:SetBackupAntennaData( ant, nil ) self:SetBackupAntennaData( ant, nil )
@@ -457,7 +457,7 @@ function RADAR:RestoreFromBackup()
-- Get the power state -- Get the power state
local pwrState = self:GetBackupPowerState() local pwrState = self:GetBackupPowerState()
UTIL:Notify( "Backup power state: " .. tostring( pwrState ) ) -- UTIL:Notify( "Backup power state: " .. tostring( pwrState ) )
if ( pwrState ~= nil ) then if ( pwrState ~= nil ) then
self:SetPowerState( pwrState, true ) self:SetPowerState( pwrState, true )
@@ -588,7 +588,7 @@ function RADAR:SendSettingUpdate()
antennas[ant].speedLocked = self:IsAntennaSpeedLocked( ant ) antennas[ant].speedLocked = self:IsAntennaSpeedLocked( ant )
antennas[ant].fast = self:ShouldFastBeDisplayed( ant ) antennas[ant].fast = self:ShouldFastBeDisplayed( ant )
UTIL:Log( "Updating " .. ant .. " antenna display, data: (xmit: " .. tostring( antennas[ant].xmit ) .. ") (mode: " .. tostring( antennas[ant].mode ) .. ") (speedLocked: " .. tostring( antennas[ant].speedLocked ) .. ") (fast: " .. tostring( antennas[ant].fast ) .. ")" ) -- UTIL:Log( "Updating " .. ant .. " antenna display, data: (xmit: " .. tostring( antennas[ant].xmit ) .. ") (mode: " .. tostring( antennas[ant].mode ) .. ") (speedLocked: " .. tostring( antennas[ant].speedLocked ) .. ") (fast: " .. tostring( antennas[ant].fast ) .. ")" )
end end
-- Send a message to the NUI side with the current state of the antennas -- Send a message to the NUI side with the current state of the antennas