edit checkDistance
This commit is contained in:
1 parent
df9584711a
commit
fb500dc502
16 files changed
+52
-88
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user