bradio10 Posted March 25, 2013 Posted March 25, 2013 Hi, today, I wanted to create a small script so I could use it to practice shooting with a hydra. So I made a script that would created a vehicle at my position. function createCar() local x, y, z = getElementPosition (localPlayer) createVehicle (550, x, y, z) end addCommandHandler ("create", createCar) But for some reason, I can't enter the vehicle, nor will it explode. How do I make it explode and make it enterable? It's clientside by the way. Thanks. Streamline Servers Vultr.com | Worldwide VPS's at an awesome price. Buy one here!
ixjf Posted March 25, 2013 Posted March 25, 2013 (edited) Client-side vehicles aren't synced with the server. Edited May 2, 2013 by Guest I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
PaiN^ Posted March 25, 2013 Posted March 25, 2013 Do it server side and move it a couple Inches from your position .. " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
bradio10 Posted March 25, 2013 Author Posted March 25, 2013 All works now guys, thanks. Streamline Servers Vultr.com | Worldwide VPS's at an awesome price. Buy one here!
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