Added phone number

Added phone number to the players object
This commit is contained in:
Andyyy7666
2022-07-30 01:58:36 +02:00
committed by GitHub
parent 00393fe08a
commit c3140111f4

View File

@@ -26,7 +26,7 @@ function NDCore.Functions.GetUserDiscordInfo(discordUserId)
} }
end, "GET", "", {["Content-Type"] = "application/json", ["Authorization"] = "Bot " .. server_config.discordServerToken}) end, "GET", "", {["Content-Type"] = "application/json", ["Authorization"] = "Bot " .. server_config.discordServerToken})
while not data do while not data do
Citizen.Wait(0) Wait(0)
end end
return data return data
end end
@@ -228,7 +228,8 @@ function NDCore.Functions.SetActiveCharacter(player, characterId)
twt = i.twt, twt = i.twt,
job = i.job, job = i.job,
cash = i.cash, cash = i.cash,
bank = i.bank bank = i.bank,
phoneNumber = i.phone_number
} }
end end
TriggerClientEvent("ND:setCharacter", player, NDCore.Players[player]) TriggerClientEvent("ND:setCharacter", player, NDCore.Players[player])