Jump to content

How to keep an area circle on mini-map after callout is accepted.


Recommended Posts

Basically :

ShowCalloutAreaBlipBeforeAccepting(vector3 position, float size);

provides a circle so that the player knows roughly where the callout is before accepting.

 

However, I want to make it so that happens, but it stays on there and only goes away when the player is near to the ped(s) (this is for a suspicious person callout, and the player doesn't know where the suspect is until they are near to them).

 

I cannot seem to find any code that will actually do this. 

 

Any help is much appreciated.

Link to comment
Share on other sites

36 minutes ago, NoNameSet said:

blip = new Blip(ped.Position, 20f);
if (Game.LocalPlayer.Character.DistanceTo2D(ped) <= 20)
{
     if (blip){blip.Delete();}
}

http://docs.ragepluginhook.net/html/T_Rage_Blip.htm

Alright yep thanks got it. What is the colour of the default blip that is used for the ShowCalloutAreaBlipBeforeAccepting one? As there are literally tonnes of colours.


 
Link to comment
Share on other sites

15 hours ago, NoNameSet said:

not sure, you're going to have to look at these wikipedia charts:

https://en.wikipedia.org/wiki/X11_color_names

 

https://en.wikipedia.org/wiki/Web_colors

Thanks for those, I'll have a look.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...