From 31c4c446cf15b410809c6691eeba9d2f4a14d8dd Mon Sep 17 00:00:00 2001 From: iSentrie Date: Sun, 19 Feb 2023 19:36:22 +0200 Subject: [PATCH] fix: don't turn off vehicle engine off fix for #4 i don't see reason behind this to switch it off, this can end up in abusive behavior, from other player just by attempt to push your vehicle - it will turn off your engine and so on.. --- client/main.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index bd4c02e..8a45593 100644 --- a/client/main.lua +++ b/client/main.lua @@ -128,8 +128,6 @@ local function startMove(netid, direction, pedid) remotepush = false return TriggerServerEvent('OT_pushvehicle:updateOwner', netid, direction) end - SetVehicleEngineOn(vehicle, false, true, true) - SetVehicleBrake(vehicle, false) SetVehicleForwardSpeed(vehicle, direction == 'trunk' and 1.1 or -1.1) if owner == playerId and seat == -1 then DisableControlAction(0, 34, true)