From 4fe27bf27c2b9ea71bc77da914f7660906ce702a Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 22 Apr 2021 09:25:38 -0500 Subject: [PATCH] Use element from id in netevents --- scripts/client/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/client/sync.js b/scripts/client/sync.js index cfd9a84a..15d09769 100644 --- a/scripts/client/sync.js +++ b/scripts/client/sync.js @@ -34,7 +34,7 @@ function toggleVehicleEngine(vehicle, state) { // =========================================================================== function toggleVehicleLights(vehicle, state) { - vehicle.lights = state; + getElementFromId(vehicle).lights = state; } // ===========================================================================