[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(objectid, materialindex, 359, rocketla, rocketlaicon, 0x0)
A grenade:
PHP код:
SetObjectMaterial(objectid, materialindex, 342, grenade, grenadeicon, 0x0)
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(objectid, materialindex, 359, rocketla, rocketlaicon, 0x0) */ Rocket Launcher
SetObjectMaterial(objectid, materialindex, 359, generade, generadeicon, 0x0) */ Generade
SetObjectMaterial(objectid, materialindex, 359, minigun, minigunicon, 0x0) */ Minigun
SetObjectMaterial(objectid, materialindex, 359, moltov, moltovicon, 0x0) */ Molotov Cocktail
SetObjectMaterial(objectid, materialindex, 359, flameth, flamethicon, 0x0) */ Flame thrower
If I helped you, then please REP me.