mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
refactor: comment out more debug messages
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user