Closed RobijnGit closed 3 years ago
TriggerServerEvent("livemap:RemovePlayer")
This removes all the data knows about the player, including his position, icon etc. So, you will need to add them back to the server.
Something like this in your custom client should work:
TriggerServerEvent("livemap:AddPlayerData", "pos", GetEntityCoords(PlayerPedId()))
TriggerServerEvent("livemap:AddPlayerData", "icon", 6)
I think this might be the least amount of data needed to show the blips. Note: You will need to update the pos data to see the blip move on the interface.
@RobijnGit did the last comment help? Am I able to close this issue? :)
@RobijnGit did the last comment help? Am I able to close this issue? :)
Yes it did, thank you.
In the document it says
But, when I use
livemap:RemovePlayer
to remove the player, it wont show the player when I uselivemap:AddPlayerData
orlivemap:UpdatePlayerData
..Is this something I did wrong or an issue? Any help would be appreciated.