Colors and SetObjectMaterial - 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: Colors and SetObjectMaterial (
/showthread.php?tid=387542)
Colors and SetObjectMaterial -
Baboon - 25.10.2012
Ok.
So I have always been confused how to create certain colors in samp.
I do have a list with colors that can be used for client messages, what is the format of those colors? RGB? ARGB? RGBA?
Also, I have an object material that I want to use and make it a little bit blueish. How can I accomplish this? The format of that color is ARGB, so I guess I will have to change the transparancy a bit, but I don't know how.
Hopefully you can help me, thanks.
Re: Colors and SetObjectMaterial -
Baboon - 25.10.2012
I sort of understand that, but once I set the color of a material like this:
SetDynamicObjectMaterial(objectid, 8, 964, "cj_crate_will", "CJ_FLIGHT_CASE", 0xFF3b8a7e);
The metal look totally becomes greenish, you don't see the texture anymore.. So I guess I have to do something with the transparancy, but how? :S
Re: Colors and SetObjectMaterial -
Baboon - 25.10.2012
Yes, I made it a bit greenish. But well, I want to see the texture, but give it a little color overlay. And that color overlay should be green.
Re: Colors and SetObjectMaterial -
Baboon - 25.10.2012
Yup I did, I checked wiki.sa-mp.com, but once I did this: 0x44RRGGBB it sort of disappeared, the index part became invisible :O. Only worked with 0xFF though