PlayerObjectSetMaterial Method |
Sets the material of this player object.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public void SetMaterial(
int materialIndex,
int modelId,
string txdName,
string textureName,
Color materialColor
)
Parameters
- materialIndex
- Type: SystemInt32
The material index on the object to change. - modelId
- Type: SystemInt32
The model ID on which the replacement texture is located. Use 0 for alpha. Use -1 to change the
material color without altering the texture.
- txdName
- Type: SystemString
The name of the txd file which contains the replacement texture (use "none" if not required). - textureName
- Type: SystemString
The name of the texture to use as the replacement (use "none" if not required). - materialColor
- Type: SampSharp.Entities.SAMPColor
The object color to set (use default(Color) to keep the existing material color).
See Also