mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +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 = {}
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user