mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Key lock label now says enabled/disabled instead of toggled
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user