Is there a setvehiclecolour command?
#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


Messages In This Thread
Is there a setvehiclecolour command? - by Jay. - 16.07.2010, 19:46
Re: Is there a setvehiclecolour command? - by ViruZZzZ_ChiLLL - 16.07.2010, 19:47
Re: Is there a setvehiclecolour command? - by Jay. - 16.07.2010, 19:50
Re: Is there a setvehiclecolour command? - by Joe_ - 16.07.2010, 19:51

Forum Jump:


Users browsing this thread: 1 Guest(s)