LogoLogo
TebexDiscord
  • Information
    • 👋Welcome
    • 📄Before installation
  • QBCore
    • 👮Police Hub
      • Installation
      • Configuration
    • 🏨Hotel
      • Installation
      • Configuration
      • Common problems
    • 🔫Paint Ball
      • Installation
      • Configuration
    • 🛠️Crafting
      • Installation
      • Configuration
    • 🗺️Spying
      • Installation
      • Configuration
    • 💠HUD
      • Installation
      • Configuration
    • 🖼️Gangs Turf
      • Installation
      • Configuration
Powered by GitBook

2023 - 2024 All rights reserved

On this page
  • Dependencies
  • Asset download
  • installation
  • Finally Customize Your setting in config.lua
  1. QBCore
  2. HUD

Installation

Dependencies

Asset download

  1. Download your resource from FiveM's Keymaster.

  2. Unzip zip folder and place it into your resource folder.

  3. Add ensure l2s-Spying to your server start config. Make sure to place anywhere below the framework and dependencies resources.

installation

1- Add this items in shared || qb-core/shared/items.lua

["gps_device"] = { 
["name"] = "gps_device",  
["label"] = "Spaying Device", 
["weight"] = 500,  
["type"] = "item",  
["image"] = "gps_device.png", 
["unique"] = true,  
["useable"] = true, 
["shouldClose"] = true,  
["combinable"] = nil,   
["description"] = "Special device for monitoring and tracking"
},

["gps_tablet"] = {  
["name"] = "gps_tablet",   
["label"] = "Spaying Tablet",  
["weight"] = 1000,  
["type"] = "item",   
["image"] = "gps_tablet.png", 
["unique"] = true,  
["useable"] = true,  
["shouldClose"] = true, 
["combinable"] = nil,  
["description"] = "data entry tablet device"
},

["note_ip"] = {  
["name"] = "note_ip",  
["label"] = "Contact Informations", 
["weight"] = 400,  ["type"] = "item",  
["image"] = "note_ip.png",  
["unique"] = true,   
["useable"] = false,  
["shouldClose"] = true,   
["combinable"] = nil,  
["description"] = "contact information"
},

["detector"] = { 
["name"] = "detector", 
["label"] = "Detector Device",  
["weight"] = 400,  
["type"] = "item",  
["image"] = "detector.png", 
["unique"] = true, 
["useable"] = false, 
["shouldClose"] = true, 
["combinable"] = nil, 
["description"] = "A device through which you can inspect a persons devices"
},

2- Add images in inventory script || qb-inventory/html/images

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

4- qb-inventory/html/app.js || Add items info show in inventory

If you use orginal inventory :

} 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)

Like This :

5- If you use our inventory [ L2S V4 FILES ]

} 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)

Finally Customize Your setting in config.lua

Last updated 1 year ago

3- qb-inventory/server/main.lua go to AddItem Function and add this like

💠
image
Link
Link