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 = {}
NDCore.SelectedCharacter = nil NDCore.SelectedCharacter = nil
NDCore.characters = {} NDCore.Characters = {}
NDCore.Functions = {} NDCore.Functions = {}
NDCore.Config = config NDCore.Config = config
@@ -16,8 +16,8 @@ function NDCore.Functions.GetSelectedCharacter(cb)
end end
function NDCore.Functions.GetCharacters(cb) function NDCore.Functions.GetCharacters(cb)
if not cb then return NDCore.SelectedCharacter end if not cb then return NDCore.Characters end
cb(NDCore.characters) cb(NDCore.Characters)
end end
-- discord rich precense will show on a users profile. -- discord rich precense will show on a users profile.
@@ -60,7 +60,7 @@ end
RegisterNetEvent("ND:returnCharacters") RegisterNetEvent("ND:returnCharacters")
AddEventHandler("ND:returnCharacters", function(characters) AddEventHandler("ND:returnCharacters", function(characters)
NDCore.characters = characters NDCore.Characters = characters
end) end)
-- updates the money on the client. -- updates the money on the client.
@@ -82,4 +82,4 @@ AddEventHandler("playerSpawned", function()
NetworkSetFriendlyFireOption(true) NetworkSetFriendlyFireOption(true)
end end
print("^0This framework is created by ^5Andyyy#7666 ^0for support you can join the ^5discord: ^0https://discord.gg/Z9Mxu72zZ6") print("^0This framework is created by ^5Andyyy#7666 ^0for support you can join the ^5discord: ^0https://discord.gg/Z9Mxu72zZ6")
end) end)