Ugrás a fő tartalomhoz

TextDrawGetPreviewVehicleColours

vigyázat

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Gets the preview vehicle colours of a 3D preview textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the vehicle colours of.
&colour1A variable into which to store the colour1, passed by reference.
&colour2A variable into which to store the colour2, passed by reference.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(320.0, 240.0, "_");
TextDrawFont(gMyTextdraw, TEXT_DRAW_FONT_MODEL_PREVIEW);
TextDrawUseBox(gMyTextdraw, true);
TextDrawBoxColour(gMyTextdraw, 0x000000FF);
TextDrawTextSize(gMyTextdraw, 40.0, 40.0);
TextDrawSetPreviewModel(gMyTextdraw, 411);
TextDrawSetPreviewVehicleColours(gMyTextdraw, 6, 8);

new colour1, colour2;
TextDrawGetPreviewVehicleColours(gMyTextdraw, colour1, colour2);
// colour1 = 6
// colour2 = 8
return 1;
}