mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 15:17:23 +08:00
fix(Blips): Get blip location by color (#146)
Co-authored-by: Yimura <andreas.maerten@scarlet.be>
This commit is contained in:
parent
dd31636275
commit
1b3521d227
@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include "gta/enums.hpp"
|
||||
#include "natives.hpp"
|
||||
#include "script.hpp"
|
||||
|
||||
@ -10,7 +9,7 @@ namespace big::blip
|
||||
Blip blip;
|
||||
for (blip = HUD::GET_FIRST_BLIP_INFO_ID(sprite);
|
||||
HUD::DOES_BLIP_EXIST(blip) &&
|
||||
color != -1 && HUD::GET_BLIP_COLOUR(blip);
|
||||
color != -1 && HUD::GET_BLIP_COLOUR(blip) != color;
|
||||
blip = HUD::GET_NEXT_BLIP_INFO_ID(sprite)
|
||||
) script::get_current()->yield();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user