SetObjectMaterialText on Vehicle
#1

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

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

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

it's webdings.

ALT-0154

Source: http://www.wackycodes.com/webdings/webdings.html
Reply
#5

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);
Reply
#6

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

^
Reply
#8

put in ongamemodeinit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)