jwalks Posted November 26, 2010 Share Posted November 26, 2010 can somebody help me because i am trying to get how to make all the vehicles in your game server respawn Link to comment
dzek (varez) Posted November 26, 2010 Share Posted November 26, 2010 local vehs = getElementsByType("vehicle") for key, val in ipairs(vehs) do respawnVehicle(key) end Link to comment
jwalks Posted November 26, 2010 Author Share Posted November 26, 2010 what am i sopose to do with that Link to comment
attemptIt Posted November 26, 2010 Share Posted November 26, 2010 You put it in a command or add it as a event. Link to comment
dzek (varez) Posted November 26, 2010 Share Posted November 26, 2010 if you have NO IDEA about scripting - don't ask for help, but learn a bit: https://wiki.multitheftauto.com/ We aren't here for fulfilling your requests/ideas. Link to comment
jwalks Posted November 26, 2010 Author Share Posted November 26, 2010 im just a beginner level at scripting and still learning Link to comment
J.S. Posted November 26, 2010 Share Posted November 26, 2010 function respawn() local vehs = getElementsByType("vehicle") for key, val in ipairs(vehs) do respawnVehicle(key) end end addCommandHandler("respawnvehicles", respawn) You really should be learning basic things like command handlers before trying anything else. 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