Today, I testing a player.SetMarker function and... Idk how it works.
In onPlayerSpawn event I put a line with SetMarker function. Every test I change a number, save script and reset server.
test 1:
player.SetMarker(22);
test 2:
player.SetMarker(0);
test 3:
player.SetMarker(1);
test 4:
player.SetMarker(3);
And I didn't see any difference?
[spoiler]
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs5.ifotos.pl%2Fimg%2F2018-05-2_qepnwer.png&hash=84ce87355838453f29c5d1df4e7aa95512e01b7b)
[/spoiler]
I want to change a player marker to another (icon (http://wiki.vc-mp.org/wiki/Map_Icons))
Edit:
Sorry, I know now why doesn't work...
void CPlayer::SetMarker(int nDummy) { functions->TogglePlayerHasMarker(this->nPlayerId, 1); }
void CPlayer::RemoveMarker() { functions->TogglePlayerHasMarker(this->nPlayerId, 0); }
So, in VC-MP it's impossible to change a player blip (or vehicle)?
The .SetMarker function undoes what .RemoveMarker does iirc.
Yes it's impossible to change blip for a player or vehicle. (unless you just add huge blips for everyone which can't be noticed and are updated every time the instance is moved, but by even using that you'll exceed the marker limit)
Player.SetMarker( int iColour )
BY WIki
how to make this ? Xmair in ead server wo hen i press h show Help Message how to do it?
player distance
idk im nob
Quote from: =RK=MarineForce on May 27, 2018, 12:44 AMPlayer.SetMarker( int iColour )
BY WIki
how to make this ? Xmair in ead server wo hen i press h show Help Message how to do it?
player distance
for colour you have player.Colour ;)
player.SetMarker() only enable blip on radar, it's the opposite function to player.RemoveMarker()
@Stormeus @maxorator if you are planning any more updates, there is a chance to update like this (http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Vehicles/Marker)? (blip and arrow above player/vehicle).
[spoiler]
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs2.ifotos.pl%2Fimg%2Fscreen020_qepewhe.jpg&hash=b9e600e963bea97ecab447792f9ad18fbf07201b)
[/spoiler]