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
On this page
  1. QBCore
  2. 💠HUD

Installation

Last updated 2 years ago

2023 - 2024 All rights reserved

CtrlK
  • Dependencies
  • Asset download
  • installation
  • Finally Customize Your setting in config.lua

Dependencies

Asset download

Download your resource from FiveM's Keymaster.
  • 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.

  • installation

    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 ]

    Finally Customize Your setting in config.lua

    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"
    
    ,
    ["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"
    },
    Link
    Link