From 6b1063dc5177ef8dc1a07fe43911c5e4ceaec3df Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:19:06 -0600 Subject: [PATCH] Colour police cars on stream in --- scripts/client/sync.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/client/sync.js b/scripts/client/sync.js index 5ad59c92..b9b11c4b 100644 --- a/scripts/client/sync.js +++ b/scripts/client/sync.js @@ -123,6 +123,18 @@ function syncVehicleProperties(vehicle) { } } } + + if(getGame() == VRR_GAME_GTA_III) { + if(vehicle.isOwner && vehicle.modelIndex == 116) { + vehicle.colour1 = 0; + vehicle.colour2 = 1; + } + } else if(getGame() == VRR_GAME_GTA_VC) { + if(vehicle.isOwner && vehicle.modelIndex == 156) { + vehicle.colour1 = 0; + vehicle.colour2 = 1; + } + } } // ===========================================================================