Neler yeni

Foruma hoş geldin, Ziyaretçi

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.

Türkiye'nin İlk ve tek FiveM forum adresi

Forum adresimize hoş geldin FiveMTürk olarak amacımız siz değerli kullanıcılarımıza en aktif fikir ve paylaşım platformu sunmak bir yana en güvenilir şekilde alışveriş yapabileceğiniz bir platform sunmaktır.
DF DF
DF DF
DF DF

Soru vector3(...) argument 1 had type nil

Ege200nm2

Üye
FT Kullanıcı
Katılım
3 yıl 8 ay 2 gün
Mesajlar
428
Web sitesi
www.youtube.com
Discord
Mercury#5827
Herkese merhaba bu gün yaşadığım bir hatadan size bahsetmek istedim. ATM soyma scriptimi yükledim ve atmlerin yanına gittiğimde /atmsoy yazıyorum ama hiç bir şekilde animasyona girmiyor veya şehirde yeterli polis yok hatası vermiyor onun yerine f8'de bir hata veriyor.

Görseller : 49351
49352
 
esx atm robbery client lua 28 in ss ini atarmısın
 
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)
 
ATMCheck tablosunu sil yerine şu tabloyu yerleştir ;

local atms = {
{name="ATM", id=277, x=89.75, y=2.35, z=68.31},
{name="ATM", id=277, x=1167.02, y=-456.32, z=66.79},
{name="ATM", id=277, x=-386.733, y=6045.953, z=31.501},
{name="ATM", id=277, x=-284.037, y=6224.385, z=31.187},
{name="ATM", id=277, x=-284.037, y=6224.385, z=31.187},
{name="ATM", id=277, x=-135.165, y=6365.738, z=31.101},
{name="ATM", id=277, x=-94.9690, y=6455.301, z=31.784},
{name="ATM", id=277, x=155.4300, y=6641.991, z=31.784},
{name="ATM", id=277, x=174.6720, y=6637.218, z=31.784},
{name="ATM", id=277, x=1703.138, y=6426.783, z=32.730},
{name="ATM", id=277, x=1735.114, y=6411.035, z=35.164},
{name="ATM", id=277, x=1702.842, y=4933.593, z=42.051},
{name="ATM", id=277, x=1967.333, y=3744.293, z=32.272},
{name="ATM", id=277, x=1821.917, y=3683.483, z=34.244},
{name="ATM", id=277, x=540.0420, y=2671.007, z=42.177},
{name="ATM", id=277, x=2564.399, y=2585.100, z=38.016},
{name="ATM", id=277, x=2558.683, y=349.6010, z=108.050},
{name="ATM", id=277, x=2558.051, y=389.4817, z=108.660},
{name="ATM", id=277, x=1077.692, y=-775.796, z=58.218},
{name="ATM", id=277, x=1139.018, y=-469.886, z=66.789},
{name="ATM", id=277, x=1168.975, y=-457.241, z=66.641},
{name="ATM", id=277, x=1153.884, y=-326.540, z=69.245},
{name="ATM", id=277, x=381.2827, y=323.2518, z=103.270},
{name="ATM", id=277, x=236.4638, y=217.4718, z=106.840},
{name="ATM", id=277, x=265.0043, y=212.1717, z=106.780},
{name="ATM", id=277, x=285.2029, y=143.5690, z=104.970},
{name="ATM", id=277, x=157.7698, y=233.5450, z=106.450},
{name="ATM", id=277, x=-164.568, y=233.5066, z=94.919},
{name="ATM", id=277, x=-1827.04, y=785.5159, z=138.020},
{name="ATM", id=277, x=-1409.39, y=-99.2603, z=52.473},
{name="ATM", id=277, x=-1205.35, y=-325.579, z=37.870},
{name="ATM", id=277, x=-2072.41, y=-316.959, z=13.345},
{name="ATM", id=277, x=-2975.72, y=379.7737, z=14.992},
{name="ATM", id=277, x=-2955.70, y=488.7218, z=15.486},
{name="ATM", id=277, x=-3044.22, y=595.2429, z=7.595},
{name="ATM", id=277, x=-3144.13, y=1127.415, z=20.868},
{name="ATM", id=277, x=-3241.10, y=996.6881, z=12.500},
{name="ATM", id=277, x=-3241.11, y=1009.152, z=12.877},
{name="ATM", id=277, x=-1305.40, y=-706.240, z=25.352},
{name="ATM", id=277, x=-538.225, y=-854.423, z=29.234},
{name="ATM", id=277, x=-711.156, y=-818.958, z=23.768},
{name="ATM", id=277, x=-717.614, y=-915.880, z=19.268},
{name="ATM", id=277, x=-526.566, y=-1222.90, z=18.434},
{name="ATM", id=277, x=-256.831, y=-719.646, z=33.444},
{name="ATM", id=277, x=-203.548, y=-861.588, z=30.205},
{name="ATM", id=277, x=112.4102, y=-776.162, z=31.427},
{name="ATM", id=277, x=112.9290, y=-818.710, z=31.386},
{name="ATM", id=277, x=119.9000, y=-883.826, z=31.191},
{name="ATM", id=277, x=-846.304, y=-340.402, z=38.687},
{name="ATM", id=277, x=-1204.35, y=-324.391, z=37.877},
{name="ATM", id=277, x=-1216.27, y=-331.461, z=37.773},
{name="ATM", id=277, x=-56.1935, y=-1752.53, z=29.452},
{name="ATM", id=277, x=-261.692, y=-2012.64, z=30.121},
{name="ATM", id=277, x=-273.001, y=-2025.60, z=30.197},
{name="ATM", id=277, x=24.589, y=-946.056, z=29.357},
{name="ATM", id=277, x=-254.112, y=-692.483, z=33.616},
{name="ATM", id=277, x=-1570.197, y=-546.651, z=34.955},
{name="ATM", id=277, x=-1415.909, y=-211.825, z=46.500},
{name="ATM", id=277, x=-1430.112, y=-211.014, z=46.500},
{name="ATM", id=277, x=33.232, y=-1347.849, z=29.497},
{name="ATM", id=277, x=129.216, y=-1292.347, z=29.269},
{name="ATM", id=277, x=287.645, y=-1282.646, z=29.659},
{name="ATM", id=277, x=289.012, y=-1256.545, z=29.440},
{name="ATM", id=277, x=295.839, y=-895.640, z=29.217},
{name="ATM", id=277, x=1686.753, y=4815.809, z=42.008},
{name="ATM", id=277, x=-302.408, y=-829.945, z=32.417},
{name="ATM", id=277, x=5.134, y=-919.949, z=29.557},

}

Ruby:
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)

ESX.Game.GetClosestObject in nasıl kullanılması gerektiğini bilmiyorum. Attığım kod seni çözüme kavuşturacaktır ancak bunun ESX.Game.GetClosestObject yapılması daha doğru olur. Eğer nasıl kullanılacağını bilen biri var ise arkadaşa yardımcı olabilir mi

çözülürse dönüş yaparsan sevinirim
 
Son düzenleme:
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)
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 eminim
 
Hocam kordinatları for key value döngüsüüne alıp local distance = #(GetEntityCoords(PlayerPedId() - value) if distance < 3 then yapıp kodu devam ettirin
 
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)
 
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)
49355

es_extended hatasıgitti bu geldi
 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap

Bu konuyu görüntüleyen kullanıcılar

Tema düzenleyici

Tema özelletirmeleri

Granit arka planlar

Lütfen Javascript'i etkinleştirin!Javascript'i etkinleştirin!