mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 23:17:52 +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
|
#pragma once
|
||||||
#include "gta/enums.hpp"
|
|
||||||
#include "natives.hpp"
|
#include "natives.hpp"
|
||||||
#include "script.hpp"
|
#include "script.hpp"
|
||||||
|
|
||||||
@ -10,7 +9,7 @@ namespace big::blip
|
|||||||
Blip blip;
|
Blip blip;
|
||||||
for (blip = HUD::GET_FIRST_BLIP_INFO_ID(sprite);
|
for (blip = HUD::GET_FIRST_BLIP_INFO_ID(sprite);
|
||||||
HUD::DOES_BLIP_EXIST(blip) &&
|
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)
|
blip = HUD::GET_NEXT_BLIP_INFO_ID(sprite)
|
||||||
) script::get_current()->yield();
|
) script::get_current()->yield();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user