mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Fixed Error In Character Selection
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
|
||||
|
||||
author "Andyyy#7666"
|
||||
author "Andyyy#7666, N1K0#0001"
|
||||
description "ND Character Selection (DOJ Based)"
|
||||
version "2.1.0"
|
||||
|
||||
|
||||
@@ -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