Click or drag to resize

PlayerObjectSetMaterialText Method

Sets the material text of this player object.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void SetMaterialText(
	int materialIndex,
	string text,
	ObjectMaterialSize materialSize,
	string fontface,
	int fontSize,
	bool bold,
	Color foreColor,
	Color backColor,
	ObjectMaterialTextAlign textAlignment
)

Parameters

materialIndex
Type: SystemInt32
The material index on the object to change.
text
Type: SystemString
The text to show on the object. (MAX 2048 characters)
materialSize
Type: SampSharp.Entities.SAMPObjectMaterialSize
The object's material index to replace with text.
fontface
Type: SystemString
The font to use.
fontSize
Type: SystemInt32
The size of the text (max 255).
bold
Type: SystemBoolean
Whether to write in bold.
foreColor
Type: SampSharp.Entities.SAMPColor
The color of the text.
backColor
Type: SampSharp.Entities.SAMPColor
The background color of the text.
textAlignment
Type: SampSharp.Entities.SAMPObjectMaterialTextAlign
The alignment of the text.
See Also