myonlake Posted July 24, 2011 Share Posted July 24, 2011 Hello, I am wondering, that does MTA have a script that automaticly destroys all idle vehicles that are used but left idle. I have downloaded the 'sv' script from community, and I found a timer of it to destroy vehicles. Well I removed it, no errors, everything worked normally. But something is still destroying my vehicles while they're idle. I am using the default freeroam -resource. Does it have this timer that destroys all idle vehicles? I mean... I am not using vehicles from freeroam 'create', I am using /sv command, but it still keeps destroying my idle vehicles, SO does the freeroam resource delete also all /sv idle vehicles or is there a bug or MTA that does it? PS. If I don't search the timers, is it possible to defuse the timer with some other resource that has some kind of script that defuses it. Or does it effect? Link to comment
bandi94 Posted July 24, 2011 Share Posted July 24, 2011 (edited) function kill() killTimer(timername) end addCommandHandler("kt",kill) this is what you ask ? Edited July 24, 2011 by Guest Link to comment
Buffalo Posted July 24, 2011 Share Posted July 24, 2011 try follwoing: for i,v in pairs(getElementsByType('vehicle'))do toggleVehicleRespawn(v,false) end Link to comment
myonlake Posted July 25, 2011 Author Share Posted July 25, 2011 Hello, Both were good examples but it's not respawning the cars, it's destroying them: disappearing just like that. So, toggleVehicleRespawn wouldn't help me right now. bandi94, it works, but the problem is that I don't know where the original timer is. I am not sure is it in the freeroam script or not. I'm gonna post an update here if something works. Link to comment
BinSlayer1 Posted July 25, 2011 Share Posted July 25, 2011 well actually @ Buffalo's script, you need to make the function respawn (true) the vehicles after idle. It's false at the moment 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