Send some locale strings to client for labels
This commit is contained in:
@@ -1197,3 +1197,12 @@ function tellPlayerToSpawn(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]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ==========================================================================
|
||||||
@@ -570,6 +570,8 @@ function onPlayerSpawn(client) {
|
|||||||
sendPlayerEnterPropertyKey(client, keyId.key);
|
sendPlayerEnterPropertyKey(client, keyId.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendPlayerLocaleStrings(client);
|
||||||
|
|
||||||
//if(isGTAIV()) {
|
//if(isGTAIV()) {
|
||||||
// setEntityData(client.player, "vrr.bodyPartHair", getPlayerCurrentSubAccount(client).bodyParts.hair, true);
|
// setEntityData(client.player, "vrr.bodyPartHair", getPlayerCurrentSubAccount(client).bodyParts.hair, true);
|
||||||
// setEntityData(client.player, "vrr.bodyPartHead", getPlayerCurrentSubAccount(client).bodyParts.head, true);
|
// setEntityData(client.player, "vrr.bodyPartHead", getPlayerCurrentSubAccount(client).bodyParts.head, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user