3D text lable help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3D text lable help (
/showthread.php?tid=209561)
3D text lable help -
darkknight123 - 10.01.2011
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;
}
|
Re: 3D text lable help -
Rizard - 10.01.2011
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