Doongogar Posted February 24, 2023 Posted February 24, 2023 (edited) então eu to usando esse codigo aqui, ele chega a ficar imortal contra tiros e talz, mas o stealth kill não ta funcionando(sem erros no debug) [Sim, estou setando o element data "imortal" nos ped's] function onStealthKill (targetPed) if (getElementData (targetPed, "imortal")) then cancelEvent() end end addEventHandler ("onPlayerStealthKill", root, onStealthKill) function cancelDamage() if (getElementData (source, "imortal")) then cancelEvent() end end addEventHandler ("onClientPedDamage", root, cancelDamage) Edited February 24, 2023 by SciptNovato
Other Languages Moderators Lord Henry Posted February 25, 2023 Other Languages Moderators Posted February 25, 2023 O nome do seu evento está errado. O nome correto é onClientPlayerStealthKill. Faça assim: addEventHandler ("onClientPlayerDamage", root, function () if getElementData(source, "imortal") then cancelEvent() end end) addEventHandler ("onClientPlayerStealthKill", localPlayer, function (targetPlayer) if getElementData (targetPlayer, "imortal") then cancelEvent() end end) 1
Doongogar Posted February 25, 2023 Author Posted February 25, 2023 isso me faz feliz, perfeito, é por isso que todo mundo aqui te ama 1
Recommended Posts