attaching a 3d text to a vehicle
#1

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);
Reply
#2

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);
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)