mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
+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