edit checkDistance

This commit is contained in:
Mustache Dom committed 2026-01-19 00:46:49 -07:00
1 parent df9584711a
commit fb500dc502
16 files changed
+52 -88

No files matched your search

+1 -2
View File
@@ -46,8 +46,7 @@ end)
RegisterServerEvent("md-drugs:server:purchaseGoods", function(item)
local src = source
if not checkDistance(src, loc, 10) then
Bridge.Notify.SendNotify(src, Bridge.Language.Locale('Catches.notIn'), "error")
if not checkDistance(src, loc, 10, 'md-drugs:server:purchaseGoods') then
return
end
if not stores.travel[item] then