How do i see the Vehicle Colors?
#1

PHP код:
CreateStaticVehicle(VEHICLE_TYPE_LAW_ENFOREMENT,4902251.6560052443.16699210.9476270.281860, -1, -1); 
How do I see in this code the vehicle color?
Reply
#2

Can you show us the code for CreateStaticVehicle
Reply
#3

I'm pretty sure that's AddStaticVehicle. Even if it's a modified version, I guess that the last two parameters (-1 and -1) are the two colors. -1 will randomize them. (Color IDs)
Reply
#4

well I found this:


PHP код:
stock CreateStaticVehicle(type,modelid,Float:X,Float:Y,Float:Z,Float:A,ColorOne,ColorTwo)
{
    
CurrentVehicleId ++;
    if (
CurrentVehicleId MAX_VEHICLES)
    {
        
printf("Too Many Vehicleid's Ignoring Vehicleid %d",CurrentVehicleId);
        return 
1;
    }
    new 
string[256];
    
AddStaticVehicleEx(modelid,X,Y,Z,A,ColorOne,ColorTwo,300);
    
CarInfo[CurrentVehicleId][cType] = type;
    
CarInfo[CurrentVehicleId][cModel] = modelid;
    
CarInfo[CurrentVehicleId][cLocationX] = X;
    
CarInfo[CurrentVehicleId][cLocationY] = Y;
    
CarInfo[CurrentVehicleId][cLocationZ] = Z;
    
CarInfo[CurrentVehicleId][cLocationA] = A;
    
CarInfo[CurrentVehicleId][cColorOne] = ColorOne;
    
CarInfo[CurrentVehicleId][cColorTwo] = ColorTwo;
    
CarInfo[CurrentVehicleId][cLocationI] = 0;
    
CarInfo[CurrentVehicleId][cLocationW] = 0;
    
format(stringsizeof(string), "Not Owned");
    
strmid(CarInfo[CurrentVehicleId][cOwner], string0strlen(string), 256);
    
CarInfo[CurrentVehicleId][cOwned] = -1;
    
CarInfo[CurrentVehicleId][cLock] = 0;
    
CarInfo[CurrentVehicleId][cValue] = 0;
    
CarInfo[CurrentVehicleId][cSellable] = 0;
    
CarInfo[CurrentVehicleId][cSold] = 0;
    
CarInfo[CurrentVehicleId][cSpawnTime] = 0;
    return 
1;

Does this show the color?
Reply
#5

As RajatPawar the last two parameters are the colors. And what are you meaning with this 'show color'?
Reply
#6

Well does this shows the place which creates the vehicle color.
Reply
#7

Yep bro.
Reply
#8

Well can you mark me the place which shows which colors are on the cars?
Reply
#9

its in this this line
look at ColorOne and ColorTwo
AddStaticVehicleEx(modelid,X,Y,Z,A,ColorOne,ColorT wo,300);
Reply
#10

Kk,
but which color is ColorOne, ColorTwo?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)