GHOSTKILLER1546 Posted February 14, 2016 Share Posted February 14, 2016 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
Arsilex Posted February 14, 2016 Share Posted February 14, 2016 getElementSyncer es una funcion server-side por lo tanto no se puede usar client-side y en tu caso ese script esta en client-side. Link to comment
GHOSTKILLER1546 Posted February 16, 2016 Author Share Posted February 16, 2016 gracias amigo Link to comment
Recommended Posts