Displaying an Image from a MYSQL Field?
#1

Hello, I was wondering, I'm displaying a Vehicle Model or Skin Model and it's showing the ID, Ex: Vehicle Model: 560.

How would I get it so instead of showing 560 it would show a picture of a sultan for example?

Thank you
Reply
#2

You'd need to use the new TextDraw functions of the 0.3x, then read it from the database and set these up:

pawn Код:
TextDrawFont(playerid, txtSprite, TEXT_DRAW_FONT_MODEL_PREVIEW);
native TextDrawSetPreviewModel(Text:text, modelindex);
native TextDrawSetPreviewRot(Text:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)