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