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

Rehber ESX_COMMUNİTYSERVİCESEX - HİLECİYİ TOKATLAMA

gaunthlow

Üye
Yasaklandı
FT Kullanıcı
Katılım
2 yıl 11 ay 1 gün
Mesajlar
428
ŞU KISMI esx_communityservice > server > main.lua
esx_c 1.png
ŞÖYLE DEĞİŞTİRİN
Kod:
RegisterServerEvent('esx_communityservicesex:sendToCommunityService')
AddEventHandler('esx_communityservicesex:sendToCommunityService', function(target, actions_count)
    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    MySQL.Async.fetchAll('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            MySQL.Async.execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            MySQL.Async.execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)

BU ŞEKİLDE AC'siz BASİT BİRŞEKİLDE POLİS OLMAYAN BİRİSİNİN KAMUYA GÖNDERMESİNİ ENGELLEYEBİLİRSİNİZ BELKİ İŞİNİZE YARAR.
POLİS OLAN GÖNDEREBİLİCEK Mİ DİYE BELKİ YAZANLAR OLUCAK BU AC FALAN DEĞİL SADECE SCRİPT İÇERİSİNDEN BİR DEĞİŞİM.


 
DF
esx-kamu kullanıyorum onda nasıl yapabilirm?
 
DF
ŞU KISMI esx_communityservice > server > main.lua
Ekli dosyayı görüntüle 71899
ŞÖYLE DEĞİŞTİRİN
Kod:
RegisterServerEvent('esx_communityservicesex:sendToCommunityService')
AddEventHandler('esx_communityservicesex:sendToCommunityService', function(target, actions_count)
    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    MySQL.Async.fetchAll('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            MySQL.Async.execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            MySQL.Async.execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)

BU ŞEKİLDE AC'siz BASİT BİRŞEKİLDE POLİS OLMAYAN BİRİSİNİN KAMUYA GÖNDERMESİNİ ENGELLEYEBİLİRSİNİZ BELKİ İŞİNİZE YARAR.
POLİS OLAN GÖNDEREBİLİCEK Mİ DİYE BELKİ YAZANLAR OLUCAK BU AC FALAN DEĞİL SADECE SCRİPT İÇERİSİNDEN BİR DEĞİŞİM.


Kod:
RegisterServerEvent('esx_communityservicesex:sendToCommunityService')
AddEventHandler('esx_communityservicesex:sendToCommunityService', function(target, actions_count)
    if target == -1 then
       -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
       TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    end
    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    MySQL.Async.fetchAll('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            MySQL.Async.execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            MySQL.Async.execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)
şeklinde yaparsanız polis olanlar bile -1 atamaz. sourceyi table ile limitlendirirseniz for ile herkesi kamuya göndermeyi de engelleyebilirsiniz
 
DF
Kod:
RegisterServerEvent('esx_communityservicesex:sendToCommunityService')
AddEventHandler('esx_communityservicesex:sendToCommunityService', function(target, actions_count)
    if target == -1 then
       -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
       TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    end
    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    MySQL.Async.fetchAll('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            MySQL.Async.execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            MySQL.Async.execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)
şeklinde yaparsanız polis olanlar bile -1 atamaz. sourceyi table ile limitlendirirseniz for ile herkesi kamuya göndermeyi de engelleyebilirsiniz
Bu şekilde polis olanlar -1 atabilir çünkü önemli olan bu TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count) sonuçta benim yaptığım kısımda polis olduğu için olumlu bir şekilde gönderir sen onun üst tarafına yazmışsın yani gönderir yinede ve sağ üstte aç kapıyı der buda bir işe yaramaz amacımız script içerisinde direkt olarak hiç göndermemek -1 mubabbetinede bakıp atarım buraya.
 
DF
esx-kamu kullanıyorum onda nasıl yapabilirm?
Kod:
RegisterServerEvent('esx_communityservice:sendToCommunityService')
AddEventHandler('esx_communityservice:sendToCommunityService', function(target, actions_count)

    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    exports.ghmattimysql:execute('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            exports.ghmattimysql:execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            exports.ghmattimysql:execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)

    TriggerClientEvent('chat:addMessage', -1, { args = { _U('judge'), _U('comserv_msg', GetPlayerName(target), actions_count) }, color = { 147, 196, 109 } })
    TriggerClientEvent('esx_policejob:unrestrain', target)
end)
 
DF
Kod:
RegisterServerEvent('esx_communityservice:sendToCommunityService')
AddEventHandler('esx_communityservice:sendToCommunityService', function(target, actions_count)

    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    exports.ghmattimysql:execute('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            exports.ghmattimysql:execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            exports.ghmattimysql:execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)

    TriggerClientEvent('chat:addMessage', -1, { args = { _U('judge'), _U('comserv_msg', GetPlayerName(target), actions_count) }, color = { 147, 196, 109 } })
    TriggerClientEvent('esx_policejob:unrestrain', target)
end)
çok sağol :))
 
DF
gavun super ultra harika mükemmel anti s*ks
 
DF
Hileci olup hileciyi tokatlama ajksdgasd Beğendim +rep
 
DF
ŞU KISMI esx_communityservice > server > main.lua
Ekli dosyayı görüntüle 71899
ŞÖYLE DEĞİŞTİRİN
Kod:
RegisterServerEvent('esx_communityservicesex:sendToCommunityService')
AddEventHandler('esx_communityservicesex:sendToCommunityService', function(target, actions_count)
    local identifier = GetPlayerIdentifiers(target)[1]
    if ESX.GetPlayerFromId(source).getJob().name ~= "police" and ESX.GetPlayerFromId(source).getJob().name ~= "sheriff" then
        -- DropPlayer(source, "Aç kapıyı aras kargooo :)")
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Aç kapıyı aras kargoooo JSKDLFJSLKFJLSFKD', length = 5000})
    else
        TriggerClientEvent('esx_communityservice:inCommunityService', target, actions_count)
    end
    Wait(4000)
    MySQL.Async.fetchAll('SELECT * FROM communityservice WHERE identifier = @identifier', {
        ['@identifier'] = identifier
    }, function(result)
        if result[1] then
            MySQL.Async.execute('UPDATE communityservice SET actions_remaining = @actions_remaining WHERE identifier = @identifier', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        else
            MySQL.Async.execute('INSERT INTO communityservice (identifier, actions_remaining) VALUES (@identifier, @actions_remaining)', {
                ['@identifier'] = identifier,
                ['@actions_remaining'] = actions_count
            })
        end
    end)

BU ŞEKİLDE AC'siz BASİT BİRŞEKİLDE POLİS OLMAYAN BİRİSİNİN KAMUYA GÖNDERMESİNİ ENGELLEYEBİLİRSİNİZ BELKİ İŞİNİZE YARAR.
POLİS OLAN GÖNDEREBİLİCEK Mİ DİYE BELKİ YAZANLAR OLUCAK BU AC FALAN DEĞİL SADECE SCRİPT İÇERİSİNDEN BİR DEĞİŞİM.



FİVEM HİLE İLE SUNUCU TROLL bölüm 22 gelsin
 
DF

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!