From 2bea91ee9926c4082de222a4c0b3dacb9ad539de Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 19 Mar 2021 15:47:45 +0000 Subject: [PATCH] refactor: remove debug commands --- cl_test_cmds.lua | 22 ---------------------- config.lua | 3 --- fxmanifest.lua | 4 +--- 3 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 cl_test_cmds.lua diff --git a/cl_test_cmds.lua b/cl_test_cmds.lua deleted file mode 100644 index 3fb57aa..0000000 --- a/cl_test_cmds.lua +++ /dev/null @@ -1,22 +0,0 @@ -if ( CONFIG.debug ) then - -- Restart the resource - RegisterCommand( "rre", function( source, args, rawCommand ) - UTIL:Notify( "[DEBUG]: Restarting resource" ) - ExecuteCommand( "restart wk_wars2x" ) - end, false ) - TriggerEvent( "chat:addSuggestion", "/rre", "Restarts wk_wars2x" ) - - -- Radar Toggle Passenger Control - RegisterCommand( "rtpc", function( source, args, rawCommand ) - CONFIG.allow_passenger_control = not CONFIG.allow_passenger_control - UTIL:Notify( string.format( "[DEBUG]: CONFIG.allow_passenger_control set to %s", tostring( CONFIG.allow_passenger_control ) ) ) - end, false ) - TriggerEvent( "chat:addSuggestion", "/rtpc", "Toggle CONFIG.allow_passenger_control" ) - - -- Radar Toggle Passenger View - RegisterCommand( "rtpv", function( source, args, rawCommand ) - CONFIG.allow_passenger_view = not CONFIG.allow_passenger_view - UTIL:Notify( string.format( "[DEBUG]: CONFIG.allow_passenger_view set to %s", tostring( CONFIG.allow_passenger_view ) ) ) - end, false ) - TriggerEvent( "chat:addSuggestion", "/rtpv", "Toggle CONFIG.allow_passenger_view" ) -end \ No newline at end of file diff --git a/config.lua b/config.lua index aa25a08..6678755 100644 --- a/config.lua +++ b/config.lua @@ -33,9 +33,6 @@ -- Do not touch this CONFIG = {} --- Radar debug mode -CONFIG.debug = true - -- Radar fast limit locking -- When enabled, the player will be able to define a fast limit within the radar's menu, when a vehicle -- exceeds the fast limit, it will be locked into the fast box. Default setting is disabled to maintain realism diff --git a/fxmanifest.lua b/fxmanifest.lua index c739bf9..6ede8a1 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -67,6 +67,4 @@ client_script "cl_utils.lua" client_script "cl_player.lua" client_script "cl_radar.lua" client_script "cl_plate_reader.lua" -client_script "cl_sync.lua" - -client_script "cl_test_cmds.lua" \ No newline at end of file +client_script "cl_sync.lua" \ No newline at end of file