SetPlayerAttachedObject color/texture?
#1

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);
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)