Car owner with 3dtext label
#2

Exemple code :
Код:
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
// Creating the TextLabel for later use
 
public OnGameModeInit ( )
{
    vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    //Creating the Vehicle
    //Attaching Text Label To Vehicle
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
}
public OnGameModeExit ( )
{
    Delete3DTextLabel( vehicle3Dtext[ vehicle_id ] );
    return true;
}
Source to read more about it : https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Reply


Messages In This Thread
Car owner with 3dtext label - by wahyumahadir - 23.02.2015, 13:07
Re : Car owner with 3dtext label - by Golimad - 23.02.2015, 22:35
Re: Car owner with 3dtext label - by HyperLink - 24.02.2015, 02:39

Forum Jump:


Users browsing this thread: 1 Guest(s)