SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 11/04/2019, 09:41 PM   #1
Big Clucker
Join Date: Dec 2011
Location: Czech Republic - Prachatice/Písek
Posts: 106
Reputation: 5
Default How to remove minimap marker on NPC

    	new npcname[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, npcname, sizeof(npcname));
    	if(!strcmp(npcname, "Natasha", true))
     		new Text3D:label = Create3DTextLabel("Natasha", COLOR_WHITE, 30.0, 40.0, 5.0, 40.0, 1);
			Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.0);
      		SetPlayerSkin(playerid, 197);
      		SetPlayerPos(playerid, 6.6185,1955.5071,17.6406);
			SetPlayerFacingAngle(playerid, 270.0592);
			for(new i = 0; i < MAX_PLAYERS; i++)
        		SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00 );
      		print("Natasha spawned!");
      		return 1;
    	return 1;
After using this, is still NPC visible on minimap
MichiCZ is offline   Reply With Quote
Old 11/04/2019, 10:00 PM   #2
Freaksken's Avatar
Join Date: Mar 2009
Location: Belgium
Posts: 503
Reputation: 367
Default Re: How to remove minimap marker on NPC

If you want to disable the player icon on the mini map for ALL players, you can just use this:
SetPlayerColor(playerid, 0xFFFFFF00);
instead of this:
for(new i = 0; i < MAX_PLAYERS; i++) {
	SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.

[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove this Marker / Pickup / whatever it is RyderX Scripting Help 6 12/03/2017 10:50 AM
Change marker only in tab and in minimap MerryDeer Scripting Help 2 12/12/2016 07:19 AM
Vehicle Score -> Remove minimap? PuSchKiiNX Scripting Help 1 24/02/2013 07:12 PM
Minimap player marker question Alphos Scripting Help 4 14/11/2011 01:33 PM
How to remove icons on the minimap? Devine Help Archive 11 13/07/2009 09:02 PM

All times are GMT. The time now is 06:45 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.