I am trying to make a command (/getloc <player_id>) that will set a GPS marker at the player’ location on MY map.
Right now I tried multiple things, searched around the forums, but did not get it working.
Only got my own location, or got the location of another player but the marker was set on his map (not mine).
What I tried, simplified:
local ped = GetPlayerPed(GetPlayerFromServerId(playerid)) local pos = GetEntityCoords(ped, true) SetNewWaypoint(pos.x, pos.y)
Any help would be awesome!