Installation
Last updated
Last updated
Unzip zip folder and place it into your resource folder.
Add ensure l2s-Spying to your server start config. Make sure to place anywhere below the framework and dependencies resources.
1- Add this items in shared || qb-core/shared/items.lua
2- Add images in inventory script || qb-inventory/html/images
3- qb-inventory/server/main.lua go to AddItem Function and add this like image
4- qb-inventory/html/app.js || Add items info show in inventory
If you use orginal inventory :
Like This :
5- If you use our inventory [ L2S V4 FILES ]
if item == 'gps_device' then
info.ip = info.ip or math.random(1,9).."."..math.random(1,9).."."..math.random(1,9).."."..math.random(1,9)
info.password = info.password or math.random(1,9)..math.random(1,9)..math.random(1,9)..math.random(1,9)
end
} else if (itemData.name == "gps_device") {
$(".item-info-title").html('<p>' + itemData.label + '</p>')
const newLocal = '<p>IP: ';
$(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
$(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
} else if (itemData.name == "note_ip") {
$(".item-info-title").html('<p>' + itemData.label + '</p>')
const newLocal = '<p>IP: ';
$(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
$(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
} else if (itemData.name == "gps_device") {
$(".f9iteminfoname").html('<p>' + itemData.label + '</p>')
const newLocal = '<p>IP: ';
$(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
$(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
} else if (itemData.name == "note_ip") {
$(".f9iteminfoname").html('<p>' + itemData.label + '</p>')
const newLocal = '<p>IP: ';
$(".item-info-description").html(newLocal + itemData.info.ip + ' <p>Passsword:' + itemData.info.password);
$(".item-info-stats").html('<p>Weight: ' + ((itemData.weight * itemData.amount) / 1000).toFixed(1) + ' | Amount: ' + itemData.amount)
["gps_device"] = {
["name"] = "gps_device",
["label"] = "Spaying Device",
["weight"] = 500,
["type"] = "item"