From 4bc6d010cab42c970f6667a77a5302113ec0859e Mon Sep 17 00:00:00 2001 From: TrevorBarns <62955754+TrevorBarns@users.noreply.github.com> Date: Thu, 25 Mar 2021 21:36:52 -0500 Subject: [PATCH 1/2] Feature: Bring fast options to top of menu options for ease of access. --- cl_radar.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 1c51439..a027e3e 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -511,8 +511,9 @@ if ( RADAR:IsFastLimitAllowed() ) then end -- Add the fast options to the main menu options table - table.insert( self.vars.menuOptions, fastOptions[1] ) - table.insert( self.vars.menuOptions, fastOptions[2] ) + --PR TrevorBarns: push to front of table, for ease of access. + table.insert( self.vars.menuOptions, 1, fastOptions[1] ) + table.insert( self.vars.menuOptions, 2, fastOptions[2] ) end -- Returns the numerical fast limit From cfce5e4b85b191aa10fa436cff31dd31ab6302fe Mon Sep 17 00:00:00 2001 From: TrevorBarns <62955754+TrevorBarns@users.noreply.github.com> Date: Fri, 26 Mar 2021 13:41:41 -0500 Subject: [PATCH 2/2] feat: 'fast limit menu first' config to determine new sort order --- cl_radar.lua | 10 +++++++--- config.lua | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index a027e3e..95b74ad 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -511,9 +511,13 @@ if ( RADAR:IsFastLimitAllowed() ) then end -- Add the fast options to the main menu options table - --PR TrevorBarns: push to front of table, for ease of access. - table.insert( self.vars.menuOptions, 1, fastOptions[1] ) - table.insert( self.vars.menuOptions, 2, fastOptions[2] ) + if CONFIG.fast_limit_menu_first == true then + table.insert( self.vars.menuOptions, 1, fastOptions[2] ) --FasSpd + table.insert( self.vars.menuOptions, 2, fastOptions[1] ) --FasLoc + else + table.insert( self.vars.menuOptions, fastOptions[1] ) --FasLoc + table.insert( self.vars.menuOptions, fastOptions[2] ) --FasSpd + end end -- Returns the numerical fast limit diff --git a/config.lua b/config.lua index be4a634..f0779ff 100644 --- a/config.lua +++ b/config.lua @@ -38,6 +38,10 @@ CONFIG = {} -- exceeds the fast limit, it will be locked into the fast box. Default setting is disabled to maintain realism CONFIG.allow_fast_limit = true +-- Radar fast limit menu order +-- When enabled, the fast limit options menu will be displayed first followed by fast lock toggle, then all default menu options. +CONFIG.fast_limit_menu_first = true + -- Radar only lock players with auto fast locking -- When enabled, the radar will only automatically lock a speed if the caught vehicle has a real player in it. CONFIG.only_lock_players = false