From cbde49abe3716412907c5387737f8f49279018e9 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 23 Feb 2021 12:45:27 +0000 Subject: [PATCH] refactor: remove cl_sync.lua code --- cl_sync.lua | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/cl_sync.lua b/cl_sync.lua index a533a80..dff1ec7 100644 --- a/cl_sync.lua +++ b/cl_sync.lua @@ -30,47 +30,3 @@ ---------------------------------------------------------------------------------------]]-- -local DECOR_TYPES = -{ - FLOAT = 1, - BOOL = 2, - INT = 3 -} - -SYNC = {} - -SYNC.decors = -{ - { "wk_wars2x__radarEnabled", DECOR_TYPES.BOOL }, - { "wk_wars2x__frontAntennaLocked", DECOR_TYPES.BOOL }, - { "wk_wars2x__rearAntennaLocked", DECOR_TYPES.BOOL } -} - -SYNC.data_types = -{ - radarEnabled = 1, - frontAntEnabled = 2, - frontAntMode = 3, - frontAntLockState = 4, - rearAntEnabled = 5, - rearAntMode = 6, - rearAntennaLockState = 7 -} - --- Create a thread to register the decorators that will be used -Citizen.CreateThread( function() - for _, v in pairs( SYNC.decors ) do - DecorRegister( v[1], v[2] ) - end -end ) - -function SYNC:IsRadarOn() - return DecorGetBool( PLY.veh, "wk_wars2x__radarEnabled" ) -end - --- data could be: --- { _type = SYNC.radarEnabled, state = false } --- { _type = SYNC.frontAntMode, state = 2 } -function SYNC:SendMessage( target, data ) - -end \ No newline at end of file