From f33564c417d24d065b8ed2b04c64e9fc503d77b7 Mon Sep 17 00:00:00 2001 From: iSentrie Date: Sat, 18 Feb 2023 22:37:36 +0200 Subject: [PATCH] prevent pushing from inside of vehicles fix for #2 --- client/main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/main.lua b/client/main.lua index bd4c02e..54e6088 100644 --- a/client/main.lua +++ b/client/main.lua @@ -184,6 +184,7 @@ keybind = lib.addKeybind({ onPressed = function(self) if Config.target then return end if pushing then return end + if cache.vehicle then return end local vehicle = lib.getClosestVehicle(GetEntityCoords(ped), 4, false) if not vehicle or not NetworkGetEntityIsNetworked(vehicle) then return end startPushing(vehicle)