ryan. Posted May 31, 2009 Share Posted May 31, 2009 I have some cars set in my server, and everytime some jackass destroys them all, how do i make them respawn? Link to comment
eAi Posted May 31, 2009 Share Posted May 31, 2009 How are the vehicles created? In a script you've made or using another resource? Link to comment
ryan. Posted May 31, 2009 Author Share Posted May 31, 2009 Like this, Using .map files. Link to comment
eAi Posted May 31, 2009 Share Posted May 31, 2009 You need to call toggleVehicleRespawn for each vehicle in the map file. Something like this in a LUA file in your map should do it: addEventHandler("onResourceStart", getResourceRootElement( getThisResource() ), function() for k,v in getElementsByType("vehicle", source) do toggleVehicleRespawn(v, true) end end Link to comment
ryan. Posted May 31, 2009 Author Share Posted May 31, 2009 Where am I suppose to put that? 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