Change name of buildings
#1

Hi!
When i'm near a business I can see in white [business].
I want to change it. or put the same tag a car with her name, like [Infernus].
How can I do it ?
Reply
#2

What kind of business? Ammunation, 24/7, Well Stacked Pizza?

But mabye you mean:
GameTextForPlayer,
CreatePlayer3DTextLabel
Reply
#3

I'm preety sure it's CreatePlayer3DTextLabel, now I have this 3dtext on the houses, I believe it's gl_property...
How can I edit the text?
and, how can I add CreatePlayer3DTextLabel to a vehicle ?
Reply
#4

you mean you want to attach the 3d label to the vehicle?
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Reply
#5

Indeed.
But waht can I do now, if I want to attach the name of the vehicle?
pass all the 320 cars I have and write, new v1 =, v2 =, v3 ... etc?
Reply
#6

use a loop
Reply
#7

Tried ... didn't figured out how..
Reply
#8

Here something i just wrote :

pawn Код:
new
     Text3D: VehicleLabel[ MAX_VEHICLES ];

public OnGameModeInit()
{
     Attach3DText();
     return 1;
}

stock Attach3DText()
{
     for(new vehicleid; vehicleid < MAX_VEHICLES; vehicleid++)
     {
          VehicleLabel[ vehicleid ] = Create3DTextLabel("Veh text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
          Attach3DTextLabelToVehicle( VehicleLabel[ vehicleid ], vehicleid, 0.0, 0.0, 2.0);
     }
}
Reply
#9

Tried that, not working..

Edit: My bad, working, buy I can I add the name of the vehicle?
Second Edit: Figured that out, Thanks a lot!
Reply
#10

Quote:
Originally Posted by orrgoren11
Посмотреть сообщение
Tried that, not working..

Edit: My bad working, buy I can I add the name of the vehicle?
Well, what's not working then ? as from my point of view, it should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)