SetObjectMaterial - materialcolor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetObjectMaterial - materialcolor (
/showthread.php?tid=576646)
SetObjectMaterial - materialcolor -
seler - 06.06.2015
Hey!
When I use code:
Код:
SetObjectMaterial(uid, materialindex, modelid, txdname, texturename, color);
color should be string or HEX?
Re: SetObjectMaterial - materialcolor -
J0sh... - 06.06.2015
Your color on the color parameter is 0x77000030 not 0x10FF0000
Re: SetObjectMaterial - materialcolor -
seler - 06.06.2015
OK, thanks, but color should be string or HEX in SetObjectMaterial?
Re: SetObjectMaterial - materialcolor -
J0sh... - 06.06.2015
Quote:
Originally Posted by Wiki
The object color to set, as an integer or hex in ARGB color format. Using 0 keeps the existing material color.
|
Hex.
Re: SetObjectMaterial - materialcolor -
seler - 06.06.2015
OK, thanks, best regards!