Fixed Error In Character Selection

This commit is contained in:
Niko
2022-07-23 00:06:20 -04:00
parent 579cb9af60
commit c1cc40e9d5
12 changed files with 20 additions and 11 deletions

View File

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