![]() |
#1 |
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2015
Posts: 220
Reputation: 19
|
![]()
Hello I use SetObjectMaterialText to use webdings character because they are looking cool, but my question is how can use the samp sprites https://imgur.com/6A6Eavy on the objects? I know on textdraw the font is number 4 but what is the name of the font to use it on setobjectmaterialtext?
|
![]() |
![]() |
![]() |
#2 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,121
Reputation: 68
|
![]()
you have to use SetObjectMaterial, instead of SetObjectMaterialText, you can change textures with that.
|
![]() |
![]() |
![]() |
#3 | |
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2015
Posts: 220
Reputation: 19
|
![]() Quote:
Code:
SetDynamicObjectMaterial(obj, 0, 0,"ld_grav:bee1", "ld_grav.txd", 0xFFFFFFFF); |
|
![]() |
![]() |
![]() |
#4 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,121
Reputation: 68
|
![]()
no, you don't have to use it like a sprite (I mean ld_grav:bee1), just take a texture name from ld_grav.txd, in that case bee1.
|
![]() |
![]() |
![]() |
#5 |
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2015
Posts: 220
Reputation: 19
|
![]()
same thing, nothing to display
SetDynamicObjectMaterial(obj, 0, 0,"bee1", "ld_grav.txd", 0xFFFFFFFF); |
![]() |
![]() |
![]() |
#6 |
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2011
Location: Indonesia
Posts: 391
Reputation: 92
|
![]()
You cant use textdraw sprites as object material
only in 0.3.8/DL you can use texture from custom models or sprites* as object material * note that 0.3.8 allows a custom model textures to be loaded as textdraw sprites, you can already use anything in that has model id registered (e.g. createable objects) texture files as object material without having custom 0.3.8 models The reason behind this because setobjectmaterial requires source model id (which i said creatable) to locate and load the texture files. You put 0 doesnt mean it will load any texture, instead it will load alpha texture. also you dont need to write .txd in the parameter. |
![]() |
![]() |
![]() |
#7 | |
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2015
Posts: 220
Reputation: 19
|
![]() Quote:
But I don't know what font name or texture material name is |
|
![]() |
![]() |
![]() |
#8 | |
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2011
Location: Indonesia
Posts: 391
Reputation: 92
|
![]() Quote:
You can copy the texture add into custom model in 0.3.8 or custom img file and you will be able to use the sprites All that server use is to trick the client to load the bee texture as textdraw first, it will not work if the textdraw was not rendered (it will be blank for other players unless they do the same). Just like with what i done with skin models for cop tied body snippet i made years ago, which is why copying it as 0.3.8 model texture is the best since everyone can see it. If you dont believe then go ask that server in the video |
|
![]() |
![]() |
![]() |
#9 |
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2015
Posts: 220
Reputation: 19
|
![]()
I still didn't find a solution for me, How can I put that bee on objects?
|
![]() |
![]() |
![]() |
#10 | |
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2011
Location: Indonesia
Posts: 391
Reputation: 92
|
![]() Quote:
I think i already gave you a clue.. 0.3.DL approach, copy the txd file in custom model folder, add it for download (assign the id), use object material with the texture & the custom model id. Nothing to do with SetObjectMaterialText |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SetObjectMaterialText Question | okil | Scripting Help | 0 | 02/12/2012 12:19 PM |
SetObjectMaterialText Question | okil | Server Support | 0 | 02/12/2012 11:54 AM |
[Question] SetObjectMaterialText | tony_fitto | Scripting Help | 0 | 26/07/2012 04:04 PM |
Question about SetObjectMaterialText | Dodo9655 | Scripting Help | 1 | 03/07/2012 07:41 PM |