fixed small error

I accidentally had the function return NDCore.SelectedCharacter instead of NDCore.Characters
This commit is contained in:
Andyyy7666
2022-07-17 19:34:17 +02:00
committed by GitHub
parent 9dc3383cb3
commit c94cb70e3b

View File

@@ -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)
end)