diff --git a/ND_CharacterSelection/source/ui/script.js b/ND_CharacterSelection/source/ui/script.js index 7f2dcd2..edb0405 100644 --- a/ND_CharacterSelection/source/ui/script.js +++ b/ND_CharacterSelection/source/ui/script.js @@ -65,7 +65,9 @@ $(function() { $("#spawnMenuContainer").empty(); setTimeout(function(){ $("#tpDoNot").data("id", item.id); - $("#spawnMenuContainer").append(``); + JSON.parse(item.spawns).forEach((location) => { + $("#spawnMenuContainer").append(``); + }); $(".spawnButtons").click(function() { $.post(`https://${GetParentResourceName()}/tpToLocation`, JSON.stringify({ x: $(this).data("x"),