SetPlayerAttachedObject color/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: SetPlayerAttachedObject color/texture? (
/showthread.php?tid=616824)
SetPlayerAttachedObject color/texture? -
Maheerali - 11.09.2016
How to set color or texture of AttachedGameobject or how to make a object attached to player which is created.
Код:
SetPlayerAttachedObject(playerid, 3, 2914, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, 0xFF0000);
Re: SetPlayerAttachedObject color/texture? -
Threshold - 11.09.2016
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
Read the parameters...
Код:
playerid The ID of the player to attach the object to.
index The index (slot) to assign the object to (0-9 since 0.3d, 0-4 in previous versions).
modelid The model to attach.
bone The bone to attach the object to.
fOffsetX (optional) X axis offset for the object position.
fOffsetY (optional) Y axis offset for the object position.
fOffsetZ (optional) Z axis offset for the object position.
fRotX (optional) X axis rotation of the object.
fRotY (optional) Y axis rotation of the object.
fRotZ (optional) Z axis rotation of the object.
fScaleX (optional) X axis scale of the object.
fScaley (optional) Y axis scale of the object.
fScalez (optional) Z axis scale of the object.
materialcolor1 (optional) The first object color to set, as an integer or hex in ARGB color format.
materialcolor2 (optional) The second object color to set, as an integer or hex in ARGB color format