ryan. Posted May 31, 2009 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?
eAi Posted May 31, 2009 Posted May 31, 2009 How are the vehicles created? In a script you've made or using another resource?
eAi Posted May 31, 2009 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
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