Key lock label now says enabled/disabled instead of toggled

This commit is contained in:
Dan
2020-01-09 10:00:36 +00:00
parent 995d2f8ff4
commit 4e88a4ff34
4 changed files with 18 additions and 10 deletions

View File

@@ -207,7 +207,7 @@ RADAR.sorting = {
--[[----------------------------------------------------------------------------------
Radar essentials functions
----------------------------------------------------------------------------------]]--
-- Returns if the radar's power is on or ff
-- Returns if the radar's power is on or off
function RADAR:IsPowerOn()
return self.vars.power
end
@@ -402,7 +402,7 @@ function RADAR:ToggleKeyLock()
self.vars.keyLock = not self.vars.keyLock
-- Tell the NUI side to display the key lock message
SendNUIMessage( { _type = "displayKeyLock" } )
SendNUIMessage( { _type = "displayKeyLock", state = self:GetKeyLockState() } )
end
end