f7A0UVjqBMx9nnBQ6 Posted October 10, 2012 Share Posted October 10, 2012 (edited) _ Edited November 2, 2013 by Guest Link to comment
Mossy Posted October 10, 2012 Share Posted October 10, 2012 Easy. https://wiki.multitheftauto.com/wiki/CreateVehicle https://wiki.multitheftauto.com/wiki/SpawnVehicle Have a look at MTA's client and server functions. Link to comment
Anderl Posted October 10, 2012 Share Posted October 10, 2012 Easy.https://wiki.multitheftauto.com/wiki/CreateVehicle https://wiki.multitheftauto.com/wiki/SpawnVehicle Have a look at MTA's client and server functions. He probably wants a converter to convert all. It's not really good to do it this way if it's more than 50 vehicles. Link to comment
Mossy Posted October 10, 2012 Share Posted October 10, 2012 Easy.https://wiki.multitheftauto.com/wiki/CreateVehicle https://wiki.multitheftauto.com/wiki/SpawnVehicle Have a look at MTA's client and server functions. He probably wants a converter to convert all. It's not really good to do it this way if it's more than 50 vehicles. Good point. Hmm, I'm not aware of any converters doing this. If there is one, that'd be great. Link to comment
f7A0UVjqBMx9nnBQ6 Posted October 10, 2012 Author Share Posted October 10, 2012 (edited) _ Edited November 2, 2013 by Guest Link to comment
DiSaMe Posted October 10, 2012 Share Posted October 10, 2012 No need to "convert". Implementing the function in MTA will do the trick. function AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, angle, color1, color2) local vehicle = createVehicle(modelid, spawn_x, spawn_y, spawn_z, 0, 0, angle) local c1, c2, c3, c4 = getVehicleColor(vehicle) setVehicleColor(vehicle, color1, color2, c3, c4) toggleVehicleRespawn(vehicle, true) setVehicleRespawnDelay(vehicle, 60000) return vehicle end Add this function to the script and then you can call AddStaticVehicle. 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