SA-MP Forums Archive
[REP++] Objects Material - 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: [REP++] Objects Material (/showthread.php?tid=626096)



[REP++] Objects Material - KessMan - 10.01.2017

How can I do this?

(Image from GamerX Server)


Re: [REP++] Objects Material - SoLetsGO - 10.01.2017

try to find it in their "objects by caterogy" list, although I don't know if they will appear.

Edit: I've searched it, but couldn't find it in their list.


Re: [REP++] Objects Material - KessMan - 10.01.2017

Quote:
Originally Posted by SoLetsGO
Посмотреть сообщение
try to find it in their "objects by caterogy" list, although I don't know if they will appear.

Edit: I've searched it, but couldn't find it in their list.
....


Re: [REP++] Objects Material - Lordzy - 10.01.2017

I assume it's SetObjectMaterialText function used along with gtaweapon3.tff font(something similar to such a name, can be found on your SA directory if you got SA-MP installed).


Re: [REP++] Objects Material - KessMan - 10.01.2017

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
I assume it's SetObjectMaterialText function used along with gtaweapon3.tff font(something similar to such a name, can be found on your SA directory if you got SA-MP installed).
I not found these pictures in gtaweapon3.tff or sampaux3.tff.
There are other fonts than these?


Re: [REP++] Objects Material - Nate4 - 11.01.2017

The weapon icons are made using SetObjectMaterial (or dynamic object material).

For example, the following code could created the rocket icon on an appropriate object:

PHP код:
SetObjectMaterial(objectidmaterialindex359rocketlarocketlaicon0x0
A grenade:

PHP код:
SetObjectMaterial(objectidmaterialindex342grenadegrenadeicon0x0
The material index used is often 0 for basic objects like a small wall etc.

Sorry I don't know the easiest way to find all of the weapon textures but there's a start.


Re: [REP++] Objects Material - DrVenomous - 11.01.2017

PHP код:
SetObjectMaterial(objectidmaterialindex359rocketlarocketlaicon0x0)  */ Rocket Launcher
SetObjectMaterial
(objectidmaterialindex359generadegeneradeicon0x0)  */ Generade
SetObjectMaterial
(objectidmaterialindex359minigunminigunicon0x0)  */ Minigun
SetObjectMaterial
(objectidmaterialindex359moltovmoltovicon0x0)  */ Molotov Cocktail
SetObjectMaterial
(objectidmaterialindex359flamethflamethicon0x0)  */ Flame thrower 
If I helped you, then please REP me.