ObjectMaterial #23
Labels
compatibility
Compatibility with latest version of SAMP
depends on blue
The feature might depend on MTA:SA source code
function
SAMP functions
Uh oh!
There was an error while loading. Please reload this page.
Function name
SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
SetObjectMaterialText(objectid, text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)
SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
SetPlayerObjectMaterialText(playerid, objectid, text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)
Describe the function
SetObjectMaterial - Replace the texture of an object with the texture from another model in the game.
SetObjectMaterialText - Replace the texture of an object with text.
SetPlayerObjectMaterial - Replace the texture of a player-object with the texture from another model in the game.
SetPlayerObjectMaterialText - Replace the texture of a player object with text.
Equivalent in MTA
I don't know how we can do it in MTA. Maybe We can change the texture via HLSL?
Additional information
SetObjectMaterial
SetObjectMaterialText
SetPlayerObjectMaterial
SetPlayerObjectMaterialText
https://forum.gamerxserver.com/forum/samp-server-188-165-219-63-8800/questions-and-answers/tutorials/2907-object-material-tutorial-spoma <- how it works.
The text was updated successfully, but these errors were encountered: