PlayerTextDrawSetPreviewVehCol
Description:
Function PlayerTextDrawSetPreviewVehCol set the color of a vehicle in a player-textdraw model preview (if a vehicle is shown).
Function PlayerTextDrawSetPreviewVehCol was added in 0.3x and will not work in earlier versions! |
The textdraw MUST use the font TEXT_DRAW_FONT_MODEL_PREVIEW and be showing a vehicle in order for this function to have effect. |
Parameters:
(playerid, PlayerText:text, color1, color2)
int | playerid | The ID of the player whose player-textdraw to change. |
int | text | The ID of the player's player-textdraw to change. |
int | color1 | The color to set the vehicle's primary color to. |
int | color2 | The color to set the vehicle's secondary color to. |
Return Values:
This function does not return any specific values.
Examples:
-
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- PlayerTextDrawSetPreviewModel: Set model ID of a 3D player textdraw preview.
- PlayerTextDrawSetPreviewRot: Set rotation of a 3D player textdraw preview.
- PlayerTextDrawFont: Set the font of a player-textdraw.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerClickPlayerTextDraw: Called when a player clicks on a player-textdraw.