Paylaştığım Motel Scriptinin esx_inventoryhud ENTEGRESİ

Fivem.com.tr

Fivem.com.tr
Katılım
1 Eki 2022
Mesajlar
5,891
Tepki
80
Bunu indirmeniz gerek



IHUD içindeki beds.lua ve motels.lua ları esx_inventoryhud/client içerisine atın



Geri gelip __resource.lua içerisine




"client/motels.lua",

"client/beds.lua",



satırlarını ekleyin.



Ardından aynı __resource.lua içerisinde en alta




exports{

"refreshPropertyMotelBedInventory",

"refreshPropertyMotelInventory"

}



satırlarını ekleyin.



esx_inventoryhud/html/js/inventory.js içerisinde aşağıdaki kodu aratın,




if (type === "normal") {

$(".info-div").hide();

} else if (type === "trunk") {

$(".info-div").show();

} else if (type === "property") {

$(".info-div").hide();

} else if (type === "player") {

$(".info-div").show();

}



aşağıdaki ile değiştirin:



if (type === "normal") {

$(".info-div").hide();

} else if (type === "trunk") {

$(".info-div").show();

} else if (type === "property") {

$(".info-div").hide();

} else if (type === "motels") {

$(".info-div").hide();

} else if (type === "motelsbed") {

$(".info-div").hide();

} else if (type === "player") {

$(".info-div").show();

}



Aynı yerde (esx_inventoryhud/html/js/inventory.js) aşağıdaki aratın



$('#playerInventory').droppable({

drop: function (event, ui) {

itemData = ui.draggable.data("item");

itemInventory = ui.draggable.data("inventory");



if (type === "trunk" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromTrunk", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "property" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromProperty", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));



} else if (type === "player" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromPlayer", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

}

}

});



aşağıdaki ile değiştirin.



$('#playerInventory').droppable({

drop: function (event, ui) {

itemData = ui.draggable.data("item");

itemInventory = ui.draggable.data("inventory");



if (type === "trunk" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromTrunk", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "property" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromProperty", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "motels" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromMotel", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "motelsbed" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromMotelBed", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "player" && itemInventory === "second") {

disableInventory(500);

$.post("http://esx_inventoryhud/TakeFromPlayer", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

}

}

});



Son olarak aynı yerde tekrardan bunu aratın:



$('#otherInventory').droppable({

drop: function (event, ui) {

itemData = ui.draggable.data("item");

itemInventory = ui.draggable.data("inventory");



if (type === "trunk" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoTrunk", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "property" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoProperty", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "player" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoPlayer", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

}

}

});



aşağıdaki ile değiştirin:



$('#otherInventory').droppable({

drop: function (event, ui) {

itemData = ui.draggable.data("item");

itemInventory = ui.draggable.data("inventory");



if (type === "trunk" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoTrunk", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "property" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoProperty", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "motels" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoMotel", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "motelsbed" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoMotelBed", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

} else if (type === "player" && itemInventory === "main") {

disableInventory(500);

$.post("http://esx_inventoryhud/PutIntoPlayer", JSON.stringify({

item: itemData,

number: parseInt($("#count").val())

}));

}

}

});



BUNLARI YAPTIKTAN SONRA SORUNSUZ ÇALIŞACAKTIR İYİ FORUMLAR


Dağların tepelerinde bulacağınız tek Zen, sizin oraya çıkaracağınız Zendir. -Robert M. Pirsig

Konu alıntıdır, yanlış veya hatalı bir bilgi/paylaşım var ise yanıtlayabilir veya bizimle iletişime geçebilirsiniz.
 

Şu anda bu konu'yu okuyan kullanıcılar

Benzer konular

Üst