Help in cars
#1

yo!

I want to make new cars in my server,

Im gonna do like this:

To go to the position and to /save than to take the line and make her like this:
CreateVehicle(411,2390.207,-1235.691,677.975,89.0,-1,-1,120); //Infernus

But i got questions.

411 means Car ID.

Than i got the coords from the /save

But i see -1,-1, This one is Colors?

And what is the 120 at the end?

And is that the right way to make cars?

Thanks
Reply
#2

-1 -1 colors 120 is respawn delay
Reply
#3

That is the right way to make car?
Reply
#4

yes
Reply
#5

heh, that's right. at first i didn't read the function and thought it was addstaticvehicle as it gives you in the savedpositions file (atleast as it has been giving)
you can either use CreateVehicle or AddStaticVehicleEx with respawn delay
Reply
#6

yes now i set this car to buy
buy it doesnt show the name
or price its show 0

Why?
Reply
#7

Quote:
Originally Posted by Taz86
yes now i set this car to buy
buy it doesnt show the name
or price its show 0

Why?
the hel do you mean? please explain more detailed, because I do not understand what you mean. if you want a car el/buy/whatnot script you shoud add a question properly, because people are not familair with the script and whatnot you have!
Reply
#8

I mean after i create infenus at location


Now i want to set the car to buy

So i put the ids like that:

public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 1 && vehicleid <= 2) { return 1; }
return 0;
}


But its sayd at enter the car:

Name: (Empty)
Price: 0
/v To buy this car

Why its not show the name?
and how i can set the price?
Reply
#9

It's hard to get a detailed view, you could paste the code soewhere, coudn't you? Cause if I could see it it would be more easy to see where the problem is
Reply
#10

Can you come to my server and to see it?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)