Gold Rims Help
#1

Hey guys. I want to create this vehicles when get spawned to be equipped with gold rims.
This is the compoment which are the gold rims.

pawn Код:
AddVehicleComponent(GetPlayerVehicleID(playerid),1080);
There are the cars i want to equip with gold rims.

pawn Код:
AddStaticVehicle(470,213.7728,1854.6956,12.9258,1.8452,43,0); // patriot area51
AddStaticVehicle(495,221.9560,1854.6931,13.2558,359.1743,151,0); // sandking area51
+REP for the dude who help me.
Reply
#2

pawn Код:
//Under Ongamemodeinit
new v[2];
v[0]=AddStaticVehicle(470,213.7728,1854.6956,12.9258,1.8452,43,0); // patriot area51;
v[1]=AddStaticVehicle(495,221.9560,1854.6931,13.2558,359.1743,151,0); // sandking area51;

AddVehicleComponent(v[0],1080);
AddVehicleComponent(v[1],1080);
Reply
#3

here this will help you:

https://sampforum.blast.hk/showthread.php?tid=120486
Reply
#4

Thank you HuSs3n. +REP for you.
Reply
#5

You dont have to make an new array, just do this:

pawn Код:
AddStaticVehicle(470,213.7728,1854.6956,12.9258,1.8452,43,0); // patriot area51;
AddVehicleComponent(AddStaticVehicle(470,213.7728,1854.6956,12.9258,1.8452,43,0), 1080);
Because AddStaticVehicle returns vehicle ID.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)