Update cl_radar.lua

This commit is contained in:
Dan
2019-12-16 20:26:10 +00:00
parent dc741a2d56
commit 9d54180de8

View File

@@ -287,8 +287,10 @@ end
-- Sends an update to the NUI side with the current state of the antennas and if the fast system is enabled -- Sends an update to the NUI side with the current state of the antennas and if the fast system is enabled
function RADAR:SendSettingUpdate() function RADAR:SendSettingUpdate()
-- Create a table to store the setting information for the antennas
local antennas = {} local antennas = {}
-- Iterate through each antenna and grab the relevant information
for ant in UTIL:Values( { "front", "rear" } ) do for ant in UTIL:Values( { "front", "rear" } ) do
antennas[ant] = {} antennas[ant] = {}
antennas[ant].xmit = self:IsAntennaTransmitting( ant ) antennas[ant].xmit = self:IsAntennaTransmitting( ant )