mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-19 06:46:03 +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})
|
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])
|
||||||
|
|||||||
Reference in New Issue
Block a user