mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-16 10:53:55 +00:00
Fixed Error In Character Selection
This commit is contained in:
1 parent
579cb9af60
commit
c1cc40e9d5
12 files changed
+20
-11
No files matched your search
@@ -76,9 +76,13 @@ end)
|
||||
-- Gets all the characters and displays them on the ui.
|
||||
RegisterNetEvent("ND:returnCharacters")
|
||||
AddEventHandler("ND:returnCharacters", function(characters)
|
||||
local playerCharacters = {}
|
||||
for id, characterInfo in pairs(characters) do
|
||||
playerCharacters[tostring(id)] = characterInfo
|
||||
end
|
||||
SendNUIMessage({
|
||||
type = "refresh",
|
||||
characters = json.encode(characters)
|
||||
characters = json.encode(playerCharacters)
|
||||
})
|
||||
SetDisplay(true, "ui", background, characters)
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user