lollie123 Posted June 20, 2013 Share Posted June 20, 2013 Hello I'm making a plugin to show map markers like fire stations. Im new to this This is my code in VB.Net 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 Link to comment Share on other sites More sharing options...
AgentWD40 Posted June 20, 2013 Share Posted June 20, 2013 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);} Link to comment Share on other sites More sharing options...
lollie123 Posted June 20, 2013 Author Share Posted June 20, 2013 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 Link to comment Share on other sites More sharing options...
AgentWD40 Posted June 20, 2013 Share Posted June 20, 2013 not so hard to convert it GTA.Native.Function.Call("ADD_BLIP_FOR_COORD", x,y,z, &mapblip); Link to comment Share on other sites More sharing options...
lollie123 Posted June 22, 2013 Author Share Posted June 22, 2013 Could you add an full .NET code? I dont understand how you can intergrate it. Link to comment Share on other sites More sharing options...
AgentWD40 Posted June 22, 2013 Share Posted June 22, 2013 (edited) 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.com/index.php?showtopic=529784 http://pastebin.com/u/julioCCs 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); } Edited June 22, 2013 by hardsty1e Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now