Quantcast

Jump to content

» «
Photo

Map icons

5 replies to this topic
lollie123
  • lollie123

    Player Hater

  • Members
  • Joined: 21 Jun 2009

#1

Posted 20 June 2013 - 02:04 PM

Hello

I'm making a plugin to show map markers like fire stations.

Im new to this

This is my code in VB.Net

CODE

       Dim Fire1 As Blip = GTA.Blip.AddBlip(New Vector3(946.15F, 86.0F, 34.51F))
       Fire1.Icon = BlipIcon.Building_FireStation
       Fire1.Name = "Fire Station"


But now it's showing like an contact. Its always on the minimap.
I got 7 markers now. They are all stacking @ the minimap

How can I prefend this?

Greets

hardsty1e
  • hardsty1e

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • None

#2

Posted 20 June 2013 - 04:40 PM

CODE
void blip_location(void){
   ADD_BLIP_FOR_COORD(x,y,z, &mapblip);
   CHANGE_BLIP_ALPHA(mapblip, 255);
   CHANGE_BLIP_SPRITE(mapblip, 82);
   CHANGE_BLIP_NAME_FROM_ASCII(mapblip, title);
   CHANGE_BLIP_COLOUR(mapblip, 0);
}

lollie123
  • lollie123

    Player Hater

  • Members
  • Joined: 21 Jun 2009

#3

Posted 20 June 2013 - 05:24 PM

QUOTE (hardsty1e @ Thursday, Jun 20 2013, 16:40)
CODE
void blip_location(void){
   ADD_BLIP_FOR_COORD(x,y,z, &mapblip);
   CHANGE_BLIP_ALPHA(mapblip, 255);
   CHANGE_BLIP_SPRITE(mapblip, 82);
   CHANGE_BLIP_NAME_FROM_ASCII(mapblip, title);
   CHANGE_BLIP_COLOUR(mapblip, 0);
}

Sorry but it's for .NET

hardsty1e
  • hardsty1e

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • None

#4

Posted 20 June 2013 - 08:05 PM

not so hard to convert it wink.gif
CODE
GTA.Native.Function.Call("ADD_BLIP_FOR_COORD", x,y,z, &mapblip);

lollie123
  • lollie123

    Player Hater

  • Members
  • Joined: 21 Jun 2009

#5

Posted 22 June 2013 - 03:12 PM

Could you add an full .NET code?
I dont understand how you can intergrate it.

hardsty1e
  • hardsty1e

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • None

#6

Posted 22 June 2013 - 08:51 PM Edited by hardsty1e, 22 June 2013 - 11:24 PM.

QUOTE (lollie123 @ Saturday, Jun 22 2013, 15:12)
Could you add an full .NET code?
I dont understand how you can intergrate it.

well this is how i do it in c#, don't know vb but if you still need help then try julionib VB.net tutorial post & check his pastebin examples.

[TUT] How to create VB.Net scripts
http://www.gtaforums...howtopic=529784
http://pastebin.com/u/julioCCs

CODE

private Blip HQBlip;

private void Blips()
       {
           string title = "Name";
           float x = 0, y = 0, z = 0;
           this.HQBlip = Blip.AddBlip(new Vector3(x, y, z));
           GTA.Native.Function.Call("ADD_BLIP_FOR_COORD", x, y, z, HQBlip);
           GTA.Native.Function.Call("CHANGE_BLIP_ALPHA", HQBlip, 255);
           GTA.Native.Function.Call("CHANGE_BLIP_SPRITE", HQBlip, 82);
           GTA.Native.Function.Call("CHANGE_BLIP_NAME_FROM_ASCII", HQBlip, title);
           GTA.Native.Function.Call("CHANGE_BLIP_COLOUR", HQBlip, 0);
       }




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users