Shorten spawn delay + use stop stream util
This commit is contained in:
@@ -382,13 +382,12 @@ function selectCharacter(client, characterId = -1) {
|
|||||||
removePlayerKeyBind(client, getKeyIdFromParams("insert"));
|
removePlayerKeyBind(client, getKeyIdFromParams("insert"));
|
||||||
|
|
||||||
logToConsole(LOG_DEBUG, `[VRR.SubAccount] Spawned ${getPlayerDisplayForConsole(client)} as character ID ${getPlayerData(client).currentSubAccount} with skin ${skin} (${spawnPosition.x}, ${spawnPosition.y}, ${spawnPosition.z})`);
|
logToConsole(LOG_DEBUG, `[VRR.SubAccount] Spawned ${getPlayerDisplayForConsole(client)} as character ID ${getPlayerData(client).currentSubAccount} with skin ${skin} (${spawnPosition.x}, ${spawnPosition.y}, ${spawnPosition.z})`);
|
||||||
onPlayerSpawn(client);
|
|
||||||
|
|
||||||
//setTimeout(function() {
|
setTimeout(function() {
|
||||||
// onPlayerSpawn(client);
|
onPlayerSpawn(client);
|
||||||
//}, 1000);
|
}, 500);
|
||||||
|
|
||||||
playRadioStreamForPlayer(client, "");
|
stopRadioStreamForPlayer(client);
|
||||||
|
|
||||||
getPlayerCurrentSubAccount(client).lastLogin = getCurrentUnixTimestamp();
|
getPlayerCurrentSubAccount(client).lastLogin = getCurrentUnixTimestamp();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user