Help with 3d text labels - 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)
+--- Thread: Help with 3d text labels (
/showthread.php?tid=657935)
Help with 3d text labels -
Jing_Chan - 18.08.2018
pawn Код:
if(TempVar[playerid][JobDuty] == true)
{
TempVar[playerid][JobDuty] = false;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now off duty.");
Delete3DTextLabel (Taxi3DText[ vehicle_id ] );
format(string, sizeof(string), "[Taxi] {FFFFFF} Off Duty");
Taxi3DText[ CabDriving ] = Create3DTextLabel( string, COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( Taxi3DText[ CabDriving ] , vehicle_id, 0.0, 0.0, 2.0);
}
This is meant to put the 3d text label on the taxi but doesn't do anything, any idea?
Re: Help with 3d text labels -
Stormalle - 18.08.2018
Код HTML:
if(TempVar[playerid][JobDuty] == true)
{
TempVar[playerid][JobDuty] = false;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now off duty.");
Delete3DTextLabel (Taxi3DText[ vehicle_id ] );
format(string, sizeof(string), "[Taxi] {FFFFFF} Off Duty");
Taxi3DText[ CabDriving ] = Create3DTextLabel( string, COLOR_GREEN, 0.0, 0.0, 0.0-30.0, 20, 0, 0);
Attach3DTextLabelToVehicle( Taxi3DText[ CabDriving ] , vehicle_id, 0.0, 0.0, 0.0);
}
try this
Re: Help with 3d text labels -
Akeem - 18.08.2018
3d text labels has to be created at OnGameModeInit you can't create it like the way you did
Re: Help with 3d text labels -
Akeem - 19.08.2018
You can use this for the way you want to do it CreateDynamic3DTextLabel
You can find more info on it here
https://github.com/samp-incognito/sa...3D-Text-Labels)