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:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
ND_Blackjack/
|
||||
ND_Blips/
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user