Add logic into gui util funcs

This commit is contained in:
Vortrex
2021-01-05 01:44:07 -06:00
parent 98e69fcd8e
commit 0bc357a662

View File

@@ -8,28 +8,32 @@
// TYPE: Server (JavaScript)
// ===========================================================================
// UNFINISHED. NOT READY TO USE
function showPlayerLoginGUI(client, errorMessage = "") {
triggerNetworkEvent("ag.showLogin", client);
}
// ---------------------------------------------------------------------------
function showPlayerRegistrationGUI(client, errorMessage = "") {
triggerNetworkEvent("ag.showRegistration", client);
}
// ---------------------------------------------------------------------------
function showPlayerNewCharacterGUI(client) {
triggerNetworkEvent("ag.showNewCharacter", client);
}
// ---------------------------------------------------------------------------
function showPlayerPromptGUI(client, promptMessage, answerYesText, answerNoText) {
function showPlayerCharacterSelectGUI(client, firstName, lastName, placeOfOrigin, dateOfBirth, skin) {
triggerNetworkEvent("ag.showCharacterSelect", client, firstName, lastName, placeOfOrigin, dateOfBirth, skin);
}
// ---------------------------------------------------------------------------
function showPlayerPromptGUI(client, promptMessage, promptTitle) {
triggerNetworkEvent("ag.showPrompt", client, promptMessage, promptTitle);
}
// ---------------------------------------------------------------------------