diff --git a/cl_radar.lua b/cl_radar.lua index 5cdfdae..d23b505 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -244,11 +244,7 @@ RADAR.vars = threadWaitTime = 500, -- Key lock, when true, prevents any of the radar's key events from working, like the ELS key lock - keyLock = false, - - -- Full keyboard, when true, the keybinds for the radar will be set to the keys on the numpad, when false, the - -- keybinds for the radar will be set to the number keys above WASD - fullKeyboard = true + keyLock = false } -- Speed conversion values @@ -496,32 +492,6 @@ function RADAR:GetKeyLockState() return self.vars.keyLock end --- Toggles between the full and small keybinds -function RADAR:ToggleFullKeyboard() - -- Check the player state is valid - if ( PLY:VehicleStateValid() ) then - -- Toggle the full keyboard state - self.vars.fullKeyboard = not self.vars.fullKeyboard - - -- Tell the NUI side to display the keybind message - SendNUIMessage( { _type = "displayKeybindChange", state = self:GetFullKeyboardState() } ) - end -end - --- Returns the full keyboard state -function RADAR:GetFullKeyboardState() - return self.vars.fullKeyboard -end - --- Returns which keybind set to use -function RADAR:GetKeybindType() - if ( self:GetFullKeyboardState() ) then - return "full" - else - return "small" - end -end - --[[---------------------------------------------------------------------------------- Radar menu functions diff --git a/nui/radar.css b/nui/radar.css index 602a601..4079723 100644 --- a/nui/radar.css +++ b/nui/radar.css @@ -997,11 +997,11 @@ button:focus { outline: none; } padding: 0; } -#keyLockLabel, #keyBindsLabel { +#keyLockLabel { position: absolute; left: 0; right: 0; - bottom: 350px; + bottom: 300px; text-align: center; font-size: 30px; @@ -1011,11 +1011,7 @@ button:focus { outline: none; } z-index: 5; } - #keyBindsLabel { - bottom: 300px; - } - - #keyLockLabel span, #keyBindsLabel span { + #keyLockLabel span { font-size: 30px; } diff --git a/nui/radar.html b/nui/radar.html index 6301d62..7277949 100644 --- a/nui/radar.html +++ b/nui/radar.html @@ -299,7 +299,6 @@
Radar key lock
-Radar keybinds set for a