SkillZNT Posted January 23, 2020 Posted January 23, 2020 Bom existe algum resource pra tirar os carros q explodem e ficam pelo mapa Tipo resto de carros explodidos se alguem souber um resource q tira eles quando explodem e ficam no mapa
KronoS Lettify Posted January 23, 2020 Posted January 23, 2020 @SkillZNT você pode usar o seguinte código para fazer isso que procura: addEventHandler('onVehicleExplode', root, function () destroyElement(source) end )
SkillZNT Posted February 16, 2020 Author Posted February 16, 2020 On 23/01/2020 at 12:53, KronoS Lettify said: @SkillZNT você pode usar o seguinte código para fazer isso que procura: addEventHandler('onVehicleExplode', root, function () destroyElement(source) end ) Alguma forma de colocar um time de 2 segundos pra ser removido
beast99 Posted February 16, 2020 Posted February 16, 2020 (edited) 2 hours ago, SkillZNT said: Alguma forma de colocar um time de 2 segundos pra ser removido addEventHandler('onVehicleExplode', root, setTimer(function () destroyElement(source) end, 2000, 1) ) Edited February 16, 2020 by MesaDowN Opa kk 1
Angelo Pereira Posted February 16, 2020 Posted February 16, 2020 local tempo = 2000 --/> 2s function desaparecer() setTimer( destroyElement, tempo, 1, source ) end addEventHandler("onVehicleExplode", getRootElement(), desaparecer) Caso tiver problemas, utilize este.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now