- Documentation
- Client functions
- setMeshObjectTexture
Function
setMeshObjectTexture
Puts a PNG/JPG image from the resource on a model object (by the UV coordinates in the file); false removes the image.
Syntax
bool setMeshObjectTexture(meshobject meshObject, string|bool imagePath)Arguments
meshObjectmeshobject- The object.
imagePathstring|bool- An image or
false.
Returns
true on success.
Example
setMeshObjectTexture(statue, "modele/marmur.png")