Removed keyboard set code

This commit is contained in:
Dan
2020-03-28 17:52:01 +00:00
parent 2291b5f1a2
commit c59417eba7
4 changed files with 4 additions and 62 deletions

View File

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