[Tutorial] how to tune a car and give it a paintjob/color!!
#1

hey guys,

this is my little tutorial of how to tune a car and how to give it a nice paintjob or a nice color.


1. How to tune a car:
step 1: go to top of ur script and add there this:
pawn Код:
new car1; // this is the car that u want to tune so if u want to tune a sultan then u put there new sultan1;
step 2: go to the OnGameModeInit()
ok well then if im right u have got there a car which u want to tune, so u see this:
pawn Код:
AddStaticVehicle(vehicleID,X-coordinates,Y-Coordinates,Z-Coordinates,The Facing Angle);
so for example:
pawn Код:
AddStaticVehicle(504,2359.3411,-657.6211,127.9057,295.7285,86,88);
ok well then u have to make it that ur car (the "new car1 as i explained before, is in front of the AddStaticVehicle, so for example:
pawn Код:
car1 = AddStaticVehicle(504,2359.3411,-657.6211,127.9057,295.7285,86,88);
ok well then u have this part done.
step 3: now u have to make it that car1 is getting the right components.
now u have to make sure the car is getting the right component, so here is a little website with the vehicle components that are fitted with the right car and wut the Component ID is:
https://sampwiki.blast.hk/wiki/Car_Components

ok well now u have a site where are all the components are.
ok now u have to make it that there is a line that says which component it needs to have when u get in server.
ok well lets take the Nitrous:
Код:
1010(this is the component ID) Nitrous(this is the component name) Certain Transfender cars(this is which cars can get this spoiler)(as far as i know all the cars can have this component)
ok so u have to add this component under the OnGameModeInit()
ok well just enter this there:
pawn Код:
AddVehicleComponent(car1, 1010);
so well this is it: (car1 is the car u want to have it tuned) (1010 is the component ID)
ok well then we have this finished.

2. How to give a car Paintjob:
step 1:
got to this website:https://sampwiki.blast.hk/wiki/Talk:Paintjob
ok
step 2:
now u can see that there are the ID's of the components.
so now u have to choose which paintjob u want on the vehicle.
so like this: the car: car1 is for example a sultan.
then u can choose for ur sultan the vehicle paintjob 1, 2 or 3: REMEMBER!!: paintjob 1 is ID 0 so like: paintjob 1 = ID 0 , Paintjob 2 = ID 1 , Paintjob 3 = ID 2
ok lets take for the sultan(car1) the paintjob 3.
so then u add under OnGameModeInit() under the last line of the script( i hope u now know where that is becuz i explained it above).
ok so u add under the last line u add:
pawn Код:
ChangeVehiclePaintjob(vehiclename, the paintjob);
so for example:
pawn Код:
ChangeVehiclePaintjob(car1, 2);
so now u have gave ur sultan the vehicle paintjob 3.
ok well then we have finished.

3. change the vehicle's colour:

step 1:
if a car doesn't has a vehicle paintjob u could also give them a nice colour.(u can also give them both)
here is a website: https://sampwiki.blast.hk/wiki/Image:Carcolours_All.jpg

so u add under the last line of OnGameModeInit() the line:
pawn Код:
ChangeVehicleColor(vehicleid, Colour1, colour2);
vehicleid = the id of the vehicle(in this case the name of the vehicle so its car1)
colour1 = the first colour the car gets
colour2 = the second colour the car gets.

ok so for example u add:
pawn Код:
ChangeVehicleColor(car1, 3, 3); // now it has the color red.
ok well thats the little tut about this.

Greetz
Niels

HAVE FUN!!!
Reply
#2

U don't explain much, it's more add this add that.
If you don't want to spend some time to make a tutorial, Then simply don't waste your time.
Reply
#3

lol what should i explain more then? tell me so i can make my next(if there comes a next) tutorial better
Reply
#4

Quote:
Originally Posted by Epic_Mickey
Посмотреть сообщение
U don't explain much, it's more add this add that.
If you don't want to spend some time to make a tutorial, Then simply don't waste your time.
OMG What is your signature about i didn't figure out a thing
Reply
#5

tnx 10/10 for me i am newbie
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)