From b47ad92755966e8fabb616bb8610461ec94f069b Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Sun, 17 Jul 2022 19:37:13 +0200 Subject: [PATCH] Fixed small error Fixed NDCore.Characters in ND_Core and fixed issue where the characters job would be nil. --- ND_CharacterSelection/source/client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ND_CharacterSelection/source/client.lua b/ND_CharacterSelection/source/client.lua index 65c1f04..c9706c6 100644 --- a/ND_CharacterSelection/source/client.lua +++ b/ND_CharacterSelection/source/client.lua @@ -20,7 +20,7 @@ function SetDisplay(bool, typeName, bg) background = background, status = bool, serverName = NDCore.Config.serverName, - characterAmount = tablelength(NDCore.characters) .. "/" .. NDCore.Config.characterLimit + characterAmount = tablelength(NDCore.Characters) .. "/" .. NDCore.Config.characterLimit }) if config.characterSelectionAopDisplay then SendNUIMessage({ @@ -115,7 +115,7 @@ end) -- Creating a character from the ui. RegisterNUICallback("newCharacter", function(data) - if tablelength(NDCore.characters) < NDCore.Config.characterLimit then + if tablelength(NDCore.Characters) < NDCore.Config.characterLimit then TriggerServerEvent("ND_CharacterSelection:newCharacter", { firstName = data.firstName, lastName = data.lastName,