SkillZNT Posted January 23, 2020 Share 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 Link to comment
KronoS Lettify Posted January 23, 2020 Share Posted January 23, 2020 @SkillZNT você pode usar o seguinte código para fazer isso que procura: addEventHandler('onVehicleExplode', root, function () destroyElement(source) end ) Link to comment
SkillZNT Posted February 16, 2020 Author Share 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 Link to comment
beast99 Posted February 16, 2020 Share 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 Link to comment
Angelo Pereira Posted February 16, 2020 Share 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. Link to comment
DNL291 Posted February 17, 2020 Share Posted February 17, 2020 setVehicleIdleRespawnDelay Link to comment
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