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

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
ND_Blackjack/
ND_Blips/

View File

@@ -1,6 +1,6 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "ND Framework ATMs"
version "2.1.0"

View File

@@ -1,6 +1,6 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "ND Framework Banks"
version "2.1.0"

View File

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

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)

View File

@@ -1,5 +1,5 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "ND Chat commands"
version "2.1.0"

View File

@@ -1,6 +1,7 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
server_config = {
discordServerToken = "OTAwODg1MDMxMDQ2Nzc0ODQ1.GU1TSC.Ed8D2_wcU-UQ1vZhe1khahgV8J3hLahOp4N1D8", -- discord bot token for permissions
-- discordServerToken = "OTAwODg1MDMxMDQ2Nzc0ODQ1.GU1TSC.Ed8D2_wcU-UQ1vZhe1khahgV8J3hLahOp4N1D8", -- discord bot token for permissions
discordServerToken = "OTAwODg1MDMxMDQ2Nzc0ODQ1.GE_e1I.pqEyV6GSfjs-0edjvvjtr8azyWDJG7hzUIPob8",
guildId = "872496972454592523", -- discord guild id
}

View File

@@ -1,8 +1,8 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "ND Framework Core"
version "3.0.0"
version "3.0.1"
fx_version "cerulean"
game "gta5"

View File

@@ -41,6 +41,7 @@ end)
-- Getting all the characters the player has and returning them to the client.
RegisterNetEvent("ND:GetCharacters", function()
local player = source
print(NDCore.Functions.GetPlayerCharacters(player)[1])
TriggerClientEvent("ND:returnCharacters", player, NDCore.Functions.GetPlayerCharacters(player))
end)

View File

@@ -1,6 +1,6 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "ND Framework Doorlocks for buildings"
version "2.1.0"

View File

@@ -1,6 +1,6 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "ND Framework Jailing"
version "2.2.0"

View File

@@ -1,6 +1,6 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6
author "Andyyy#7666"
author "Andyyy#7666, N1K0#0001"
description "Shot Spotter Script (ND Framework)"
version "2.1.0"