Click or drag to resize

IGameObjectSetMaterialText Method

Sets the material text of this IGameObject.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
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.GameMode.DefinitionsObjectMaterialSize
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.GameMode.SAMPColor
The color of the text.
backColor
Type: SampSharp.GameMode.SAMPColor
The background color of the text.
textalignment
Type: SampSharp.GameMode.DefinitionsObjectMaterialTextAlign
The alignment of the text.
See Also