mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-14 02:23:56 +00:00
perf(ui): adding spawns
This commit is contained in:
1 parent
a06ef356c9
commit
c7c9a4f1e2
1 file changed
+3
-1
@@ -65,7 +65,9 @@ $(function() {
|
||||
$("#spawnMenuContainer").empty();
|
||||
setTimeout(function(){
|
||||
$("#tpDoNot").data("id", item.id);
|
||||
$("#spawnMenuContainer").append(`<button class="spawnButtons" data-x="${item.x}" data-y="${item.y}" data-z="${item.z}">${item.name}</button>`);
|
||||
JSON.parse(item.spawns).forEach((location) => {
|
||||
$("#spawnMenuContainer").append(`<button class="spawnButtons" data-x="${location.x}" data-y="${location.y}" data-z="${location.z}">${location.name}</button>`);
|
||||
});
|
||||
$(".spawnButtons").click(function() {
|
||||
$.post(`https://${GetParentResourceName()}/tpToLocation`, JSON.stringify({
|
||||
x: $(this).data("x"),
|
||||
|
||||
Reference in new issue
Block a user