Is there a setvehiclecolour command?
#1

Tittle says all

I've seemed to forgot about it, If there is one reply


thanks.
Reply
#2

ChangeVehicleColor(vehicleid, color1, color2);
Reply
#3

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Посмотреть сообщение
ChangeVehicleColor(vehicleid, color1, color2);
Thanks...
Reply
#4

For changing a vehicles colour:

https://sampwiki.blast.hk/wiki/ChangeVehicleColor

And, this may not be relevant to you, but if you're planning on retrieving a colour of a car, it simply will not work.

You will have to make a new vehicle function, filling an array or property / gvar, with the colour arguments.

I use this in my mod.

pawn Код:
stock CreateVehicleEx(modelid, Float:x, Float:y, Float:z, Float:rotation, interior, world, colour1, colour2, respawn)
{
    new vehicleid = CreateVehicle(modelid, x, y, z, rotation, colour1, colour2, respawn);
   
    LinkVehicleToInterior(vehicleid, interior);
    SetVehicleVirtualWorld(vehicleid, world);
   
    SetGVarInt("Colour1", color1, vehicleid);
    SetGVarInt("Colour2", color2, vehicleid);
   
    return vehicleid;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)