diff --git a/cl_radar.lua b/cl_radar.lua index 25e4986..8f51444 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -34,6 +34,9 @@ end ) ------------------------------------------------------------------------]]-- RADAR.vars = { + -- The radar's power + power = false, + -- Player's vehicle speed, this is used to update the patrol vehicle speed on the radar patrolSpeed = 0, @@ -136,6 +139,18 @@ RADAR.sorting = { } +--[[------------------------------------------------------------------------ + Radar essentials functions +------------------------------------------------------------------------]]-- +function RADAR:IsPowerOn() + return self.vars.power +end + +function RADAR:TogglePower() + self.vars.power = not self.vars.power +end + + --[[------------------------------------------------------------------------ Radar basics functions ------------------------------------------------------------------------]]--