mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
fixed small error
I accidentally had the function return NDCore.SelectedCharacter instead of NDCore.Characters
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user