Jump to content

ERROR con mi survivorsystem_client


Recommended Posts

Necesito ayuda para resolver este error

attempt to call global 'getelementSyncer" (a nil value)

function onClientPedLoseSyncer(thePed) 
    if thePed then 
        outputChatBox("Ped existe, e não tem mais syncer!") 
    end 
end 
addEvent("onClientPedLoseSyncer", true) -- When a ped has no syncer anymore 
addEventHandler("onClientPedLoseSyncer", getRootElement(), onClientPedLoseSyncer) 
  
addEventHandler( "onClientElementStreamOut", getRootElement( ), 
    function ( ) 
        -- if getElementType(source == "ped") then -- Is a ped being stramed out? 
            local elementSyncer = getElementSyncer(source) 
             
            if not elementSyncer then 
                triggerClientEvent("onClientPedLoseSyncer", getRootElement(), source) 
                --triggerServerEvent("onPedLoseSyncer", getLocalPlayer(), source)  
            end 
        -- end 
    end 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...