diff --git a/ND_Core/client/main.lua b/ND_Core/client/main.lua index 0eed6c5..ecdcf1b 100644 --- a/ND_Core/client/main.lua +++ b/ND_Core/client/main.lua @@ -2,7 +2,7 @@ NDCore = {} NDCore.SelectedCharacter = nil -NDCore.characters = {} +NDCore.Characters = {} NDCore.Functions = {} NDCore.Config = config @@ -16,8 +16,8 @@ function NDCore.Functions.GetSelectedCharacter(cb) end function NDCore.Functions.GetCharacters(cb) - if not cb then return NDCore.SelectedCharacter end - cb(NDCore.characters) + if not cb then return NDCore.Characters end + cb(NDCore.Characters) end -- discord rich precense will show on a users profile. @@ -60,7 +60,7 @@ end RegisterNetEvent("ND:returnCharacters") AddEventHandler("ND:returnCharacters", function(characters) - NDCore.characters = characters + NDCore.Characters = characters end) -- updates the money on the client. @@ -82,4 +82,4 @@ AddEventHandler("playerSpawned", function() NetworkSetFriendlyFireOption(true) end print("^0This framework is created by ^5Andyyy#7666 ^0for support you can join the ^5discord: ^0https://discord.gg/Z9Mxu72zZ6") -end) \ No newline at end of file +end)