Merge pull request #29 from KandaSoranyan/patch-2

fixed glitch
This commit is contained in:
Lén
2018-01-02 16:52:39 +01:00
committed by GitHub
+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