Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.
RegisterCommand('atmsoy', function()
if not RobbingATM then
if not HackingATM then
local entity, entityDst = ESX.Game.GetClosestObject(ATMCheck)
if DoesEntityExist(entity) and entityDst <= 1.5 then
startRobbingATM()
else
TriggerEvent('mythic_notify:client:SendAlert', { type = 'error', text = 'Yakınında herhangi bir ATM yok!'})
end
end
end
end)
ATMCheck tablosunu sil yerine şu tabloyu yerleştir ;
RegisterCommand('atmsoy', function()
if not RobbingATM then
if not HackingATM then
local player = PlayerPedId()
local playerloc = GetEntityCoords(player, 0)
for _, atmloc in pairs(atms) do
local entityDst = GetDistanceBetweenCoords(playerloc.x, playerloc.y, playerloc.z, atmloc.x, atmloc.y, atmloc.z, true)
if DoesEntityExist(entity) and entityDst <= 1.5 then
startRobbingATM()
else
TriggerEvent('mythic_notify:client:SendAlert', { type = 'error', text = 'Yakınında herhangi bir ATM yok!'})
end
end
end
end
end)
aynı kodu yazdım hata gitti ama yine komut çalışmıyor.Bu attığım kod büyük ihtimal ile aynı kod ama startRobbingATM() fonksiyonunda sorun var
Kod:RegisterCommand('atmsoy', function() if not RobbingATM then if not HackingATM then local entity, entityDst = ESX.Game.GetClosestObject(ATMCheck) if DoesEntityExist(entity) and entityDst <= 1.5 then startRobbingATM() else TriggerEvent('mythic_notify:client:SendAlert', { type = 'error', text = 'Yakınında herhangi bir ATM yok!'}) end end end end)
sorunun ESX.Game.GetClosestObject(ATMCheck) kullanımının yanlış olmasından kaynaklandığına eminimBu attığım kod büyük ihtimal ile aynı kod ama startRobbingATM() fonksiyonunda sorun var
Kod:RegisterCommand('atmsoy', function() if not RobbingATM then if not HackingATM then local entity, entityDst = ESX.Game.GetClosestObject(ATMCheck) if DoesEntityExist(entity) and entityDst <= 1.5 then startRobbingATM() else TriggerEvent('mythic_notify:client:SendAlert', { type = 'error', text = 'Yakınında herhangi bir ATM yok!'}) end end end end)
RegisterCommand('atmsoy', function()
if not RobbingATM then
if not HackingATM then
for key, value in pairs(Config.Atms) do
local distance = #(GetEntityCoords(PlayerPedId()) - value)
if distance < 3 then
startRobbingATM()
else
TriggerEvent('mythic_notify:client:SendAlert', { type = 'error', text = 'Yakınında herhangi bir ATM yok!'})
end
end
end
end
end)
Kod:RegisterCommand('atmsoy', function() if not RobbingATM then if not HackingATM then for key, value in pairs(Config.Atms) do local distance = #(GetEntityCoords(PlayerPedId()) - value) if distance < 3 then startRobbingATM() else TriggerEvent('mythic_notify:client:SendAlert', { type = 'error', text = 'Yakınında herhangi bir ATM yok!'}) end end end end end)
senin doldurman gereken yerler var copy paste ile çalışmaz.
Denedim çalışmadı nereleri ben dolduracağım bilgi verirseniz sevinirim.senin doldurman gereken yerler var copy paste ile çalışmaz.
üstte attığımı yerleştir direkt olarak çalışacak
Hocam atar mısın scripti yapıp atayım?Denedim çalışmadı nereleri ben dolduracağım bilgi verirseniz sevinirim.
Dostum atmlerin kordinatlarını yerleştirmen gerekli o yüzden bu hata var doldursana atmleri
Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!