Help with 3d text labels
#1

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?
Reply
#2

Код 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
Reply
#3

3d text labels has to be created at OnGameModeInit you can't create it like the way you did
Reply
#4

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)