23.09.2017, 18:10
I suggest you to change vSync_gVehDefaultColors structure to:
So you won't have to loop through all colors everytime when -1 is passed to CreateVehicle and equivalents
Code:
{ number_of_colors, color1, color2 ... }
Code:
new rand_col = 1 + random(vSync_gVehDefaultColors[modelid - 400][0]);