SA-MP Forums Archive
Paintjobs Won't Spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Paintjobs Won't Spawn (/showthread.php?tid=71801)



Paintjobs Won't Spawn - sidhu123 - 04.04.2009

Hey hey!... [SAP]Sidhu here... I'm trying to make tuned cars. The vehicles show with the components, but the paintjobs don't show.. Can someone please help me fix this problem?

pawn Код:
car15 = CreateVehicle(534,-1953.2465,289.8715,35.1940,90.0686,0,0,86400); // Remington - N Sidhu's License Plate
    SetVehicleNumberPlate(car15, "N SIDHU");
    SetVehicleToRespawn(car15);
    ChangeVehiclePaintjob(car15, 3);
    AddVehicleComponent(car15, 1010);
    AddVehicleComponent(car15, 1075);
    AddVehicleComponent(car15, 1101);
    AddVehicleComponent(car15, 1122);
    AddVehicleComponent(car15, 1179);
    AddVehicleComponent(car15, 1180);
    AddVehicleComponent(car15, 1125);
   
    car16 = CreateVehicle(567,-1952.7363,256.7356,40.8515,359.8809,0,0, 86400); // Tyler's Savanna
    SetVehicleNumberPlate(car16, " TYLER ");
    SetVehicleToRespawn(car16);
    ChangeVehiclePaintjob(car16, 3);
    AddVehicleComponent(car16, 1010);
    AddVehicleComponent(car16, 1087);
    AddVehicleComponent(car16, 1086);
    AddVehicleComponent(car16, 1088);
    AddVehicleComponent(car16, 1078);



Re: Paintjobs Won't Spawn - Norn - 04.04.2009

The vehicle probably hadnt spawned in time before the function was called.


Re: Paintjobs Won't Spawn - sidhu123 - 04.04.2009

Quote:
Originally Posted by Seif_ [adream-rp.com
]
No such ID as 3. Paintjob IDs are: 0, 1 and 2.
Really?


Re: Paintjobs Won't Spawn - Norn - 04.04.2009

0 - Paintjob 1
1 - Paintjob 2
2 - Paintjob 3
4 - CJ's head
8 - Metal stuff
9 - CRASH
11 - Half missing burnt car
13 - CJ's head
16 - Bricks
17 - Window or Gant Bridge toll booths
18 - Train lines?
19 - CJ's head
20 - CRASH
21 - CRASH
22 - Gant Bridge (seethrough)
25 - Grey carcolor with brown wood (?) down the edge
Anything higher than 31 - CRASH

Indeed.

Didn't read the wiki before i posted the first time.


Re: Paintjobs Won't Spawn - sidhu123 - 04.04.2009

Thanks guys... I thought paint job 1 would be ID 1... I think you know why :P


Re: Paintjobs Won't Spawn - Norn - 04.04.2009

Quote:
Originally Posted by [SAP
Sidhu ]
Thanks guys... I thought paint job 1 would be ID 1... I think you know why :P
Just like arrays they start at 0


Re: Paintjobs Won't Spawn - sidhu123 - 04.04.2009

I know that now