Send correct job type

This commit is contained in:
Vortrex
2023-02-22 05:25:28 -06:00
parent 339ec0808c
commit 810acd8036

View File

@@ -515,7 +515,7 @@ function onPlayerSpawn(client) {
}
logToConsole(LOG_DEBUG, `[V.RP.Event] Sending ${getPlayerDisplayForConsole(client)}'s job type to their client (${getJobIndexFromDatabaseId(getPlayerCurrentSubAccount(client))})`);
sendPlayerJobType(client, getPlayerCurrentSubAccount(client).job);
sendPlayerJobType(client, (getPlayerCurrentSubAccount(client).job != 0) ? getPlayerCurrentSubAccount(client).jobIndex : -1);
if (isGameFeatureSupported("rendering2D")) {
logToConsole(LOG_DEBUG, `[V.RP.Event] Enabling all rendering states for ${getPlayerDisplayForConsole(client)}`);