joedajoester Posted November 9, 2011 Share Posted November 9, 2011 Hi, i made a script and used attachObject bla bla... I need the car to spawn having hydraulics, any help with it because i tried and failed.. https://wiki.multitheftauto.com/wiki/AddVehicleUpgrade Link to comment
^Dev-PoinT^ Posted November 9, 2011 Share Posted November 9, 2011 Try This function xxx (thePlayer, command) local x, y, z = getElementPosition(thePlayer) local car = createVehicle ( 411, 0 ,0, 0 ) local spawnveh = spawnVehicle ( car, x+3, y+3, z ) addVehicleUpgrade ( car, 1087 ) if spawnVeh then outputChatBox("Vehicle was Spawned", thePlayer) else outputChatBox("Error", thePlayer) end addCommandHandler("car", xxx) Link to comment
joedajoester Posted November 9, 2011 Author Share Posted November 9, 2011 If i use this, it will confuse me with the names, this is what im using... car1gate1 = createObject(971, 0, 0, 5) car1gate2 = createObject(971, 0, 0, 5) car2gate1 = createObject(971, 0, 0, 5) car2gate2 = createObject(971, 0, 0, 5) Car1 = createVehicle ( 567, 0, -0, 5, 0, 354.488, 0 ) Car2 = createVehicle ( 567, 9, -0, 5, 0, 354.488, 0 ) attachElements( car1gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) attachElements( car2gate1, Car2, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car2gate2, Car2, 0.4, 13.2, -0.6, 90, 90, 90 ) Link to comment
^Dev-PoinT^ Posted November 9, 2011 Share Posted November 9, 2011 **Not Tested ** car1gate1 = createObject(971, 0, 0, 5) car1gate2 = createObject(971, 0, 0, 5) car2gate1 = createObject(971, 0, 0, 5) car2gate2 = createObject(971, 0, 0, 5) Car1 = createVehicle ( 567, 0, -0, 5, 0, 354.488, 0 ) Car2 = createVehicle ( 567, 9, -0, 5, 0, 354.488, 0 ) attachElements( car1gate1, Car1, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, Car1, 0.4, 13.2, -0.6, 90, 90, 90 ) attachElements( car2gate1, Car2, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car2gate2, Car2, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( Car1, 1087 ) addVehicleUpgrade ( Car2, 1087 ) addCommandHandler("car", xxx) Link to comment
joedajoester Posted November 9, 2011 Author Share Posted November 9, 2011 Thank you so much, it works perfect Link to comment
^Dev-PoinT^ Posted November 9, 2011 Share Posted November 9, 2011 Your welcome My First Help lol iam so Happy 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