[REP++] Objects Material
#1

How can I do this?

(Image from GamerX Server)
Reply
#2

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.
Reply
#3

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.
....
Reply
#4

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).
Reply
#5

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?
Reply
#6

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.
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)