Don't use timer for player spawn event
This commit is contained in:
@@ -383,10 +383,11 @@ function selectCharacter(client, characterId = -1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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);
|
//}, 1000);
|
||||||
|
|
||||||
playRadioStreamForPlayer(client, "");
|
playRadioStreamForPlayer(client, "");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user