mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Added phone number
Added phone number to the players object
This commit is contained in:
@@ -26,7 +26,7 @@ function NDCore.Functions.GetUserDiscordInfo(discordUserId)
|
||||
}
|
||||
end, "GET", "", {["Content-Type"] = "application/json", ["Authorization"] = "Bot " .. server_config.discordServerToken})
|
||||
while not data do
|
||||
Citizen.Wait(0)
|
||||
Wait(0)
|
||||
end
|
||||
return data
|
||||
end
|
||||
@@ -228,7 +228,8 @@ function NDCore.Functions.SetActiveCharacter(player, characterId)
|
||||
twt = i.twt,
|
||||
job = i.job,
|
||||
cash = i.cash,
|
||||
bank = i.bank
|
||||
bank = i.bank,
|
||||
phoneNumber = i.phone_number
|
||||
}
|
||||
end
|
||||
TriggerClientEvent("ND:setCharacter", player, NDCore.Players[player])
|
||||
|
||||
Reference in New Issue
Block a user