var VK_T = 84; var player = new Player(0); var blip = null; while (true) { if (Pad.IsKeyPressed(VK_T)) { if (blip) { blip.remove(); blip = null; }else{ var playerCoords = player.getChar().getCoordinates(); blip = Blip.AddForCoord(playerCoords.x, playerCoords.y, playerCoords.z); } } wait(50); }