help | text on vehicle
#1

hello,

i tried to put this code on my gamemode :
Код:
new Car3DText[50];

public OnVehicleSpawn(vehicleid)
{
  if(vehicleid == 522)
  {
    Car3DText = "Text";
    new Text3D:Created3D = Create3DTextLabel(Car3DText,0x008080FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToVehicle(Created3D,vehicleid,0.0,0.0,0.0);
  }
  return 1;
}
but when i see/enter vehicleid 522 ( nrg500 ) i dont see "Text" on the vehicle.
why that?
the vehicles at OnGameModeInit
Reply
#2

vehicleid != modelid

vehicleid is not the modelid. Use GetVehicleModel function to check the model-ID of the vehicle.
Reply
#3

vehicle id is ID of vehicle used on destroying, moving etc.
use :
Код:
if(GetVehicleModel(vehicleid) == 522){
   .
   .
   .
you wrote first xD
Reply
#4

Код:
public OnVehicleSpawn(vehicleid)
{
	//AddStaticVehicle(522,660.0554,1719.1187,6.5642,12.7699,8,82);
  if(GetVehicleModel(vehicleid) == 522)
  {
    Car3DText = "Text";
    new Text3D:Created3D = Create3DTextLabel(Car3DText,0x008080FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToVehicle(Created3D,vehicleid,0.0,0.0,0.0);
  }
  return 1;
}
Still not working
Reply
#5

Common guys, pleasae help me
Reply
#6

Quote:
Originally Posted by Daniel13145
Common guys, pleasae help me
Explain more.
You want when the player enters a vehicle he gets a message?
Reply
#7

Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by Daniel13145
Common guys, pleasae help me
Explain more.
You want when the player enters a vehicle he gets a message?
Nope, i want to do over vehicle id 522 text

example :

Message ( its the text over the vehicle )
___
/___\ - (its the vehicle )

understand?
Reply
#8

guys please help me :\
Reply
#9

help me guys V_V
Reply
#10

so u get any error or warning while compiling or it just compile fine and u dont see text?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)