jwalks Posted November 26, 2010 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
dzek (varez) Posted November 26, 2010 Posted November 26, 2010 local vehs = getElementsByType("vehicle") for key, val in ipairs(vehs) do respawnVehicle(key) end Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
attemptIt Posted November 26, 2010 Posted November 26, 2010 You put it in a command or add it as a event.
dzek (varez) Posted November 26, 2010 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. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
jwalks Posted November 26, 2010 Author Posted November 26, 2010 im just a beginner level at scripting and still learning
J.S. Posted November 26, 2010 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. Kinetic Roleplay Forums || Mantis || YouTube
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