Advanced Phonetracking Script

A script by Elmoryx1

No reviews yet.
Advanced Phonetracking Script main image

Full Description

:camera_flash: PREVIEW

Click here

:star2: FEATURES

  • Locate players with the help of their phone numbers
  • ox_target integration
  • Interact zone integration
  • Language system (English & German by default)
  • Custom commands
  • Several options for the displayed blip
  • Adjustable notify & textui
  • Functions opensource
  • Fully optimized (0.0ms)

:hammer_and_wrench: CONFIGURABLE

Config = {}

-- 'esx' or 'qbcore'
Config.Framework = 'esx'

-- // Target Config \\ --
Config.useTarget = true -- If true, you can target the setup prop. If false, you need to press a setup button to open the menu.
Config.targetProp = "prop_monitor_w_large" -- The prop you target to track a phone.
Config.jobsNeeded = { -- if you want to lock the posibility to see the target to a specific job, add it here. If not set it to false
    "police",
    "justice"
}

-- // Interact Zone Config \\ --
Config.InteractZone = {
    activated = false, -- If true, there will be a zone in which you can press the setup button to open the menu.
    position = vec3(440.5127, -978.8040, 30.6896), -- The position of the zone.
    InteractKey = 38 -- The key you need to press to open the menu. (https://docs.fivem.net/docs/game-references/controls/)
}

-- // General Config \\ --
Config.Language = "de" -- The language of the script. (en, de)

Config.useGeneratePinCommand = {
    activated = false, -- If true, you can use the setup command to generate a pincode.
    command = "addpin" -- The command you need to type to generate a pincode.
}

Config.useTrackSmartphoneCommand = {
    activated = false, -- If true, you can use the track command to track a phone.
    command = "trackphone" -- The command you need to type to track a phone.
}

Config.trackingBlip = {
    loadingTime = 20000, -- The time it takes to track a phone in ms.
    duration = 60000, -- The duration of the tracking blip is visible in ms.
    updateCycle = 6, -- The ammount how often the tracking blip updates.
    color = 1, -- The color of the tracking blip. (https://docs.fivem.net/docs/game-references/blips/#blip-colors)
    alpha = 95, -- The transparency of the tracking blip.
    radius = 150.0, -- The radius of the tracking blip.
    flashing = true, -- If true, the tracking blip will flash.
    deviations = 50 -- The maximum deviation (offset) of the tracking blip in meters.
}

function Notify(pTitle, pMsg, pType)
    lib.notify({title = pTitle, description = pMsg, type = pType})
end

function TextUI(pMsg)
    lib.showTextUI(pMsg, {position = "right-center", icon = 'hand'})
end

:open_file_folder: DEPENDENCIES

:moneybag: LINKS

:snail: GENERAL INFORMATION

Code is accessible Partial
Subscription-based No
Lines (approximately) 1000
Requirements ESX Legacy/QBCore, ox_lib
Support Yes