Wrong locale util name
This commit is contained in:
@@ -219,7 +219,7 @@ function privateMessageCommand(command, params, client) {
|
|||||||
messagePlayerPrivateMessage(targetClient, client, messageText);
|
messagePlayerPrivateMessage(targetClient, client, messageText);
|
||||||
|
|
||||||
if (hasPlayerSeenActionTip(targetClient, "ReplyToDirectMessage")) {
|
if (hasPlayerSeenActionTip(targetClient, "ReplyToDirectMessage")) {
|
||||||
messagePlayerTip(targetClient, getIndexedLocaleString(targetClient, "ActionTips", "ReplyToDirectMessage", "{ALTCOLOUR}/reply{MAINCOLOUR}"));
|
messagePlayerTip(targetClient, getGroupedLocaleString(targetClient, "ActionTips", "ReplyToDirectMessage", "{ALTCOLOUR}/reply{MAINCOLOUR}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1925,25 +1925,25 @@ function playerSwitchItem(client, newHotBarSlot) {
|
|||||||
switch (getItemTypeData(getItemData(newHotBarItem).itemTypeIndex).useType) {
|
switch (getItemTypeData(getItemData(newHotBarItem).itemTypeIndex).useType) {
|
||||||
case AGRP_ITEM_USE_TYPE_AMMO_CLIP:
|
case AGRP_ITEM_USE_TYPE_AMMO_CLIP:
|
||||||
if (!hasPlayerSeenActionTip(client, "AmmoClipItemUsage")) {
|
if (!hasPlayerSeenActionTip(client, "AmmoClipItemUsage")) {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "AmmoClipItemUsage", getKeyOrCommandForPlayerMessage(client, "use")));
|
messagePlayerTip(client, getGroupedLocaleString(client, "AmmoClipItemUsage", getKeyOrCommandForPlayerMessage(client, "use")));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AGRP_ITEM_USE_TYPE_VEHREPAIR:
|
case AGRP_ITEM_USE_TYPE_VEHREPAIR:
|
||||||
if (!hasPlayerSeenActionTip(client, "VehicleRepairKitItemUsage")) {
|
if (!hasPlayerSeenActionTip(client, "VehicleRepairKitItemUsage")) {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "VehicleRepairKitItemUsage", getKeyOrCommandForPlayerMessage(client, "use")));
|
messagePlayerTip(client, getGroupedLocaleString(client, "VehicleRepairKitItemUsage", getKeyOrCommandForPlayerMessage(client, "use")));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AGRP_ITEM_USE_TYPE_VEHCOLOUR:
|
case AGRP_ITEM_USE_TYPE_VEHCOLOUR:
|
||||||
if (!hasPlayerSeenActionTip(client, "VehicleColourKitItemUsage")) {
|
if (!hasPlayerSeenActionTip(client, "VehicleColourKitItemUsage")) {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "VehicleColourKitItemUsage", getKeyOrCommandForPlayerMessage(client, "use")));
|
messagePlayerTip(client, getGroupedLocaleString(client, "VehicleColourKitItemUsage", getKeyOrCommandForPlayerMessage(client, "use")));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AGRP_ITEM_USE_TYPE_VEHUPGRADE_PART:
|
case AGRP_ITEM_USE_TYPE_VEHUPGRADE_PART:
|
||||||
if (!hasPlayerSeenActionTip(client, "VehiclePartItemUsage")) {
|
if (!hasPlayerSeenActionTip(client, "VehiclePartItemUsage")) {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "VehiclePartItemUsage", getKeyOrCommandForPlayerMessage(client, "use"), getItemTypeData(getItemData(newHotBarItem).itemTypeIndex).name));
|
messagePlayerTip(client, getGroupedLocaleString(client, "VehiclePartItemUsage", getKeyOrCommandForPlayerMessage(client, "use"), getItemTypeData(getItemData(newHotBarItem).itemTypeIndex).name));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -987,7 +987,7 @@ function startWorkingCommand(command, params, client) {
|
|||||||
|
|
||||||
if (doesJobLocationHaveAnyRoutes(closestJobLocation)) {
|
if (doesJobLocationHaveAnyRoutes(closestJobLocation)) {
|
||||||
if (hasPlayerSeenActionTip(client, "EnterJobVehicleForRoute")) {
|
if (hasPlayerSeenActionTip(client, "EnterJobVehicleForRoute")) {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "ActionTips", "EnterJobVehicleForRoute"));
|
messagePlayerTip(client, getGroupedLocaleString(client, "ActionTips", "EnterJobVehicleForRoute"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -1406,9 +1406,9 @@ function jobEquipmentCommand(command, params, client) {
|
|||||||
meActionToNearbyPlayers(client, `grabs the ${jobEquipmentData.name} equipment from the locker`);
|
meActionToNearbyPlayers(client, `grabs the ${jobEquipmentData.name} equipment from the locker`);
|
||||||
if (!hasPlayerSeenActionTip(client, "JobEquipmentInventory")) {
|
if (!hasPlayerSeenActionTip(client, "JobEquipmentInventory")) {
|
||||||
if (doesPlayerHaveKeyBindForCommand(client, "inv")) {
|
if (doesPlayerHaveKeyBindForCommand(client, "inv")) {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "ActionTips", "JobEquipmentInventory", toUpperCase(getKeyNameFromId(getPlayerKeyBindForCommand(client, "inv").key))));
|
messagePlayerTip(client, getGroupedLocaleString(client, "ActionTips", "JobEquipmentInventory", toUpperCase(getKeyNameFromId(getPlayerKeyBindForCommand(client, "inv").key))));
|
||||||
} else {
|
} else {
|
||||||
messagePlayerTip(client, getIndexedLocaleString(client, "ActionTips", "JobEquipmentInventory", "/inv"));
|
messagePlayerTip(client, getGroupedLocaleString(client, "ActionTips", "JobEquipmentInventory", "/inv"));
|
||||||
}
|
}
|
||||||
markPlayerActionTipSeen(client, "JobEquipmentInventory");
|
markPlayerActionTipSeen(client, "JobEquipmentInventory");
|
||||||
}
|
}
|
||||||
@@ -3141,21 +3141,20 @@ function createJobLocationPickup(jobId, locationId) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isGameFeatureSupported("pickup")) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
let tempJobData = getJobData(jobId);
|
let tempJobData = getJobData(jobId);
|
||||||
|
|
||||||
|
logToConsole(LOG_VERBOSE, `[AGRP.Job]: Creating pickup for location ${locationId} of the ${tempJobData.name} job`);
|
||||||
|
|
||||||
if (tempJobData.pickupModel != -1) {
|
if (tempJobData.pickupModel != -1) {
|
||||||
let pickupModelId = getGameConfig().pickupModels[getGame()].Job;
|
let pickupModelId = -1;
|
||||||
|
if (isGameFeatureSupported("pickup")) {
|
||||||
|
pickupModelId = getGameConfig().pickupModels[getGame()].Job;
|
||||||
|
|
||||||
if (tempJobData.pickupModel != 0) {
|
if (tempJobData.pickupModel != 0) {
|
||||||
pickupModelId = tempJobData.pickupModel;
|
pickupModelId = tempJobData.pickupModel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logToConsole(LOG_VERBOSE, `[AGRP.Job]: Creating pickup for location ${locationId} of the ${tempJobData.name} job`);
|
|
||||||
|
|
||||||
if (areServerElementsSupported()) {
|
if (areServerElementsSupported()) {
|
||||||
let pickup = createGamePickup(pickupModelId, tempJobData.locations[locationId].position, getGameConfig().pickupTypes[getGame()].job);
|
let pickup = createGamePickup(pickupModelId, tempJobData.locations[locationId].position, getGameConfig().pickupTypes[getGame()].job);
|
||||||
if (pickup != false) {
|
if (pickup != false) {
|
||||||
@@ -3170,7 +3169,16 @@ function createJobLocationPickup(jobId, locationId) {
|
|||||||
addToWorld(pickup);
|
addToWorld(pickup);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// sendJobToPlayer(null, jobId, tempJobData.name, tempJobData.locations[locationId].position, pickupModel);
|
let blipModelId = -1;
|
||||||
|
if (isGameFeatureSupported("blip")) {
|
||||||
|
blipModelId = getGameConfig().blipSprites[getGame()].Job;
|
||||||
|
|
||||||
|
if (getJobData(jobId).blipModel != 0) {
|
||||||
|
blipModelId = getJobData(jobId).blipModel;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sendJobToPlayer(null, jobId, tempJobData.name, tempJobData.locations[locationId].position, blipModelId, pickupModelId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3218,8 +3226,6 @@ function createJobLocationBlip(jobId, locationId) {
|
|||||||
updateJobBlipsForPlayer(clients[i]);
|
updateJobBlipsForPlayer(clients[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
sendJobToPlayer(null, jobId, tempJobData.name, tempJobData.locations[locationId].position, blipModelId);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2130,9 +2130,9 @@ function buyFromBusinessCommand(command, params, client) {
|
|||||||
if (!hasPlayerSeenActionTip(client, "ViewInventory")) {
|
if (!hasPlayerSeenActionTip(client, "ViewInventory")) {
|
||||||
if (doesPlayerHaveKeyBindsDisabled(client) && doesPlayerHaveKeyBindForCommand("inv")) {
|
if (doesPlayerHaveKeyBindsDisabled(client) && doesPlayerHaveKeyBindForCommand("inv")) {
|
||||||
let keyData = getPlayerKeyBindForCommand("inv");
|
let keyData = getPlayerKeyBindForCommand("inv");
|
||||||
messagePlayerActionTip(client, getIndexedLocaleString(client, "ActionTips", "ViewInventory", `{ALTCOLOUR}${getKeyNameFromId(keyData.key)}{MAINCOLOUR}`));
|
messagePlayerActionTip(client, getGroupedLocaleString(client, "ActionTips", "ViewInventory", `{ALTCOLOUR}${getKeyNameFromId(keyData.key)}{MAINCOLOUR}`));
|
||||||
} else {
|
} else {
|
||||||
messagePlayerActionTip(client, getIndexedLocaleString(client, "ActionTips", "ViewInventory", `{ALTCOLOUR}/inv{MAINCOLOUR}`));
|
messagePlayerActionTip(client, getGroupedLocaleString(client, "ActionTips", "ViewInventory", `{ALTCOLOUR}/inv{MAINCOLOUR}`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user