fixed glitch

Players were able to duplicate pickups when driving fast on it
This commit is contained in:
KandaSoranyan
2018-01-01 09:42:11 +01:00
committed by GitHub
parent 36f14f62ed
commit 34cae4afc8
+1 -1
View File
@@ -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