3D text lable help
#1

Hello I'v made text lables to all my cars except the ones that spawn how would i make that? and how would I make a command where I can change what the 3D text says? from in the game.
And make them random on each car? this what iv got so far

Quote:

new Text3D:vTexts[MAX_VEHICLES]; //right befor OnGamemodeInit
(All my static cars)
for(new vehid;vehid<MAX_VEHICLES;vehid++)
{
if(GetVehicleModel(vehid))
{
vTexts[vehid]=Create3DTextLabel("MW-DM", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 0);
Attach3DTextLabelToVehicle(vTexts[vehid],vehid,0.0,0.0,2.0);
}
}
return 1;
}

Reply
#2

public OnVehicleSpawn(vehicleid) will help you to set the 3D label when a vehicle spawns.

when you want to use a command to change the 3D text lable I asume you want the lable changed from the nearest car, if I'm right then this topic will help you with the getnearestvehicle function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)