open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

PlayerTextDrawGetPreviewVehicleColours

Open Dante-1337 opened this issue 7 months ago • 2 comments
trafficstars

Describe the bug Unable to GET the colors of the car in a textdraw UNLESS using PlayerTextDrawSetPreviewVehicleColours beforehand.

To Reproduce Steps to reproduce the behavior:

  • Create a textdraw and display a vehicle model WITHOUT using PlayerTextDrawSetPreviewVehicleColours.
  • Try to get the color randomly generated without using the PlayerTextDrawGetPreviewVehicleColours function.

Expected behavior I expected this to work since the vehicle in the textdraw already gets shown with random colors when using PlayerTextDrawSetPreviewModel to display a car.

Release version OMP v1.4.0.2779

Dante-1337 avatar Apr 04 '25 08:04 Dante-1337