From 34cae4afc8086f5cdecaf0164662e589959718d9 Mon Sep 17 00:00:00 2001 From: KandaSoranyan <32266067+KandaSoranyan@users.noreply.github.com> Date: Mon, 1 Jan 2018 09:42:11 +0100 Subject: [PATCH] fixed glitch Players were able to duplicate pickups when driving fast on it --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 66e9a8b4..347d4a07 100644 --- a/client/main.lua +++ b/client/main.lua @@ -536,7 +536,7 @@ Citizen.CreateThread(function() end - if distance <= 1.0 and not v.inRange then + if distance <= 1.0 and not v.inRange and not IsPedSittingInAnyVehicle(playerPed) then TriggerServerEvent('esx:onPickup', v.id) v.inRange = true end