mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
refactor: comment out debug console messages
This commit is contained in:
@@ -87,11 +87,11 @@ function SYNC:SyncDataOnEnter()
|
|||||||
-- checks manually.
|
-- checks manually.
|
||||||
if ( RADAR:IsPassengerViewAllowed() ) then
|
if ( RADAR:IsPassengerViewAllowed() ) then
|
||||||
if ( PLY:IsPassenger() ) then
|
if ( PLY:IsPassenger() ) then
|
||||||
UTIL:Notify( "Triggering server event to get radar data" )
|
-- UTIL:Notify( "Triggering server event to get radar data" )
|
||||||
local driver = PLY:GetOtherPedServerId()
|
local driver = PLY:GetOtherPedServerId()
|
||||||
TriggerServerEvent( "wk_wars2x_sync:requestRadarData", driver )
|
TriggerServerEvent( "wk_wars2x_sync:requestRadarData", driver )
|
||||||
elseif ( PLY:IsDriver() ) then
|
elseif ( PLY:IsDriver() ) then
|
||||||
UTIL:Notify( "Restoring local radar data" )
|
-- UTIL:Notify( "Restoring local radar data" )
|
||||||
|
|
||||||
if ( RADAR:IsThereBackupData() ) then
|
if ( RADAR:IsThereBackupData() ) then
|
||||||
-- Restore the local data
|
-- Restore the local data
|
||||||
@@ -141,11 +141,11 @@ end )
|
|||||||
|
|
||||||
RegisterNetEvent( "wk_wars2x_sync:getRadarDataFromDriver" )
|
RegisterNetEvent( "wk_wars2x_sync:getRadarDataFromDriver" )
|
||||||
AddEventHandler( "wk_wars2x_sync:getRadarDataFromDriver", function( playerFor )
|
AddEventHandler( "wk_wars2x_sync:getRadarDataFromDriver", function( playerFor )
|
||||||
print( "Radar table has been requested by " .. tostring( GetPlayerName( playerFor ) ) )
|
-- print( "Radar table has been requested by " .. tostring( GetPlayerName( playerFor ) ) )
|
||||||
|
|
||||||
local data = RADAR:GetRadarDataForSync()
|
local data = RADAR:GetRadarDataForSync()
|
||||||
|
|
||||||
print( "Got table (type: " .. type( data ) .. ")" )
|
-- print( "Got table (type: " .. type( data ) .. ")" )
|
||||||
|
|
||||||
TriggerServerEvent( "wk_wars2x_sync:sendRadarDataForPassenger", playerFor, data )
|
TriggerServerEvent( "wk_wars2x_sync:sendRadarDataForPassenger", playerFor, data )
|
||||||
end )
|
end )
|
||||||
|
|||||||
Reference in New Issue
Block a user