refactor: remove debug commands

This commit is contained in:
Dan
2021-03-19 15:47:45 +00:00
parent ca579d020e
commit 2bea91ee99
3 changed files with 1 additions and 28 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -68,5 +68,3 @@ 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"