diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index 64570a19..7bb7a926 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -683,9 +683,11 @@ function processLocalPlayerVehicleEntryExitHandling() { // =========================================================================== -function getVehicleForNetworkEvent(vehicleArg) { - // Soon this will also be used to get the IV vehicle via it's ID - return vehicleArg; +function getVehicleForNetworkEvent(vehicle) { + if(getGame() == VRR_GAME_GTA_IV) { + return natives.getNetworkIdFromVehicle(vehicle); + } + return vehicle; } // ===========================================================================