SA-MP Forums Archive
SetObjectMaterialText on Vehicle - 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: SetObjectMaterialText on Vehicle (/showthread.php?tid=420912)



SetObjectMaterialText on Vehicle - MrJunkiTM - 07.03.2013

Hello everyone,
i have a question to you. I see this screen today and my question is: "How can i do this ?" Have anybody of you some ideas ?



My idea is, you can use the function "SetObjectMaterialText", but i dont know, how to use it for vehicles.

I hope you can help me.


Re: SetObjectMaterialText on Vehicle - DiGiTaL_AnGeL - 07.03.2013

You just create an object, set its material text and then attach the object to the vehicle.


AW: SetObjectMaterialText on Vehicle - MrJunkiTM - 07.03.2013

Thank you, but how can i create the letter on the vehicle ?


Re: SetObjectMaterialText on Vehicle - MP2 - 07.03.2013

it's webdings.

ALT-0154

Source: http://www.wackycodes.com/webdings/webdings.html


Re: SetObjectMaterialText on Vehicle - Vince - 07.03.2013

What he said. Here is an example:
pawn Code:
new
        securicar,
        theobject;
   
    securicar = CreateVehicle(SECURICA, 2239.8296, 2475.9946, 3.3968, 270.0, 0, 0, -1),
    theobject = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    SetObjectMaterialText(theobject, "S.W.A.T.", 0, OBJECT_MATERIAL_SIZE_256x128, "BankGothic Md BT", 60, 1, 0xfff0f0f0, 0, 1);
    AttachObjectToVehicle(theobject, securicar, 1.153, -1.2, 0.46, 0.0, 0.0, 0.0);



AW: SetObjectMaterialText on Vehicle - MrJunkiTM - 07.03.2013

Quote:
Originally Posted by MP2
View Post
it's webdings.

ALT-0154

Source: http://www.wackycodes.com/webdings/webdings.html
Ok, do you have an example, how to use it ?


Re: SetObjectMaterialText on Vehicle - MP2 - 07.03.2013

^



Re: SetObjectMaterialText on Vehicle - crukk11 - 22.07.2017

put in ongamemodeinit