Quote:
Originally Posted by Alex Magaсa
|
So to insert a model into the game, you use AddSimpleModel. For textdraws, you use the same thing.
First create your model with your custom texdraw
AddSimpleModel(-1,19379,
-2018,"crane.dff","freightcrane1.txd");
Second, create your textdraw in the script.
new Text:customtextdraw;
customtextdraw = TextDrawCreate(200.0, 220.0, "mdl
-2018:
mylogo_256");
TextDrawFont(customtextdraw,
4);
TextDrawColor(customtextdraw,0xFFFFFFFF);
TextDrawTextSize(customtextdraw,
200.0,200.0);
TextDrawSetSelectable(customtextdraw, 1);
TextDrawShowForPlayer(playerid,customtextdraw);
Definitions:
"-2018" - The ID of your custom model/texture
"mylogo_256" - The name of your image in the .txd
"4" - The font of your sprite/txddraw
"200.0,200.0" - Width and Height