diff --git a/ND_CharacterSelection/source/ui/script.js b/ND_CharacterSelection/source/ui/script.js index dfc0de3..7f2dcd2 100644 --- a/ND_CharacterSelection/source/ui/script.js +++ b/ND_CharacterSelection/source/ui/script.js @@ -114,7 +114,11 @@ $(function() { }) function createCharacter(firstName, lastName, dateOfBirth, gender, twtName, department, startingCash, startingBank, id) { - $("#charactersSection").append(``); + if ((firstName.length + lastName.length + department.length) > 24) { + $("#charactersSection").append(``); + } else { + $("#charactersSection").append(``); + } $(`#characterButton${id}`).click(function() { spawnMenu(true) $.post(`https://${GetParentResourceName()}/setMainCharacter`, JSON.stringify({