Load inbiz/inhouse for char

This commit is contained in:
Vortrex
2021-04-23 18:18:45 -05:00
parent addff03ab8
commit aa3ef37ce5

View File

@@ -448,12 +448,15 @@ function onPlayerSpawn(client) {
logToConsole(LOG_DEBUG, `[Asshat.Event] Setting ${getPlayerDisplayForConsole(client)}'s switchchar state to false`);
getPlayerData(client).switchingCharacter = false;
getPlayerData(client).inBusiness = (getPlayerCurrentSubAccount(client).inBusiness > 0) ? getBusinessIdFromDatabaseId(getPlayerCurrentSubAccount(client).inBusiness) : false;
getPlayerData(client).inHouse = (getPlayerCurrentSubAccount(client).inHouse > 0) ? getHouseIdFromDatabaseId(getPlayerCurrentSubAccount(client).inHouse) : false;
logToConsole(LOG_DEBUG, `[Asshat.Event] Setting ${getPlayerDisplayForConsole(client)}'s ped state to ready`);
getPlayerData(client).pedState = AG_PEDSTATE_READY;
//setTimeout(function() {
// syncPlayerProperties(client);
//}, 1000);
setTimeout(function() {
syncPlayerProperties(client);
}, 1000);
getPlayerData(client).payDayTickStart = sdl.ticks;
//}