Spawn vehicles with random color problem
#1

Can anyone tell me why these vehicles doesnt spawn with random colors but, grey?
pawn Код:
AddStaticVehicleEx(453,891.063000,-1915.870,0.095,169.00000,-1,-1,600000);                          // Reefer
    AddStaticVehicleEx(453,883.716000,-1913.420,-0.010,158.70000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(453,874.341000,-1914.240,-0.182,187.00000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(453,864.642000,-1913.300,-0.176,200.00000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(473,759.0700000,-2955.1757,0.3791,90.00000,-1,-1,600000);                            // Dinghy
    AddStaticVehicleEx(473,707.3858000,-2933.1916,-0.4783,125.00000,-1,-1,600000);                      // Dinghy
    AddStaticVehicleEx(453,626.740000,-2972.160,-1.008 ,350.0000,-1,-1,600000);                         // Reefer
    AddStaticVehicleEx(473,714.0844000,-3035.7060,0.3923,10.55000,-1,-1,600000);                            // Dinghy
Reply
#2

how i know venhicles cant spawn with random color go to mta sa and create venhicles with color you want
Reply
#3

They can, i have done that many times before. but these just wont spawn with random clolors
Reply
#4

i try for my server but dont work with random color
Reply
#5

bro try this code
Код:
 CreateVehicle(modelid, x, y, z, angle, random(255), random(255), 60);
Reply
#6

Quote:
Originally Posted by Dejan12345
Посмотреть сообщение
bro try this code
Код:
 CreateVehicle(modelid, x, y, z, angle, random(255), random(255), 60);
Thanks that worked! rep+
Reply
#7

np bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)