openmultiplayer / openmultiplayer/open.mp
PlayerTextDrawGetPreviewVehicleColours
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 641
- Forks
- 208
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a vehicle shown through PlayerTextDrawSetPreviewModel, both with and without PlayerTextDrawSetPreviewVehicleColours. Trace the implementations of PlayerTextDrawGetPreviewVehicleColours and the preview-model behavior to determine how random colors are stored or exposed. Done means the getter returns the displayed vehicle colors without requiring the setter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100