Click or drag to resize

PlayerSetAttachedObject Method

Attach an object to a specific bone on this player.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public bool SetAttachedObject(
	int index,
	int modelId,
	Bone bone,
	Vector3 offset,
	Vector3 rotation,
	Vector3 scale,
	Color materialColor1,
	Color materialColor2
)

Parameters

index
Type: SystemInt32
The index (slot) to assign the object to (0-9).
modelId
Type: SystemInt32
The model to attach.
bone
Type: SampSharp.Entities.SAMPBone
The bone to attach the object to.
offset
Type: SampSharp.Entities.SAMPVector3
offset for the object position.
rotation
Type: SampSharp.Entities.SAMPVector3
rotation of the object.
scale
Type: SampSharp.Entities.SAMPVector3
scale of the object.
materialColor1
Type: SampSharp.Entities.SAMPColor
The first object color to set.
materialColor2
Type: SampSharp.Entities.SAMPColor
The second object color to set.

Return Value

Type: Boolean
True on success, False otherwise.
See Also