16.07.2010, 19:51
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.
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;
}