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

Script Fuul Türkçe AutoDV Scripti Lazım

sley

Üye
FT Kullanıcı
Katılım
1 yıl 8 ay 22 gün
Mesajlar
56
QB Uyumlu Fuul Türkçe AutoDV Scripti Lazım, Elinde Olan Varsa Atabilirse Sevinirim.
 
Kod:
local deleteTimer = 30 --time in Minutes




CreateThread(function()
    while true do
        Wait(deleteTimer * 60000)
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'Inactive vehicles will be deleted in 1MIN'}})
        Wait(45000)
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'Inactive vehicles will be deleted in 15 SECS'}})
        Wait(10000)
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'Inactive vehicles will be deleted in 5 SECS'}})
        Wait(5000)

        for i, veh in pairs(GetAllVehicles()) do
            if HasVehicleBeenOwnedByPlayer(veh) then
                if not isVehicleOccupied(veh) then
                    DeleteEntity(veh)
                end
            end
        end
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'All Inactive vehicles got deleted'}})
    end
end)



function isVehicleOccupied(veh)
    for seat = -1, 6 do
        if GetPedInVehicleSeat(veh, seat) ~= 0 then
            return true
        end
    end
    return false
end
 
Kod:
local deleteTimer = 30 --time in Minutes




CreateThread(function()
    while true do
        Wait(deleteTimer * 60000)
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'Inactive vehicles will be deleted in 1MIN'}})
        Wait(45000)
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'Inactive vehicles will be deleted in 15 SECS'}})
        Wait(10000)
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'Inactive vehicles will be deleted in 5 SECS'}})
        Wait(5000)

        for i, veh in pairs(GetAllVehicles()) do
            if HasVehicleBeenOwnedByPlayer(veh) then
                if not isVehicleOccupied(veh) then
                    DeleteEntity(veh)
                end
            end
        end
        TriggerClientEvent('chat:addMessage', -1, { color = { 255, 0, 0 }, args = {'Warning', 'All Inactive vehicles got deleted'}})
    end
end)



function isVehicleOccupied(veh)
    for seat = -1, 6 do
        if GetPedInVehicleSeat(veh, seat) ~= 0 then
            return true
        end
    end
    return false
end
bunu herhangi bir client içerisine yazsak çalışıyormu
 

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!