- Katılım
- 4 yıl 4 ay 23 gün
- Mesajlar
- 579
- Discord
- merty#3108
Başka bir forumda depo da falan filan her yerde ikinci envanterde yer yazmasını ronin paylaşmış. Görünce buraya atayım dedim. Tekrardan söylim bana ait değildir. nui/scripts.js de DisplayInventoryMultiple adlı functionı bunla değiştirirseniz sorun çözülecektir.
Kod:
function DisplayInventoryMultiple(playerinventory, itemCount, invName, targetinventory, targetitemCount, targetinvName, cash, Owner, targetInvWeight = 0) {
secondaryWeight = 0;
StoreOwner = Owner;
PlayerStore = false;
userCash = parseInt(cash);
DisplayInventory(playerinventory, itemCount, invName, true);
MyInventory = playerinventory;
MyItemCount = itemCount;
let displayName = '';
if (targetinvName.indexOf('Yer') > -1) {
secondaryMaxWeight = 1000.0;
slotLimitTarget = 30;
displayName = 'Drop';
} else if (targetinvName.indexOf('PlayerStore') > -1) {
secondaryMaxWeight = 1000.0;
slotLimitTarget = 2;
PlayerStore = true;
displayName = 'Player Store';
} else if (targetinvName.indexOf('storage') > -1) {
secondaryMaxWeight = 2000.0;
slotLimitTarget = 200;
} else if (targetinvName.indexOf('office') > -1) {
secondaryMaxWeight = 100.0;
slotLimitTarget = 5;
} else if (targetinvName.indexOf('housing') > -1) {
secondaryMaxWeight = 400.0;
slotLimitTarget = 40;
} else if (targetinvName.indexOf('warehouse') > -1) {
secondaryMaxWeight = 3000.0;
slotLimitTarget = 100;
} else if (targetinvName.indexOf('motel1') > -1) {
secondaryMaxWeight = 300.0;
slotLimitTarget = 30;
} else if (targetinvName.indexOf('motel2') > -1) {
secondaryMaxWeight = 2000.0;
slotLimitTarget = 100;
} else if (targetinvName.indexOf('motel3') > -1) {
secondaryMaxWeight = 900.0;
slotLimitTarget = 90;
} else if (targetinvName.indexOf('Torpido') > -1) {
secondaryMaxWeight = 50.0;
slotLimitTarget = 5;
displayName = 'Glove box';
} else if (targetinvName.indexOf('Bagaj') > -1) {
secondaryMaxWeight = 650.0;
slotLimitTarget = 65;
displayName = 'Trunk';
} else if (targetinvName.indexOf('Craft') > -1) {
slotLimitTarget = 50;
displayName = 'Crafting';
} else if (targetinvName.indexOf('hidden') > -1) {
secondaryMaxWeight = 2000.0;
slotLimitTarget = 200;
displayName = 'Stock';
} else if (targetinvName.indexOf('evidence') > -1) {
secondaryMaxWeight = 4000.0;
slotLimitTarget = 400;
displayName = 'Evidence';
} else if (targetinvName.indexOf('Case') > -1) {
secondaryMaxWeight = 4000.0;
slotLimitTarget = 400;
displayName = 'Case: ' + targetinvName;
} else if (targetinvName.indexOf('docks') > -1) {
secondaryMaxWeight = 20000.0;
slotLimitTarget = 2000;
} else if (targetinvName.indexOf('trash') > -1) {
secondaryMaxWeight = 4000.0;
slotLimitTarget = 400;
displayName = 'Trash';
} else if (targetinvName.indexOf('personal') > -1) {
secondaryMaxWeight = 250.0;
slotLimitTarget = 5;
} else if (targetinvName.indexOf('Stolen-Goods') > -1) {
secondaryMaxWeight = 1000.0;
slotLimitTarget = 5;
} else if (targetinvName.indexOf('biz') === 0) {
secondaryMaxWeight = 2000.0;
slotLimitTarget = 400;
} else if (targetinvName.indexOf('Shop') > -1) {
displayName = 'Shop';
secondaryMaxWeight = 2000.0;
slotLimitTarget = 40;
} else if (targetinvName.indexOf('ply') > -1) {
secondaryMaxWeight = 250.0;
slotLimitTarget = 40;
displayName = 'Other Player';
} else if (targetinvName.indexOf('rifle-rack') > -1) {
secondaryMaxWeight = 25.0;
slotLimitTarget = 2;
displayName = 'Rifle Rack';
} else if (targetinvName.indexOf('burgerjob_shelf') > -1) {
secondaryMaxWeight = 250.0;
slotLimitTarget = 40;
displayName = 'Burger Shelf'
} else if (targetinvName.indexOf('burgerjob_counter') > -1) {
secondaryMaxWeight = 100.0;
slotLimitTarget = 10;
displayName = 'Pickup Order';
}else {
secondaryMaxWeight = 250.0;
slotLimitTarget = 40;
}
if (targetInvWeight != 0) secondaryMaxWeight = targetInvWeight;
//InventoryLog(targetinvName + " | " + invName)
DisplayInventory(targetinventory, targetitemCount, targetinvName, false);
UpdateSetWeights(displayName);
}