Paintjobs Won't Spawn
#1

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);
Reply
#2

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

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

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.
Reply
#5

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

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
Reply
#7

I know that now
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)