Okay, so Im trying to make a plow system, and the object that I used for the plow is default white, I want to make it black but it did nothing IG
Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new plow1 = CreateObject(3047,0,0,-1000,0,0,0,100);
new plow2 = CreateObject(3047,0,0,-1000,0,0,0,100);
new chain = CreateObject(2680,0,0,-1000,0,0,0,100);
// new plow3 = CreateObject(3047,0,0,-1000,0,0,0,100);
// new plow4 = CreateObject(3047,0,0,-1000,0,0,0,100);
// new chain2 = CreateObject(2680,0,0,-1000,0,0,0,100);
SetObjectMaterial(plow1, 1, -1, "none", "none", 0x000000FF);
SetObjectMaterial(plow2, 1, -1, "none", "none", 0x000000FF);
SetObjectMaterial(chain, 1, -1, "none", "none", 0x000000FF);
AttachObjectToVehicle(plow1, 1795, -0.899999,3.075001,-0.449999,0.000000,-18.899999,-90.540008);
AttachObjectToVehicle(plow2, 1795, 0.824999,3.075001,-0.449999,0.000000,-18.899999,-90.540008);
AttachObjectToVehicle(chain, 1795, 0.000000,2.820000,-0.289999,0.000000,36.000003,180.899887);
/*if(strcmp("/pup", cmdtext, true, 10) == 0)
{
MoveObject(plow1, 0,0,-1000, 2.00);
MoveObject(plow2, 0,0,-1000, 2.00);
MoveObject(chain, 0,0,-1000, 2.00);*/
return 1;
}
return 0;
}
I think what you should do is use SetObjectMaterialText, with ' ' as the text and from there you can set the background. It's probably not changing colour because it's not a valid texture.
There was only one index (0) and the wiki said to do it exactly like that.. I moved some shit around but now it shows with a bigass garage door