mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
fixed glitch
Players were able to duplicate pickups when driving fast on it
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user