SA-MP Forums Archive
attaching a 3d text to a vehicle - 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: attaching a 3d text to a vehicle (/showthread.php?tid=119571)



attaching a 3d text to a vehicle - Mattjones17 - 08.01.2010

Hi
I am using the following code to attach a 3d label to a vehicle when you select it in a dialog. However it does not appear to work. Can anyone see a problem?

new vehicleid;
format(message, 256, "The display has been set to 401 BAYLINER", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
bayliner_401 = Create3DTextLabel("401 'Bayliner' BAYSIDE via Gant Bridge Visitor Centre",0xFF9900FF,0.0,0.0,0.0,40.0,0);// The output of the selection
vehicleid = GetPlayerVehicleID(playerid);
Attach3DTextLabelToVehicle(Text3D: bayliner_401, vehicleid, 0.0, 0.0, 0.0);


Re: attaching a 3d text to a vehicle - mansonh - 08.01.2010

Try this, you don't actually need to relabel the bayliner with Text3D.

new vehicleid, Text3D:bayliner;
format(message, 256, "The display has been set to 401 BAYLINER", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
bayliner_401 = Create3DTextLabel("401 'Bayliner' BAYSIDE via Gant Bridge Visitor Centre",0xFF9900FF,0.0,0.0,0.0,40.0,0);// The output of the selection
vehicleid = GetPlayerVehicleID(playerid);
Attach3DTextLabelToVehicle(bayliner_401, vehicleid, 0.0, 0.0, 0.0);



Re: attaching a 3d text to a vehicle - Mattjones17 - 09.01.2010

So I put that under each option but change the 3dLabel as appropriate?


Re: attaching a 3d text to a vehicle - Mattjones17 - 09.01.2010

full code is here http://pastebin.com/m2360196a meant to paste that as well