From c7c9a4f1e224e0d621766124fd7eda4ed4e83ca5 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:04:27 +0200 Subject: [PATCH] perf(ui): adding spawns --- ND_CharacterSelection/source/ui/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"),