Send some locale strings to client for labels

This commit is contained in:
Vortrex
2022-04-05 23:52:44 -05:00
parent 357b505238
commit 4bdcbd30c0
2 changed files with 11 additions and 0 deletions

View File

@@ -1196,4 +1196,13 @@ function tellPlayerToSpawn(client, skinId, position) {
sendNetworkEventToPlayer("vrr.spawn", client, skinId, position);
}
// ==========================================================================
function sendPlayerLocaleStrings(client) {
let strings = getServerConfig().locale.sendStringsToClient;
for(let i in strings) {
sendNetworkEventToPlayer("vrr.localeString", client, i, getLocaleString(client, strings[i]));
}
}
// ==========================================================================

View File

@@ -570,6 +570,8 @@ function onPlayerSpawn(client) {
sendPlayerEnterPropertyKey(client, keyId.key);
}
sendPlayerLocaleStrings(client);
//if(isGTAIV()) {
// setEntityData(client.player, "vrr.bodyPartHair", getPlayerCurrentSubAccount(client).bodyParts.hair, true);
// setEntityData(client.player, "vrr.bodyPartHead", getPlayerCurrentSubAccount(client).bodyParts.head, true);