Jump to content

Add upgrade


joedajoester

Recommended Posts

Try This :D

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

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

**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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...