SA-MP Forums Archive
[HELP] Grass texture - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Grass texture (/showthread.php?tid=494798)



[HELP] Grass texture - V4at - 14.02.2014

Hello fellas! Maybe someone has a grass texture in the San Fierro instead of construction place? Cuz I can't do this very well :/ I'll give +rep


Re: [HELP] Grass texture - davve95 - 14.02.2014

Try this one:

SetObjectMaterial(Object1, 0, 10861, "groundbit_sfse", "desgreengrass", 0);

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

If you need the "mapping" too:

pawn Код:
CreateObject(10983, -2076.65, 222.85, 31.22,   0.00, 0.00, 0.00);
CreateObject(11340, -2079.95, 159.20, 30.87,   356.86, 0.00, 3.14);
CreateObject(11223, -2049.17, 250.32, 33.08,   0.00, 0.00, 0.00);

RemoveBuildingForPlayer(playerid, 10983, -2076.6484, 222.8516, 31.2188, 0.25);
RemoveBuildingForPlayer(playerid, 11143, -2076.6484, 222.8516, 31.2188, 0.25);
RemoveBuildingForPlayer(playerid, 11223, -2049.1719, 250.3203, 33.0781, 0.25);
RemoveBuildingForPlayer(playerid, 11339, -2079.9531, 159.2031, 30.8672, 0.25);
RemoveBuildingForPlayer(playerid, 11340, -2079.9531, 159.2031, 30.8672, 0.25);
Might be wrong angle when you replace it, I don't know what's wrong always worked before...