Open TheDutchDev opened 2 years ago
When creating an alt.PointBlip client-side and setting the color property BEFORE setting the sprite property, the color will always be white.
Minor issue, but can still be very confusing as there are no warnings/errors given when doing this.
This one won't work
missionBlip = new alt.PointBlip( x, y, z ); missionBlip.color = 64; // gold color missionBlip.sprite = 1;
This one will work:
missionBlip = new alt.PointBlip( x, y, z ); missionBlip.sprite = 1; missionBlip.color = 64; // gold color
Color should work even when setting it before sprite.
Since sprite can be set at any given time, the simplest solution might just be to re-apply the color after sprite has changed.
Windows 10
Release 12.10
This is just how GTA works so I am unsure if we want to fix this
I think we can workaround it in client code in the future.
@QuiGonJinnAndTonic Could you test in newest dev?
Description of the problem
When creating an alt.PointBlip client-side and setting the color property BEFORE setting the sprite property, the color will always be white.
Minor issue, but can still be very confusing as there are no warnings/errors given when doing this.
Reproduction steps
This one won't work
This one will work:
Expected behaviour
Color should work even when setting it before sprite.
Additional context
Since sprite can be set at any given time, the simplest solution might just be to re-apply the color after sprite has changed.
Operating system
Windows 10
Version
Release 12.10