PlayerTextDrawSetPreviewVehCol

From SA-MP Wiki

Jump to: navigation, search


PlayerTextDrawSetPreviewVehCol was added in SA-MP 0.3x This function was added in SA-MP 0.3x and will not work in earlier versions!


Description:

Set the color of a vehicle in a player-textdraw model preview (if a vehicle is shown).


Parameters:
(playerid, PlayerText:text, color1, color2)
playeridThe ID of the player whose player-textdraw to change.
textThe ID of the player's player-textdraw to change.
color1The color to set the vehicle's primary color to.
color2The color to set the vehicle's secondary color to.


Return Values:

This function does not return any specific values.


Image:32px-Circle-style-warning.png

Important
Note

The textdraw MUST use the font TEXT_DRAW_FONT_MODEL_PREVIEW and be showing a vehicle in order for this function to have effect.


Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.