FiveM GTA V - NPC does not drop weapons

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
29 Haz 2020
Mesajlar
53
Tepki puanı
0
Ödüller
2
Yaş
30
5 HİZMET YILI
Kod:
function SetWeaponDrops()
    local handle, ped = FindFirstPed()
    local finished = false

    repeat
        if not IsEntityDead(ped) then
            SetPedDropsWeaponsWhenDead(ped, false)
        end
        finished, ped = FindNextPed(handle)
    until not finished

    EndFindPed(handle)
end

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1000)
        SetWeaponDrops()
    end
end)
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst