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

Çözüldü Kucaklama Scripti Hata Veriyor

qwerty3428

Üye
FT Kullanıcı
Katılım
3 yıl 6 ay 15 gün
Mesajlar
230
Merhaba, esx_barbie_lyftupp scriptini kullanıyorum.

39630

Bana böyle bir hata vermektedir. Belirtilen kod satırına baktığımda herhangi bir hata görememekteyim.


Kod:
RegisterServerEvent('esx_barbie_lyftupp:lyfteruppn')
AddEventHandler('esx_barbie_lyftupp:lyfteruppn', function(source)
    TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Birisi seni kucağına alıyor'})
end)

43.satır;

Kod:
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Birisi seni kucağına alıyor'})

Tam Kod;
Kod:
ESX = nil

local give = false
local usedRope = false
local isKucaklandi = false

TriggerEvent('esx:getSharedObject', function(obj)
    ESX = obj
end)

RegisterServerEvent('esx_barbie_lyftupp:checkRope')
AddEventHandler('esx_barbie_lyftupp:checkRope', function()
    local _source = source
    local xPlayer = ESX.GetPlayerFromId(_source)
    local ropeQuantity = xPlayer.getInventoryItem('rope').count
  
    if ropeQuantity > 0 then
        TriggerClientEvent('esx_barbie_lyftupp:trueRope', source) -- true
    else
        TriggerClientEvent('esx_barbie_lyftupp:falseRope', source) -- false
    end
end)

RegisterServerEvent('esx_barbie_lyftupp:removeRope')
AddEventHandler('esx_barbie_lyftupp:removeRope', function()
    local _source = source
    local xPlayer = ESX.GetPlayerFromId(_source)
  
    xPlayer.removeInventoryItem('rope', 1)
    TriggerClientEvent('esx_barbie_lyftupp:trueUsedRope', source)
  
end)

RegisterServerEvent('esx_barbie_lyftupp:lyfter')
AddEventHandler('esx_barbie_lyftupp:lyfter', function(target)
    local targetPlayer = ESX.GetPlayerFromId(target)

    TriggerClientEvent('esx_barbie_lyftupp:upplyft', targetPlayer.source, source)
end)

RegisterServerEvent('esx_barbie_lyftupp:lyfteruppn')
AddEventHandler('esx_barbie_lyftupp:lyfteruppn', function(source)
    TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Birisi seni kucağına alıyor'})
end)

TriggerEvent('esx:getSharedObject', function(obj)
    ESX = obj
end)

RegisterServerEvent('esx_omuzlama:checkRope')
AddEventHandler('esx_omuzlama:checkRope', function()
    local _source = source
    local xPlayer = ESX.GetPlayerFromId(_source)
    local ropeQuantity = xPlayer.getInventoryItem('rope').count
  
    if ropeQuantity > 0 then
        TriggerClientEvent('esx_omuzlama:trueRope', source) -- true
    else
        TriggerClientEvent('esx_omuzlama:falseRope', source) -- false
    end
end)

RegisterServerEvent('esx_omuzlama:removeRope')
AddEventHandler('esx_omuzlama:removeRope', function()
    local _source = source
    local xPlayer = ESX.GetPlayerFromId(_source)
  
    xPlayer.removeInventoryItem('rope', 1)
    TriggerClientEvent('esx_omuzlama:trueUsedRope', source)
end)

RegisterServerEvent('esx_omuzlama:lyfter')
AddEventHandler('esx_omuzlama:lyfter', function(target)
    local targetPlayer = ESX.GetPlayerFromId(target)

    TriggerClientEvent('esx_omuzlama:upplyft', targetPlayer.source, source)
end)

RegisterServerEvent('esx_omuzlama:lyfteruppn')
AddEventHandler('esx_omuzlama:lyfteruppn', function(source)
    if isKucaklandi == false then
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Birisi seni omzuna alıyor'})
        isKucaklandi = true
    elseif isKucaklandi == true then
        TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = 'Birisi omzundan indiriyor'})
        isKucaklandi = false
    end

end)
 
Moderatör tarafında düzenlendi:
mythic_notify scriptin mevcut mu?
 
143. satırı bununla değiştirip dener misin?
Kod:
exports['mythic_notify']:SendAlert('error', 'Zaten bir yelek giydin!')
 
Orayı da atar mısın?
 
Orayı da atar mısın?

Kod:
exports = {}

setmetatable(exports, {
    __index = function(t, k)
        local resource = k

        return setmetatable({}, {
            __index = function(t, k)
                if not exportsCallbackCache[resource] then
                    exportsCallbackCache[resource] = {}
                end

                if not exportsCallbackCache[resource][k] then
                    TriggerEvent(getExportEventName(resource, k), function(exportData)
                        exportsCallbackCache[resource][k] = exportData
                    end)

                    if not exportsCallbackCache[resource][k] then
                        error('No such export ' .. k .. ' in resource ' .. resource)
                    end
                end

                return function(self, ...)
                    local status, result = pcall(exportsCallbackCache[resource][k], ...)

                    if not status then
                        error('An error happened while calling export ' .. k .. ' of resource ' .. resource .. ' (' .. result .. '), see above for details')
                    end

                    return result
                end
            end,

            __newindex = function(t, k, v)
                error('cannot set values on an export resource')
            end
        })
    end,

    __newindex = function(t, k, v)
        error('cannot set values on exports')
    end,

    __call = function(t, exportName, func)
        AddEventHandler(getExportEventName(GetCurrentResourceName(), exportName), function(setCB)
            setCB(func)
        end)
    end
})

schudeler.lua verdiği hata kod dizisi

924.satır;
Kod:
error('No such export ' .. k .. ' in resource ' .. resource)
 
if IsControlPressed adı ile aratarak bulabilrisin parantez içerisindeki sayı (0 yada 1 olmayan) tuş kodudur
tuş kodunu FiveM Controls yazarak bulabilirsin
Geveze'nin attığı scriptin içindeki Client ve server taraflarında aradım fakat "IsControlPressed" komudu mevcut değil.
 
Geveze'nin attığı scriptin içindeki Client ve server taraflarında aradım fakat "IsControlPressed" komudu mevcut değil.
tuş basma ile ilgili bütün native ler kelimelerinin içerisinde "Control" ifadesini içeririrler. sadece Control diye aratabilirsin
 
tuş basma ile ilgili bütün native ler kelimelerinin içerisinde "Control" ifadesini içeririrler. sadece Control diye aratabilirsin
Yorum satırına çevrilen kod gördüm. İçerisinde "Control" yazısını görünce körüm galiba dedim. Sorun halledildi. Cevap yazan herkese teşekkür ederim.
 
Konu tarafımca kapatılmıştır.
 

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!