SA-MP Forums Archive
SetPlayerAttachedObject using SetObjectMaterial - 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: SetPlayerAttachedObject using SetObjectMaterial (/showthread.php?tid=447086)



SetPlayerAttachedObject using SetObjectMaterial - riodespain - 28.06.2013

My function does not work, where I could make a mistake?
OnGameModeInit:
Quote:

new Float:X, Float:Y, Float:Z;
myobject = CreateObject(3026, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
SetObjectMaterial(myobject, 0, 2048, "CJ_AMMO_POSTERS", "cj_flag2", 0xFFFFFFFF);

OnPlayerSpawn:
Quote:

SetPlayerAttachedObject(playerid, 1, myobject, 1, -0.2, -0.06, 0, 0, 0, 0,1,1,1);

Sorry for my bad english =D


Re: SetPlayerAttachedObject using SetObjectMaterial - Vince - 28.06.2013

You can't re-texture an attached object, unfortunately.